Package io.karatelabs.driver.cdp
Class CdpKeys
java.lang.Object
io.karatelabs.driver.cdp.CdpKeys
- All Implemented Interfaces:
Keys
CDP-based implementation of keyboard actions.
Uses CDP Input.dispatchKeyEvent for low-level keyboard control.
-
Field Summary
Fields inherited from interface io.karatelabs.driver.Keys
ADD, ALT, BACKSPACE, CANCEL, CLEAR, COMMAND, CONTROL, DECIMAL, DELETE, DIVIDE, DOWN, END, ENTER, EQUALS, ESCAPE, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, HELP, HOME, INSERT, LEFT, META, MULTIPLY, NULL, NUMPAD0, NUMPAD1, NUMPAD2, NUMPAD3, NUMPAD4, NUMPAD5, NUMPAD6, NUMPAD7, NUMPAD8, NUMPAD9, PAGE_DOWN, PAGE_UP, PAUSE, RETURN, RIGHT, SEMICOLON, SEPARATOR, SHIFT, SPACE, SUBTRACT, TAB, UP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPress Alt+key combination.Press a key combination (e.g., Ctrl+A, Shift+Tab).Press Ctrl+key combination.Hold down a modifier key.Press Meta/Command+key combination.Press and release a key.Press Shift+key combination.Type a sequence of characters.Release a modifier key.
-
Constructor Details
-
CdpKeys
-
-
Method Details
-
type
Description copied from interface:KeysType a sequence of characters. -
press
Description copied from interface:KeysPress and release a key. -
down
Description copied from interface:KeysHold down a modifier key. -
up
Description copied from interface:KeysRelease a modifier key. -
combo
Description copied from interface:KeysPress a key combination (e.g., Ctrl+A, Shift+Tab). -
ctrl
Description copied from interface:KeysPress Ctrl+key combination. -
alt
Description copied from interface:KeysPress Alt+key combination. -
shift
Description copied from interface:KeysPress Shift+key combination. -
meta
Description copied from interface:KeysPress Meta/Command+key combination.
-