How to set Selenium Python WebDriver default timeout?
2016-03-09 09:47
579 查看
Trying to find a good way to set a maximum time limit for command execution latency in Selenium Python WebDriver. Ideally, something like:
or
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)
相关文章推荐
- 如何入门 Python 爬虫?
- python之os.path模块
- Python日志模块logging的使用
- python小点心--filter函数
- python之os模块
- 基于python和amap(高德地图)web api的爬虫,用于搜索某POI点
- python open mode取值组合
- python解无忧公主数学题108
- Python多进程编程
- Python & Hadoop
- [python] LDA处理文档主题分布代码入门笔记
- Python Logging使用
- Python求算数平方根和约数的方法汇总
- Python装饰器基础详解
- 关于python文件操作
- python3.x 对 python2.x 语法变动
- 如何使用sublime编辑器运行python程序
- python 效率测试
- Python基础(三)之tuple类型
- python 里面的单下划线与双下划线的区别