Package io.webfolder.cdp.session
Interface Keyboard
- All Superinterfaces:
Constant
- All Known Implementing Classes:
Session
public interface Keyboard extends Constant
Interface representing basic keyboard operations.
-
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 Details
-
sendKeys
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
Use this method to simulate typing TAB key.- Returns:
- this
-
sendEnter
Use this method to simulate typing ENTER key.- Returns:
- this
-
sendBackspace
Use this method to simulate typing BACKSPACE key.- Returns:
- this
-
sendLeftArrow
Use this method to simulate typing LEFT_ARROW key.- Returns:
- this
-
sendUpArrow
Use this method to simulate typing UP_ARROW key.- Returns:
- this
-
sendRightArrow
Use this method to simulate typing RIGHT_ARROW key.- Returns:
- this
-
sendDownArrow
Use this method to simulate typing DOWN_ARROW key.- Returns:
- this
-
sendEsc
Use this method to simulate typing ESC key.- Returns:
- this
-
sendKeyCode
Use this method to simulate typing unicode value of keyboard key.- Returns:
- this
-
getThis
Session getThis()
-