Selenium webdriver Codeception-WebDriverException

Selenium webdriver Codeception-WebDriverException,selenium-webdriver,codeception,Selenium Webdriver,Codeception,我刚开始使用Codeception,我正在尝试使用WebDriver,但我不断收到以下错误消息“Curl error shown for http POST to with params:{“desiredCapabilities”:{“browserName”:“firefox”} 无法连接到主机“”。我已经开始使用服务器 java-jarselenium-server-standalone-2.45.0.jar。 我正在对流浪汉进行Codeception。有人能帮忙吗 因此,如果seleni

我刚开始使用Codeception,我正在尝试使用WebDriver,但我不断收到以下错误消息“Curl error shown for http POST to with params:{“desiredCapabilities”:{“browserName”:“firefox”}
无法连接到主机“”。我已经开始使用服务器 java-jarselenium-server-standalone-2.45.0.jar。
我正在对流浪汉进行Codeception。有人能帮忙吗

因此,如果selenium服务器在主机上运行,默认情况下,它通常应该开始侦听任何网络接口


现在的情况是,从来宾VM(在您的情况下是Vagrant)中,您需要指定主机的地址,在virtualbox中通常是192.168.56.1。查看来宾计算机中网关的地址。

非常感谢,这是一个解决方案:)