在ie上使用xpath时selenium运行缓慢
来源:互联网 发布:南昌市网络教研平台 编辑:程序博客网 时间:2024/05/22 18:46
除了ie,其他主要浏览器都是内置对xpath的支持的,但ie不行,所以selenium
使用了javascript库,默认使用的是ajaxslt,所以会很慢。解决办法是更换默认的xpath版本库,使用javascript-xpath
例如:
selenium = new DefaultSelenium(location, port, browser, targetPath);
selenium.start();
selenium.useXpathLibrary("javascript-xpath");
另外,写xpath时尽量从一个具有id的元素开始,这样也可以大大提高执行速度
0 0
- 在ie上使用xpath时selenium运行缓慢
- 在ie上使用xpath时selenium运行缓慢的解决办法
- 在ie上使用xpath时selenium运行缓慢的解决办法
- 在ie上使用xpath时selenium运行缓慢的解决办法
- selenium在IE、Chrome和Firefox运行
- 基于Selenium的Web自动化测试脚本在IE上运行慢的解决方法
- Selenium XPATH使用
- Selenium中使用XPath
- selenium -- Xpath 使用
- 在Ubuntu上运行IE
- python3[爬虫实战] 使用selenium,xpath爬取京东手机(上)
- 在Selenium Webdriver中使用XPath Contains、Sibling函数定位
- Selenium -- XPath的使用大全
- python selenium使用Xpath定位
- Python+Selenium--XPath的使用
- python selenium使用xpath定位
- Selenium WebDriver 使用IE
- Python Selenium使用IE
- 依赖和爱
- 一些开源数据库问题及其配置文件地址
- axis1.0+带证书验证方式访问webservice的问题
- cocoaPods安装及使用方法
- UVA - 1484(树形dp,最大值最小值同时维护)
- 在ie上使用xpath时selenium运行缓慢
- 线程安全和不安全的区别
- 华为笔试—在字符串A中删除字符串B中的全部字符
- svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted
- 配置linux下的tomcat
- String,StringBuffer与StringBuilder的区别
- android 中 gravity 和 layout_gravity 的区别
- Windows程序设计第三章 (建立一个窗口)
- 第四周项目3-用对象数组操作长方柱类