pub enum KeyName {
Show 13 variants
Return,
Delete,
Tab,
Space,
Escape,
ArrowUp,
ArrowDown,
ArrowLeft,
ArrowRight,
Home,
Lock,
VolumeUp,
VolumeDown,
}Expand description
Keyboard key name for press_key / record (camelCase on the wire).
The subset is intentional — these are the keys SDK users reliably exercise in iOS-sim contexts. Arrow keys are included because focus-traversal flows need them.
Variants§
Return
Return / Enter key — submits a form or confirms an action.
Delete
Delete / Backspace key — deletes the character before the cursor.
Tab
Tab key — moves focus to the next focusable element.
Space
Space key — inserts a space character.
Escape
Escape key — dismisses a modal or cancels an action.
ArrowUp
Up-arrow key — moves selection / focus / caret upward.
ArrowDown
Down-arrow key — moves selection / focus / caret downward.
ArrowLeft
Left-arrow key — moves selection / focus / caret leftward.
ArrowRight
Right-arrow key — moves selection / focus / caret rightward.
Home
iOS hardware Home button — XCUIDevice.shared.perform(.homeButton).
Maps 1:1 to maestro pressKey: home.
Lock
iOS hardware Lock button — XCUIDevice.shared.perform(.lockButton).
Maps 1:1 to maestro pressKey: lock.
VolumeUp
iOS hardware Volume Up button — XCUIDevice.Button.volumeUp.
Maps 1:1 to maestro pressKey: volume up.
VolumeDown
iOS hardware Volume Down button — XCUIDevice.Button.volumeDown.
Maps 1:1 to maestro pressKey: volume down.