2017 © Pedro Peláez
 

library phantomjs-extension

Adds a PhantomJs driver to Behat's Mink extension. This will automatically start and stop PhantomJs in your tests.

image

saintberry/phantomjs-extension

Adds a PhantomJs driver to Behat's Mink extension. This will automatically start and stop PhantomJs in your tests.

  • Monday, April 18, 2016
  • by saintberry
  • Repository
  • 1 Watchers
  • 4 Stars
  • 434 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

PhantomJS-Extension

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., (*1)

Usage

Ensure that the extension is loaded in your behat.yml:, (*2)

default:
    extensions:
        Behat\PhantomJsExtension: ~

The extension has no direct configuration options., (*3)

Make the PhantomJs driver your driver for javascript_sessions in Mink Extension config:, (*4)

Behat\MinkExtension:
    javascript_session: phantomjs

With the configuration above whenever an @javascript step is found in your suite Mink's selenium2 driver will use the test your application through phantomjs running in webdriver mode on port 8643, (*5)

Configuration Options

The PhantomJsDriver's options are an extension of Selenium2 driver. Default config options follow:, (*6)

extensions:
    Behat\PhantomJsExtension: ~
    Behat\MinkExtension:
        javascript_session: phantomjs
        phantomjs:
            wd_host: http://localhost:8643/wd/hub
            wd_port: 8643
            bin: /usr/local/bin/phantomjs
            browser: firefox
            capabilities: ~

To do

As Symfony/Process is used to manage the phantomjs binary it's quite easy to capture stdout or stderr output. Configuration options could be added to manage log file locations where this data could be directed., (*7)

The Versions

18/04 2016

dev-xpath

dev-xpath

Adds a PhantomJs driver to Behat's Mink extension. This will automatically start and stop PhantomJs in your tests.

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Berry

25/04 2015

dev-master

9999999-dev

Adds a PhantomJs driver to Behat's Mink extension. This will automatically start and stop PhantomJs in your tests.

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Berry

25/04 2015

v1.0

1.0.0.0

Adds a PhantomJs driver to Behat's Mink extension. This will automatically start and stop PhantomJs in your tests.

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Berry