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 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(java.lang.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 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()
-