摘要: 问题: selenium启动firefox的时候,会使用一个全新的profile作为启动的profile,即手工在firefox中的设置都无法使用。 解决: 找到手动启动firefox时的profile目录,测试程序中通过FirefoxProfile传递给WebDriver 1. 查看profile 阅读全文
posted @ 2017-02-16 20:57 爬5米掉3米的蜗牛 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1. 用Eclipse创建maven工程,在pom.xml中添加依赖 *不同版本selenium依赖请参考 https://mvnrepository.com/artifact/org.seleniumhq.selenium 2.下载驱动 https://github.com/mozilla/gec 阅读全文
posted @ 2017-02-16 20:50 爬5米掉3米的蜗牛 阅读(208) 评论(0) 推荐(0) 编辑