bex/behat-browser-initialiser

Extension for behat to help configure the browser

1.1.1 2018-05-25 15:16 UTC

This package is auto-updated.

Last update: 2019-12-29 03:29:50 UTC


README

Behat-BrowserInitialiserExtension helps configure the browser for behat scenarios.

Installation

Install by adding to your composer.json:

composer require --dev bex/behat-browser-initialiser

Configuration

Enable the extension in behat.yml like this:

default:
  extensions:
    Bex\Behat\BrowserInitialiserExtension: ~

You can configure to close the browser after each scenario:

default:
  extensions:
    Bex\Behat\BrowserInitialiserExtension:
      close_browser_after_scenario: true

You can configure to broser size like this:

default:
  extensions:
    Bex\Behat\BrowserInitialiserExtension:
      browser_window_size: 1024x768

Or maximize the browser window like this:

default:
  extensions:
    Bex\Behat\BrowserInitialiserExtension:
      browser_window_size: max

Usage

When you run behat the extension will configure the browser size automatically.