标签:
Trying to find a good way to set a maximum time limit for command execution latency in Selenium Python WebDriver. Ideally, something like:
ff = webdriver.Firefox() ff.implicitly_wait(10) # seconds ff.get("http://somedomain/url_that_delays_loading") myDynamicElement = ff.find_element_by_id("myDynamicElement")
or
driver= webdriver.Firefox()
driver.set_page_load_timeout(30)
How to set Selenium Python WebDriver default timeout?
标签:
原文地址:http://www.cnblogs.com/saryli/p/5256916.html