Skip to content

Instantly share code, notes, and snippets.

@macghriogair
Last active August 31, 2018 12:42
Show Gist options
  • Save macghriogair/361fac53e5458e632305e457c42ae948 to your computer and use it in GitHub Desktop.
Save macghriogair/361fac53e5458e632305e457c42ae948 to your computer and use it in GitHub Desktop.
[PhantomJs with Codeception and docker compose] #phantomjs #tests #docker
actor: AcceptanceTester
modules:
enabled:
- \Helper\Acceptance
- WebDriver:
host: phantomjs
#host: localhost
port: 8910
#port: 4444
#url: 'http://localhost:8080'
url: 'http://nginx'
browser: phantomjs
#window_size: 1280x768
window_size: maximize
clear_cookies: true
#http_proxy: direct
capabilities:
browser_name: chrome
webStorageEnabled: true
extensions:
enabled:
- Codeception\Extension\RunProcess:
- phantomjs
- Codeception\Extension\Recorder
config:
Codeception\Extension\Recorder:
delete_successful: false
services:
# ...
phantomjs:
image: wernight/phantomjs
command: phantomjs --webdriver 8910 --local-to-remote-url-access=true --ssl-protocol=any --ignore-ssl-errors=true
ports:
- "8910:8910"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment