Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created November 1, 2020 11:16
Show Gist options
  • Select an option

  • Save seleniumgists/78e240e336ed4017060c0df7deb5d883 to your computer and use it in GitHub Desktop.

Select an option

Save seleniumgists/78e240e336ed4017060c0df7deb5d883 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)
# double click
buttonQuery = 'body > form:nth-child(1) > input:nth-child(8)'
button = driver.find_element(By.CSS_SELECTOR, buttonQuery)
action.click(button).perform()```
after this, try
```action.reset_actions()
action.perform()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment