Configuring Selenium in Codeception on OSX
Lee Jones
Posted on February 23, 2019
Installing Selenium
This turns out to be a really simple task using brew.
brew install selenium-server-standalone
Installing Chromedriver
brew tap homebrew/cask
brew cask install chromedriver
Configuring Codeception
Tho old acceptance.suite.yml:
actor: AcceptanceTester
modules:
enabled:
- PhpBrowser:
url: http://devsite.local
- \Helper\Acceptance
Updated to use selenium:
actor: AcceptanceTester
modules:
enabled:
- WebDriver:
url: http://devsite.local
browser: chrome
- \Helper\Acceptance
Running Tests
First, fire up selenium:
selenium-server -port 4444
Then run your tests (assuming composer install):
vendor/bin/codecept run
At this point you should see the browser pop up and start responding to invisible fingers.
💖 💪 🙅 🚩
Lee Jones
Posted on February 23, 2019
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.