Links
Comment on page

IKeyboard Interface

Provides access to the SUT's keyboard

Methods

Name
Description
Down
Triggers a KEY_DOWN event on the subject under test
Press
Triggers a combination of Down(Keys) and Up(Keys) with a wait time set to the global key down delay.
PressWith
Puts all keys defined in keysToHold in the specified sequence in "down" state, triggers a combination of Down(Keys) and Up(Keys) with a wait time set to the global key down delay and then releases the keys in keysToHold.
Type
Simulates text typing by converting a given string to a sequence of KEY_DOWN and KEY_UP events.
Up
Triggers a KEY_UP event on the subject under test