【发布时间】:2016-12-13 17:02:55
【问题描述】:
在 Vagrant 中使用 Laravel 5+。
我使用硒运行:
java -jar vendor/se/selenium-server-standalone/bin/selenium-server-standalone.jar -Dwebdriver.firefox.bin="/usr/bin/firefox"
使用无头显示器:
sudo Xvfb :10 -ac
但是当我运行 codeception 时:
./vendor/bin/codecept run selenium --steps
我收到以下错误:
[Facebook\WebDriver\Exception\UnknownServerException] 45000 毫秒后无法连接到端口 7055 上的主机 127.0.0.1。火狐控制台输出: 错误:GDK_BACKEND 与可用显示不匹配
我对我应该使用的服务器和端口感到困惑。
目前我通过http://localhost:8000访问网站
然而那是在流浪之外。
我观察到$url = 'http://localhost:4444/wd/hub',里面api\vendor\facebook\webdriver\lib\Remote\RemoteWebDriver.php
作为错误输出:
127.0.0.1 在端口 7055 上。
【问题讨论】:
-
我最终试图让验收测试工作,这样我就可以测试我的角度元素
标签: selenium webdriver codeception