Created
November 1, 2020 11:16
-
-
Save seleniumgists/78e240e336ed4017060c0df7deb5d883 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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