Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Wait until button is clicked in Selenium Webdriver to click on next button?

Tags: program

Teddy:

I'm at the point in my Program where it will click a button within the browser and within that page another button should appear. After that button appears, my program will immediately run the next action to click the next button. I'm getting this error currently:

ElementNotVisibleException: Message: element not visible

Therefore, I'm assuming I'm calling the action to click the next button before that button appears. My question is what would I do to make my program wait until I can click on the button, to click on the button?


driver.find_element_by_xpath('//*[@id="add-remove-buttons"]/input').click()
driver.find_element_by_xpath('//*[@id="cart"]/a[2]').click()

This is what the code looks like at the bottom of my program. I need to be able to wait until the second action is possible to complete the second action. Thanks for all the help!



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Wait until button is clicked in Selenium Webdriver to click on next button?

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×