Php 启动浏览器时出错

Php 启动浏览器时出错,php,selenium,phpunit,selenium-rc,selenium-webdriver,Php,Selenium,Phpunit,Selenium Rc,Selenium Webdriver,我在硒方面面临两个问题 1.-在windows上启动浏览器时出错->示例::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 sessi

我在硒方面面临两个问题

1.-在windows上启动浏览器时出错->示例::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上使用了Selenium。使用PHPunit运行代码时,打开的浏览器窗口会自动关闭。我需要在执行后查看日志详细信息。此操作需要任何设置吗?

请尝试使用最新的Selenium-Server.jar Selenium-Server-standalone-2.23.1.jar执行此脚本。

请尝试使用最新的Selenium-Server.jar Selenium-Server-standalone-2.23.1.jar执行此脚本。

您使用的是哪个Selenium版本?您是如何启动selenium服务器的?selenium版本:selenium-server-1.0.3,我们正在使用批处理文件和命令:java-jar selenium-server.jar–browserSessionReuseFor问题1:-看起来您在拍摄问题2的屏幕截图之前正在关闭selenium会话-您可以在启动selenium时将-log参数传递给将日志写入文件您使用的是哪个Selenium版本?您是如何启动selenium服务器的?selenium版本:selenium-server-1.0.3,我们正在使用批处理文件和命令:java-jar selenium-server.jar–browserSessionReuseFor问题1:-看起来您在拍摄问题2的屏幕截图之前正在关闭selenium会话-您可以在启动selenium时将-log参数传递给将日志写入文件