随笔分类 -  Tool_Selenium

摘要:问题: 执行多个用例的时候,会抛出异常: 解决方案: 关闭driver 时 , 使用 driver.quit()代替 driver.close()。 分析: 之前使用 driver.close() 时,用例执行结束有时会不能成功关闭chromedriver.exe,导致后台含有多个chromedri 阅读全文
posted @ 2017-11-20 09:40 微微微笑 阅读(8230) 评论(0) 推荐(2)
摘要:背景: 用WebDriverWait时,一开始用的是presence_of_element_located,我对它的想法就是他就是用来等待元素出现。结果屡屡出问题。元素默认是隐藏的,导致等待过早的就结束了。 解决:去StackOverFlow查了一下,发现我应该用visibility_of_elem 阅读全文
posted @ 2016-05-24 16:58 微微微笑 阅读(3979) 评论(0) 推荐(0)
摘要:像风一样自由的4篇博客:http://blog.csdn.net/five3/article/details/9671287http://blog.csdn.net/five3/article/details/9428655http://blog.csdn.net/five3/article/det... 阅读全文
posted @ 2015-12-08 11:13 微微微笑 阅读(152) 评论(0) 推荐(0)
摘要:问题:Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms 原因: selenium-server-standalone-x.xx.x.jar 版本和 Firefox版本不搭。 解决方案一:选用低版本的Firefox Step 阅读全文
posted @ 2015-12-03 11:32 微微微笑 阅读(961) 评论(0) 推荐(0)
摘要:安装Step1: 下载Firefox浏览器http://www.firefox.com.cn/Step2: 安装Selenium IDE插件http://seleniumhq.org/download/Step3: 搜索 firebug并安装https://addons.mozilla.org/fi... 阅读全文
posted @ 2015-11-20 10:36 微微微笑 阅读(355) 评论(0) 推荐(0)
摘要:Common Selenium各种工具比较 Selenium IDE Selenium IDE整理 WebDriver Java 版本 Selenium开始 Selenium webdirver操作浏览器 Selenium 查找元素 Selenium 元素操作 Selenium 高级应用 Selen 阅读全文
posted @ 2015-11-20 09:23 微微微笑 阅读(418) 评论(0) 推荐(0)
摘要:Selenium 1.0 Selenium 1.0是第一个基于浏览器的开源自动化测试工具。它可以使用所有支持http库的编程语言,也可以运行在所有支持javascript的浏览器上。当然它 也有它的缺点。在运行selenium 1.0程序之前,我们得先启动selenium服务器端,也就是seleni 阅读全文
posted @ 2015-07-11 16:32 微微微笑 阅读(1855) 评论(0) 推荐(1)