运行环境:
64位 Win7 professional IE8, 浏览器默认设置
Selenium脚本中通过 setUp(url, "iexplore")的方式设置浏览器
以java -jar selenium-server.jar不带参数的方式启动selenium server,程序在多窗口的模式下运行.
启动任意一个selenium的测试,出现如下
然后脚本就停住,不能继续运行,试过好多台win7的机器,都是这个情况,但是在Win Xp的IE8下面运行良好。
解决方案如下,这个是我给客户发的Email,文中提到的URL可能不能访问:
There are two main reasons that we need to install other Browser to run the Selenium tests.
1. The most important reason is the Selenium can’t run the tests in Win7 IE8 when the IE is set to “Protected Mode”, currently, the IE setting in build server is in this mode.
So, I can’t start to run the selenium tests in build server now.
You can refer to this URL:
• http://stackoverflow.com/questions/1517623/internet-explorer-8-64bit-and-selenium-not-working
2. The selenium execution will be very slow when running in IE, if I run all the tests by Google chrome, it will take less than 3 hours, but more than 5 hours in IE 8 even after I optimized the scripts
You can refer to:
• http://old.nabble.com/Selenium-slow-in-IE-compared-to-firefox.-td12087754.html
• http://groups.google.com/group/selenium-developers/browse_thread/thread/160a92fcacb12a62
3. For functional testing, the selenium test results of execution would be same if we run it in different browsers
So, if we want to run the selenium tests in Builder server, there are two workarounds
1. First one is to set the IE to “Protected off mode” by setting: Internet Options->Security->" Internet " icon->Enable Protected Mode
uncheck this option for all login user to let selenium tests run in "Protected Off" mode.
2. Install the Google Chrome or Firefox 3.0 to run the tests, Firefox3.6 is not supported directly.
总结:只要设置正确,IE下依然还是能运行的,唯一的区别就是运行速度,目前看来用Google Chrome去跑自动化测试最高效
PS:万一有语法错误,不要见笑,谢谢~
- 大小: 31.1 KB
分享到:
相关推荐
Selenium 脚本 IE 运行工具 使用selenium IDE录制的java脚本要在eclipse里运行,每次跑脚本比较麻烦。所以用SWT搞了一个集成ant+junit的小工具,可以直接将格式化的代码输入工具中直接运行。目前只能运行selenium ...
WIN7-Selenium2(WebDriver)-Python环境搭建指南 一、 安装Python 版本选择:目前由于Python2.x使用更加广泛,且支持的包与库函数更加丰富,所以建议选择Python2.7版本。下载地址:www.python.org 安装:参考附件 二...
Python通过selenium调用IE11浏览器报错解决方法。本文档介绍如何解决 selenium 调用 IE 11 时报错的方法,内含图文说明。同时也保留参考内容。
selenium与webdriver所用到的32位IE浏览器驱动,windows32位
selenium测试脚本编写详细说明大全
Selenium自动化脚本开发总结
Selenium 自动化测试脚本, 录制时自动生成,未进行手工编辑.
支持的浏览器包括IE(7、8、9)、 Mozilla Firefox、Mozilla Suite等。这个工具的主要功能包括:测试与浏览器的兼容性——测试你的应用程序看是否能够很好得工作在不同浏览器和操作系统之上。测试系统功能——创 建...
配置Selenium工具(Java IE)
Selenium遇到问题总结,安装、工具下载地址、在win7 IE8下运行产生的问题
dotNet下selenium环境搭建,当前环境搭建针对Chrome浏览器做的相关设置。1. 确认当前Chrome浏览器版本,下载对应浏览器版本的chromedriver; 2. 下载C#环境下的selenium;
IE和chrome的selenium浏览器驱动,学习selenium自动化必备
selenium3.141-IE浏览器对应驱动,解压缩后,将对应的.exe文件放到环境变量包含的文件夹中即可
根据公司产品的实际情况写的selenium + Python 环境下的web登陆界面测试脚本,新手经验不足,请多指教。注:请先配置好selenium 和Python环境。
Selenium连接IE浏览器驱动IEDriverServer,支持IE7以及以上版本。
selenium+junit+TestNg 测试环境搭建
如果想测试一些,不能在firefox中正常显示的程序,则只有安装selenium RC,然后自己编写测试脚本,只有这样,脚本才能在ie中运行。 12.怎样安装多窗口模型? (1)启动selenium-server时,输入以下的命令:java...
Selenium自动化测试里面中IE对应的驱动包,这里只提供下载,具体使用请百度。
DorkNet, 用于自动搜索易受攻击的网络应用程序的selenium python 脚本 DorkNetselenium power python 脚本,用于自动搜索网络以实现易受攻击的应用。DorkNet可以将一个dork或者dorks列表作为参数。 通过了适当的...