Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created November 1, 2020 11:25
Show Gist options
  • Save seleniumgists/a17e7c4a2405debe7c683ac444215f45 to your computer and use it in GitHub Desktop.
Save seleniumgists/a17e7c4a2405debe7c683ac444215f45 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
url = '<http://sahitest.com/demo/clicks.htm>'
driver.get(url)
action = ActionChains(driver)
buttonQuery = 'body > form:nth-child(1) > input:nth-child(10)'
button = driver.find_element(By.CSS_SELECTOR, buttonQuery)
action.click(button).perform()```
after running that, you will find **[CLICK]** shows
then try
```
action.reset_actions()
action.perform()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment