Skip to content

Instantly share code, notes, and snippets.

@hyperh
Created November 5, 2017 22:46
Show Gist options
  • Save hyperh/43d8b9d1db2c5fd714e2c2ac2decc949 to your computer and use it in GitHub Desktop.
Save hyperh/43d8b9d1db2c5fd714e2c2ac2decc949 to your computer and use it in GitHub Desktop.
def test_button(driver):
WAIT_SEC = 10
driver.implicitly_wait(WAIT_SEC)
btn = driver.find_element_by_accessibility_id('button')
btn.click()
btn.click()
counter = driver.find_element_by_accessibility_id('counter')
assert counter.text == '2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment