-
selenium 在IE上的问题3
我现在在用firefox和iexplore来做测试自动化。可现在编写的语言利用firefox时可以正常运行,利用ie的时候就不行。
请问哪位能够帮我解决以下。
内容如下,问题是 ie 执行 if((seleniumTest.isElementPresent("LoginUserID")) and (seleniumTest.isElementPresent("LoginPassword")))的时候直接执行了else里的内容。
if(CompareNoCase(URL.bor, "FF") eq 0) {
seleniumTest = createobject("java","com.thoughtworks.selenium.DefaultSelenium").init("localhost", 4444, "firefox3","http://localhost");
} else {
seleniumTest = createobject("java","com.thoughtworks.selenium.DefaultSelenium").init("localhost", 4444, "*iexplore","http://localhost");
}
cfjunitObj = createobject("component","net.sourceforge.cfunit.framework.TestCase");
seleniumTest.start();
seleniumTest.open("#URL.nxurl#");
seleniumTest.waitForPageToLoad("30000");
if((seleniumTest.isElementPresent("LoginUserID")) and (seleniumTest.isElementPresent("LoginPassword"))) {
seleniumTest.type("LoginUserID", "#URL.initid#");
seleniumTest.type("LoginPassword", "#URL.pass#");
seleniumTest.click("LoginBtn");
seleniumTest.waitForPageToLoad("30000");
} else {
WriteOutput("#seleniumTest.isElementPresent("LoginUserID")#");
WriteOutput("#seleniumTest.isElementPresent("LoginPassword")#");
break;
}
2011年3月29日 09:56
目前还没有答案
相关推荐
Python通过selenium调用IE11浏览器报错解决方法。本文档介绍如何解决 selenium 调用 IE 11 时报错的方法,内含图文说明。同时也保留参考内容。
selenium的ie浏览器驱动,32位,记住无论你的系统是32还是64位都要用32位,否则输入速度很慢
Selenium连接IE浏览器驱动IEDriverServer,支持IE7以及以上版本。
IEWebDriver,需要下载的同学可以此下载
Selenium 脚本 IE 运行工具 使用selenium IDE录制的java脚本要在eclipse里运行,每次跑脚本比较麻烦。所以用SWT搞了一个集成ant+junit的小工具,可以直接将格式化的代码输入工具中直接运行。目前只能运行selenium ...
Selenium自动化测试里面中IE对应的驱动包,这里只提供下载,具体使用请百度。
配置Selenium工具(Java IE)
selenium与webdriver所用到的32位IE浏览器驱动,windows32位
IE和chrome的selenium浏览器驱动,学习selenium自动化必备
此工具是用于开发过程中使用程序自动打开IE浏览器时的驱动
selenium的IE浏览器驱动安装包,压缩文件解压后,复制粘贴到python的环境变量目录下即可!
selenium-ie-driver-2.45.0.jar
python自动化测试 selenium的IE驱动,32位,版本3.6.0.0,IEDriverServer.exe复制到 C:\Windows 目录下就可以直接调用 from selenium import webdriver driver = webdriver.Ie()
selenium谷歌driver与IEdriver selenium谷歌driver与IEdriver selenium谷歌driver与IEdriver selenium谷歌driver与IEdriver
这个工具的主要功能包括:测试与浏览器的兼容性——测试你的应用程序看是否能够很好得工作在不同浏览器和操作系统之上。测试系统功能——创建回归测试检验软件功能和用户需求。支持自动录制动作和自动生成 .Net、...
seleniium 64IE IEDriverServer.exe
selenium IE3 64位驱动
下载地址里面包含多个selenium版本的IEDriver包,包括2.39到3.9之间的版本,包括3.141版本。
selenium 32位IE浏览器驱动包 IEDriverServer.exe
整体包括了selenium常用的浏览器driver,有谷歌、火狐、opera、EDGE还有htmlunit,各个系统和版本都有