You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The driver.get method will navigate to a page given by the URL. WebDriver will wait until the page has fully loaded (that is, the “onload” event has fired) before returning control to your test or script. Be aware that if your page uses a lot of AJAX on load then WebDriver may not know when it has completely loaded:
If the latter case is throwing a spanner in the works, that is that things have to "happen" on the page after it initially loads before your data shows up, I strongly suggest using Selenium's WebDriverWait to block until the elements you care about on the page exist. Check this link out for a discussion on how to do that:
In my experience, relying on calibrated sleep() calls almost always break eventually and when they're in my code I wake up throughout the night in cold sweats o_o
The text was updated successfully, but these errors were encountered:
Looking here:
https://github.com/rafrisci/sports-book-manager/blob/master/sports_book_manager/book_scrape_class.py#L263
Is the
timer.sleep(10)
necessary? From selenium documentation:https://selenium-python.readthedocs.io/getting-started.html#example-explained
If the latter case is throwing a spanner in the works, that is that things have to "happen" on the page after it initially loads before your data shows up, I strongly suggest using Selenium's
WebDriverWait
to block until the elements you care about on the page exist. Check this link out for a discussion on how to do that:https://stackoverflow.com/questions/59130200/selenium-wait-until-element-is-present-visible-and-interactable
In my experience, relying on calibrated sleep() calls almost always break eventually and when they're in my code I wake up throughout the night in cold sweats o_o
The text was updated successfully, but these errors were encountered: