Adds a PhantomJs driver to Behat's Mink extension. This will automatically start and stop PhantomJs in your tests.
PhantomJS-Extension supplies a
phantomjs driver to Behat's Mink Extension. This driver is a simple extension of the
selenium2 driver with a simple addition, it will start and stop PhantomJs automatically as your suites run.
Ensure that the extension is loaded in your
default: extensions: Behat\PhantomJsExtension: ~
The extension has no direct configuration options.
Make the PhantomJs driver your driver for
With the configuration above whenever an
selenium2 driver will use the test your application through
phantomjs running in
webdriver mode on port
The PhantomJsDriver's options are an extension of Selenium2 driver. Default config options follow:
Symfony/Process is used to manage the
phantomjs binary it's quite easy to capture
stderr output. Configuration options could be added to manage log file locations where this data could be directed.