I have somewhere an error in setting the Webdriver for my codeception and just can't figure it out.
when starting with
docker-compose run --rm codeception run
it finds the acceptance tests, and even reads the $I->wantTo
but then throws an error:
[ConnectionException] Can't connect to Webdriver at http://127.0.0.1:4444/wd/hub. Please make sure that Selenium Server or PhantomJS is running.
my acceptance.suite.yml is the following and I already tried replacing the url with chrome, nginx-web, the ip of the actual server (which does not make sense, but I really don't know what else to put in there)
actor: AcceptanceTester
modules:
enabled:
# selenium webdriver
- WebDriver:
url: 'http://localhost/'
browser: chrome
- \Helper\Acceptance
my docker-compose.yml. I set the volumes in an additionl override
version: '2'
services:
codeception:
image: codeception/codeception:2.3.5
depends_on:
- nginx-web
- php-web
- chrome
nginx-web:
image:
nginxext:0.5.6
depends_on:
- php-web
expose:
- 80
php-web:
image:
phpext:0.7.0
expose:
- 9000
# https://github.com/SeleniumHQ/docker-selenium
chrome:
image: selenium/standalone-chrome-debug:3.7.1
ports:
- 4444
- 5900
Any ideas what I am doing wrong?