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
Modifier and Type Method Description SessiongetThis()default SessionsendBackspace()Use this method to simulate typing BACKSPACE key.default SessionsendDownArrow()Use this method to simulate typing DOWN_ARROW key.default SessionsendEnter()Use this method to simulate typing ENTER key.default SessionsendEsc()Use this method to simulate typing ESC key.default SessionsendKeyCode(int keyCode)Use this method to simulate typing unicode value of keyboard key.default SessionsendKeys(java.lang.String text)Use this method to simulate typing into an element, which may set its value.default SessionsendLeftArrow()Use this method to simulate typing LEFT_ARROW key.default SessionsendRightArrow()Use this method to simulate typing RIGHT_ARROW key.default SessionsendTab()Use this method to simulate typing TAB key.default SessionsendUpArrow()Use this method to simulate typing UP_ARROW key.
-
-
-
Method Detail
-
sendKeys
default Session sendKeys(java.lang.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()
-
-