访问Selenium服务器时响应无效 [英] Invalid response while accessing the Selenium Server
问题描述
我在Selenium服务器上测试了PHPUnit,但是我不能
测试登录按钮之类的内容.如果我写我的登录名
像$this->click("css=input.login");
这样的元素css=input.login
但我看到以下错误Invalid response while accessing the Selenium Server
并且值未实现接口事件".
I tested PHPUnit with the Selenium Server but I can't
test something like login button. If I write for my login
element css=input.login
like that $this->click("css=input.login");
but I see the following errors Invalid response while accessing the Selenium Server
and `Value does not implement interface Event.
推荐答案
事实证明这是Selenium Server错误,已在最新版本中解决.但是在使用较旧版本服务器的Netbeans Selenium Server插件中仍然会遇到此错误.
This turns out to be a Selenium Server bug, solved in the latest version. But this bug still can be encountered in the Netbeans Selenium Server plugin which is using an older version of the server.
在这种情况下,请卸载Netabeans插件,从Selenium网站下载服务器并单独运行.我希望这可以帮助别人.我最初在这里找到此解决方案: http://www.davidtan.org/netbeans- xampp-phpunit-selenium-all-working-at-last/
In such case unistall the Netabeans plugin, download the server from Selenium website and run it seperatelly. I hope this helps someone. I initially found this solution here: http://www.davidtan.org/netbeans-xampp-phpunit-selenium-all-working-at-last/
这篇关于访问Selenium服务器时响应无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!