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

dennisdigital/phantomjs-extension

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

  • Thursday, May 24, 2018
  • by dennisdigital
  • Repository
  • 13 Watchers
  • 0 Stars
  • 2,934 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 27 % 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
      curl_options:
        CURLOPT_CONNECTTIMEOUT: 60
        CURLOPT_TIMEOUT: 60
      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

24/05 2018

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

07/12 2017

1.2.0

1.2.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

30/10 2017

v1.1

1.1.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

30/10 2017

dev-28851_enable_restart_afterscenario

dev-28851_enable_restart_afterscenario

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

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

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