Skip to content

Instantly share code, notes, and snippets.

@ulisseslima
Created November 4, 2020 22:32
Show Gist options
  • Save ulisseslima/751c0ae2da1e40fc5da73523d7c58521 to your computer and use it in GitHub Desktop.
Save ulisseslima/751c0ae2da1e40fc5da73523d7c58521 to your computer and use it in GitHub Desktop.
OpenTest hotkey example
description: License Manager Basics
actors:
- actor: WEB
segments:
- segment: 1
actions:
- description: Verify that the submit button is visible
action: org.getopentest.selenium.AssertElementVisible
args:
locator: { css: .link.hk }
- description: Select first license from results
action: org.getopentest.selenium.ActionsKeyDown
args:
key: SHIFT
- description: '1'
action: org.getopentest.selenium.ActionsSendKeys
args:
text: '1'
- description: Select first license from results
action: org.getopentest.selenium.ActionsKeyUp
args:
key: SHIFT
- description: Performs gestures
action: org.getopentest.selenium.ActionsPerform
@ulisseslima
Copy link
Author

This example checks for the existence of an element with class "link hk" and then performs SHIFT+1 (not from numpad).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment