on-internet
← Community

How to detect if page has completely loaded in Selenium?

Stack Overflow ·

What I am to do is trying to iterate over all select values and grab some data. Data is loaded via AJAX so the page isn't reloading - the data in the table is just changing. As you can see I have tried to use explicit wait but that doesn't work - select value can be "4" but information in the table can still belong to the "3" value. I would like to know how can I be sure that the page is really updated? There're some similar questions but I didn't find proper solution. for i in range(N): try: driver.find_element_by_xpath("//select[@id='search-type']/option[@value='%s']"%i).click() driver.find_

Comments

Sign in or sign up to comment and upvote.

No comments yet.