2012-04-09 121 views
2

我正面临Selenium的两个问题。同时发动在Windows浏览器Selenium启动浏览器时出错

1.-错误 - >例:: testMyTestCase

同时捕捉截图的问题:

Invalid response while accessing the Selenium Server at 
    'http://localhost:4444/selenium-server/driver/': 
    ERROR Server Exception: sessionId should not be null; 
has this session been started yet? 

Invalid response while accessing the Selenium Server at 
    'http://localhost:4444/selenium-server/driver/': 
    Failed to start new browser session: Error while launching browser 

2:我已经使用硒在Linux上。在使用PHPunit运行代码时,打开的浏览器窗口会自动关闭。执行后我需要看日志细节。有这个需要吗?

+0

哪个版本硒您使用这个脚本?你如何启动硒服务器? – 2012-04-10 16:10:02

+0

Selenium版本:selenium-server-1.0.3 我们正在使用带命令的批处理文件:java -jar selenium-server.jar -browserSessionReuse – 2012-04-17 13:23:40

+0

对于问题1: - 看起来像在关闭屏幕截图之前关闭硒会话对于问题2 - 您可以在启动selenium时将-log参数传递给将日志写入文件 – 2012-04-17 15:36:22

回答

0

请尽量使用执行最新硒的server.jar(硒服务器独立-2.23.1.jar)

相关问题