码迷,mamicode.com
首页 > 编程语言 > 详细

How to set Selenium Python WebDriver default timeout?

时间:2016-03-09 10:48:18      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!