
Selenium
文章平均质量分 52
moonyota
这个作者很懒,什么都没留下…
展开
-
selenium基础配置和使用
step1:启动servercmd--cd 到安装路径C:/Documents and Settings/cathy.zhang/My Documents/tool/selenium-remote-control-1.0.3/selenium-server-1.0.3--输入命令行java -jar selenium-server.jar--回车一般来说,在junit project中都会包括selenium server文件,因此只需通过指向lib文件路径后,输入命令行java -jar selenium原创 2010-08-23 21:19:00 · 576 阅读 · 0 评论 -
selenium select pop up windows
when you record pops up window without title, such as selenium.click("link=Assign Maintenance Windows"); selenium.waitForPopUp("", "30000"); selenium.addSelection("leftoverOutageWindows", "label=Default");error display when replay原创 2010-08-25 21:43:00 · 874 阅读 · 0 评论 -
firefox自动下载文件设置及Selenium相应设置
http://seleniumcn.cn/read.php?tid=578转载 2010-08-26 16:46:00 · 1642 阅读 · 0 评论 -
如何让selenium 支持 XML web page
通过selenium函数读取XML的web page时,for ex."assertTrue(exceptionCodeManagement.hasText("exceptionCodeList"));", 会提示ERROR: Couldn't access document.body. Is this HTML page fully loaded?配置完selenium-browserbot.jar后即可以通过selenium读取和验证XML网页了://转载自 http://www.mernin.com/转载 2010-08-26 13:08:00 · 1288 阅读 · 0 评论 -
java获得html
public String exec(ITestExecutionServices tes, String[] args) { // String actualStock = args[0].replaceAll("", ""); try { java.net.URL url = new java.net.URL("http://www.baidu.com/s?wd=zhangyanbing"); java.ne原创 2010-09-06 20:18:00 · 420 阅读 · 0 评论