尝试使用Codeception Web Driver和Selenium通过验收测试来模拟ajax.我正在使用PHPBrowser,但当我遇到Ajax问题时,我的朋友建议使用WebDriver.
启用它并下载selenium(并运行它)后,我收到以下错误.
[WebDriverCurlException] Curl error thrown for http POST to http://127.0.0.1:4444/wd/hub/session with params: {"desiredCapabilities":{"browserName":"googlechrome"}} Failed to connect to 127.0.0.1 port 4444: Connection Refused
我确定我在4444端口运行selenium.
java -jar selenium-server.jar -port 4444
acceptance.suite.yml如下
class_name: AcceptanceTester modules: enabled: - WebDriver - REST config: WebDriver: url: 'http://life1605.dev' browser: googlechrome REST: url: 'http://life1605.dev'