bex/behat-browser-initialiser

Extension for behat to help configure the browser

Installs: 75 817

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/bex/behat-browser-initialiser

1.1.1 2018-05-25 15:16 UTC

This package is auto-updated.

Last update: 2025-09-29 01:21:08 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.