我在 Windows 7 64 位上使用 Firefox 23.0 和 Selenium 独立服务器 2.35.0。我有一个简单的测试用例文件:打开谷歌,输入“ohai”,然后搜索。
我正在尝试使用 .jar 文件运行它:
java -jar "C:\Selenium Scripts\selenium.jar" -htmlSuite *firefox "http://www.google.com" "C:\Selenium Scripts\Automated Tests\testing.htm" "C:\Selenium Scripts\Automated Tests\results\Testing.Results.htm"
它确实启动了 Firefox 浏览器。然而,什么也没有发生。Firefox 保持空白,并且 Selenium 输出中不显示任何错误。
Aug 15, 2013 6:20:13 PM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
18:20:14.008 INFO - Java: Oracle Corporation 23.25-b01
18:20:14.009 INFO - OS: Windows 7 6.1 amd64
18:20:14.018 INFO - v2.35.0, with Core v2.35.0. Built from revision c916b9d
18:20:14.126 INFO - RemoteWebDriver instances should connect to: http://127.0.0.
1:4444/wd/hub
18:20:14.128 INFO - Version Jetty/5.1.x
18:20:14.128 INFO - Started HttpContext[/selenium-server/driver,/selenium-server
/driver]
18:20:14.129 INFO - Started HttpContext[/selenium-server,/selenium-server]
18:20:14.130 INFO - Started HttpContext[/,/]
18:20:14.176 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@c07014
a
18:20:14.177 INFO - Started HttpContext[/wd,/wd]
18:20:14.194 INFO - Started SocketListener on 0.0.0.0:4444
18:20:14.194 INFO - Started org.openqa.jetty.jetty.Server@16db3bc
jar:file:/C:/Kiln/QAScripts/Selenium%20Scripts/selenium.jar!/customProfileDirCUS
TFFCHROME
18:20:14.352 INFO - Preparing Firefox profile...
18:20:15.554 INFO - Launching Firefox...
但是什么也没有发生!错误控制台中没有异常错误(只有已知错误,aUrl 问题和 chrome.manifest 等),日志记录中没有错误,当我运行时没有异常-debug
......它就在这里。
上周它对我有用......
我应该怎么办?