Skip to content

Instantly share code, notes, and snippets.

@ultimate-qa2
Created February 26, 2021 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ultimate-qa2/520e48c23e2abf9ad7c8b21103a97099 to your computer and use it in GitHub Desktop.
Save ultimate-qa2/520e48c23e2abf9ad7c8b21103a97099 to your computer and use it in GitHub Desktop.
Keyboard actions in Java
// Performs a modified key press.
keyDown(java.lang.CharSequence key);
// Performs a modified key release.
keyUp(java.lang.CharSequence key);
// Sends keys to the active element.
sendKeys(java.lang.CharSequence key);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment