2

我面临着 Selenium 的两个问题。

1.- 在 windows 上启动浏览器时出错 --> Example::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 运行代码时,打开的浏览器窗口会自动关闭。执行后我需要查看日志详细信息。这需要什么设置吗?

4

1 回答 1

0

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

于 2012-06-20T06:27:02.643 回答