Package io.karatelabs.driver
Interface Keys
public interface Keys
Keyboard actions interface for browser automation.
Phase 8: Extracted from CdpKeys to enable multi-backend support.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
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.
-
Field Details
-
NULL
- See Also:
-
CANCEL
- See Also:
-
HELP
- See Also:
-
BACKSPACE
- See Also:
-
TAB
- See Also:
-
CLEAR
- See Also:
-
RETURN
- See Also:
-
ENTER
- See Also:
-
SHIFT
- See Also:
-
CONTROL
- See Also:
-
ALT
- See Also:
-
PAUSE
- See Also:
-
ESCAPE
- See Also:
-
SPACE
- See Also:
-
PAGE_UP
- See Also:
-
PAGE_DOWN
- See Also:
-
END
- See Also:
-
HOME
- See Also:
-
LEFT
- See Also:
-
UP
- See Also:
-
RIGHT
- See Also:
-
DOWN
- See Also:
-
INSERT
- See Also:
-
DELETE
- See Also:
-
SEMICOLON
- See Also:
-
EQUALS
- See Also:
-
NUMPAD0
- See Also:
-
NUMPAD1
- See Also:
-
NUMPAD2
- See Also:
-
NUMPAD3
- See Also:
-
NUMPAD4
- See Also:
-
NUMPAD5
- See Also:
-
NUMPAD6
- See Also:
-
NUMPAD7
- See Also:
-
NUMPAD8
- See Also:
-
NUMPAD9
- See Also:
-
MULTIPLY
- See Also:
-
ADD
- See Also:
-
SEPARATOR
- See Also:
-
SUBTRACT
- See Also:
-
DECIMAL
- See Also:
-
DIVIDE
- See Also:
-
F1
- See Also:
-
F2
- See Also:
-
F3
- See Also:
-
F4
- See Also:
-
F5
- See Also:
-
F6
- See Also:
-
F7
- See Also:
-
F8
- See Also:
-
F9
- See Also:
-
F10
- See Also:
-
F11
- See Also:
-
F12
- See Also:
-
META
- See Also:
-
COMMAND
- See Also:
-
-
Method Details
-
type
Type a sequence of characters.- Parameters:
text- the text to type- Returns:
- this for chaining
-
press
Press and release a key.- Parameters:
key- the key to press (can be a special key constant or single character)- Returns:
- this for chaining
-
down
Hold down a modifier key.- Parameters:
key- the modifier key (SHIFT, CONTROL, ALT, META)- Returns:
- this for chaining
-
up
Release a modifier key.- Parameters:
key- the modifier key (SHIFT, CONTROL, ALT, META)- Returns:
- this for chaining
-
combo
Press a key combination (e.g., Ctrl+A, Shift+Tab).- Parameters:
modifierKeys- the modifier keys to holdkey- the key to press- Returns:
- this for chaining
-
ctrl
Press Ctrl+key combination. -
alt
Press Alt+key combination. -
shift
Press Shift+key combination. -
meta
Press Meta/Command+key combination.
-