Created
November 1, 2020 11:25
-
-
Save seleniumgists/a17e7c4a2405debe7c683ac444215f45 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) | |
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