DEV Community

Lee Jones
Lee Jones

Posted on

1

Configuring Selenium in Codeception on OSX

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.

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more