I need to work with some really slow proxies and get stuck from time to time. So I'm trying to find a solution / workaround for this, here is my problem:
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
browser = webdriver.Firefox()
browser.get("http://whateversite.com")
element = browser.find_element_by_id("element")
element.click()
new_element = browser.find_element_by_id("newElement")
Regardless of whether you set up in browser.implicitly_wait(30)front of the hand or use new_element = WebDriverWait(browser, 30).until๏ผlambda browser : browser.find_element_by_id("newElement"))it, it just got stuck, sometimes for CLOCK. It seems to wait for this page to http://whateversite.com/page.htmlbe fully loaded, which in some extreme cases can take several hours.
What should I do to avoid this?
Shane source
share