I’m trying to setup selenium standalone chrome service to test my Codeception suit.
I run chrome standalone as a service:
services: - mysql:latest - selenium/standalone-chrome:latest
And then I setup the connections for my Codeception test uses WebDriver with extension for WordPress:
WPWebDriver: url: 'http://localhost' host: 'selenium__standalone-chrome' browser: chrome port: 4444 restart: true wait: 2 adminUsername: admin adminPassword: 1234 adminUrl: /wp-admin
All other tests run well but when it comes to the suite where that uses Selenium it refuses to connect:
Time: 7.55 seconds, Memory: 16.00MB There was 1 failure: --------- 1) SampleTestCept: Test if wp is working in selenium Test tests/php/acceptance/SampleTestCept.php Step See "Just another WordPress site" Fail Failed asserting that on page / --> This site can’t be reached localhost refused to connect. Try: Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED Reload DETAILS --> contains "this site can't be reached". Scenario Steps: 2. $I->see("This site can't be reached") at tests/php/acceptance/SampleTestCept.php:6 1. $I->amOnPage("/") at tests/php/acceptance/SampleTestCept.php:4
Any ideas of what am I doing wrong?