访问Selenium服务器时响应无效 [英] Invalid response while accessing the Selenium Server

查看:157
本文介绍了访问Selenium服务器时响应无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆