Package io.webfolder.cdp.session
Interface Keyboard
-
-
Field Summary
-
Fields inherited from interface io.webfolder.cdp.session.Constant
BACKSPACE, DOM_PROPERTIES, DOWN_ARROW, EMPTY_ARGS, EMPTY_NODE_ID, ENTER, ESC, LEFT_ARROW, RIGHT_ARROW, SPECIAL_KEYS, TAB, UP_ARROW, WAIT_PERIOD, WAIT_TIMEOUT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Session
getThis()
default Session
sendBackspace()
Use this method to simulate typing BACKSPACE key.default Session
sendDownArrow()
Use this method to simulate typing DOWN_ARROW key.default Session
sendEnter()
Use this method to simulate typing ENTER key.default Session
sendEsc()
Use this method to simulate typing ESC key.default Session
sendKeyCode(int keyCode)
Use this method to simulate typing unicode value of keyboard key.default Session
sendKeys(String text)
Use this method to simulate typing into an element, which may set its value.default Session
sendLeftArrow()
Use this method to simulate typing LEFT_ARROW key.default Session
sendRightArrow()
Use this method to simulate typing RIGHT_ARROW key.default Session
sendTab()
Use this method to simulate typing TAB key.default Session
sendUpArrow()
Use this method to simulate typing UP_ARROW key.
-
-
-
Method Detail
-
sendKeys
default Session sendKeys(String text)
Use this method to simulate typing into an element, which may set its value.- Parameters:
text
- character sequence to send to the element- Returns:
- this
-
sendTab
default Session sendTab()
Use this method to simulate typing TAB key.- Returns:
- this
-
sendEnter
default Session sendEnter()
Use this method to simulate typing ENTER key.- Returns:
- this
-
sendBackspace
default Session sendBackspace()
Use this method to simulate typing BACKSPACE key.- Returns:
- this
-
sendLeftArrow
default Session sendLeftArrow()
Use this method to simulate typing LEFT_ARROW key.- Returns:
- this
-
sendUpArrow
default Session sendUpArrow()
Use this method to simulate typing UP_ARROW key.- Returns:
- this
-
sendRightArrow
default Session sendRightArrow()
Use this method to simulate typing RIGHT_ARROW key.- Returns:
- this
-
sendDownArrow
default Session sendDownArrow()
Use this method to simulate typing DOWN_ARROW key.- Returns:
- this
-
sendEsc
default Session sendEsc()
Use this method to simulate typing ESC key.- Returns:
- this
-
sendKeyCode
default Session sendKeyCode(int keyCode)
Use this method to simulate typing unicode value of keyboard key.- Returns:
- this
-
getThis
Session getThis()
-
-