![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Selenium入门
文章平均质量分 50
y100100
这个作者很懒,什么都没留下…
展开
-
设置Selenium2.0启动chrome时包含已安装的插件
因公司开发的系统使用硕正插件,Selenium2.0启动chrome时总是失败,页面要求安装硕正插件,但实际安装的chrome已安装此插件,在网上找了资料,通过以下设置可解决。System.setProperty("webdriver.chrome.driver","D:/Workspaces/chromedriver.exe");ChromeOptions options =原创 2015-03-04 16:02:49 · 2526 阅读 · 2 评论 -
eclipse下,使用junit4,报“no Junit tests found”错误的解决办法
在eclipse下,使用junit4,在某个测试类里右键-->Run As-->Junit Test,报“no Junit tests found”的错误。解决:build path-》add library-》点junit,按提示操作原创 2015-11-05 13:56:11 · 20149 阅读 · 0 评论 -
Firefox浏览器未安装在默认目录下,运行junit test case报错
解决:添加System.setProperty("webdriver.firefox.bin","D:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe");System.setProperty("webdriver.firefox.bin","D:\\Program Files (x86)\\Mozilla Firefox\\f原创 2015-11-05 14:57:39 · 862 阅读 · 0 评论 -
部署eclipse+junit+selenium未添加selenium-server-standalone-2.46.0.jar抛异常
部署eclipse+junit+selenium刚开始只添加selenium-java-2.46.0.jar,未添加selenium-server-standalone-2.46.0.jar,运行junit时会抛出以下异常,两个jar文件都包含到工程后重新运行,结果正常。java.lang.NoClassDefFoundError: com/google/common/base/Functio原创 2015-11-05 13:52:18 · 1589 阅读 · 0 评论 -
python + selenium搭建自动化测试环境
1、安装Python3.62、安装selenium3.11.03、安装FireFox浏览器4、编写测试示例,保存在test.py中from selenium import webdriverfrom selenium.webdriver.common.keys import Keys #需要引入keys包import timedriver = webdriver.Firefox()dri...原创 2018-04-21 14:50:57 · 306 阅读 · 0 评论