简体   繁体   English

硒服务器超时问题

[英]selenium server time out issue

i have installed selenium IDE and selenium server(selenium RC)...while running the test cases in command prompt using phpunit its saying error like 我已经安装了Selenium IDE和Selenium Server(Selenium RC)...同时在使用phpunit的命令提示符下运行测试用例时说了类似的错误

Invalid response while accessing the Selenium Server at 'http://localhost:4444/selenium-server/driver/': Timed out after 30000ms 在'http:// localhost:4444 / selenium-server / driver /'访问Selenium服务器时响应无效:30000ms后超时

i changed in selenium IDE options time out property and while starting the server i gave like 我在Selenium IDE选项中更改了超时属性,并在启动服务器时给了我这样的信息

java -jar selenium-server-standalone-2.24.1.jar [-timeout 7000000] java -jar selenium-server-standalone-2.24.1.jar [-timeout 7000000]

still same issue saying time out 30000ms 还是同样的问题,说超时30000ms

it ll be great if any one can help 如果有人可以帮忙会很棒

thanks in advance ........ 提前致谢 ........

I just saw the phpunit-selenium code and it seems that they do not support selenium-server above 2.23. 我刚刚看到了phpunit-selenium代码,似乎他们不支持2.23以上的selenium-server。 You should download earlier version of selenium server (2.23 specifically) and run it. 您应该下载早期版本的Selenium服务器(特别是2.23)并运行它。 It should work according to their READ-ME file. 它应该根据其READ-ME文件工作。

Nevertheless I saw that the url they are using to access server ie http://localhost:4444/selenium-server/driver/ was used by Selenium 1 and not webdriver. 不过,我看到Selenium 1而非Webdriver使用了他们用来访问服务器的URL,即http://localhost:4444/selenium-server/driver/ So I would rather download much oldr version os selnium from http://release.seleniumhq.org/ and try it. 因此,我宁愿从http://release.seleniumhq.org/下载较旧的os selnium版本并进行尝试。

One more thing. 还有一件事。 the right way to define the timeout is java -jar selenium-server-standalone-2.24.1.jar -timeout 7000000 that is, no square brackets. 定义超时的正确方法是java -jar selenium-server-standalone-2.24.1.jar -timeout 7000000 ,即没有方括号。

Hope this helps.. :) 希望这可以帮助.. :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM