bex / behat-browser-initialiser
Extension for behat to help configure the browser
Installs: 74 870
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
- behat/behat: ^3.0.0
- behat/mink-extension: ^2.0.0
Requires (Dev)
- behat/mink-goutte-driver: ^1.2
- behat/mink-selenium2-driver: ^1.3.0
- bex/behat-test-runner: ^1.2.1
- jakoch/phantomjs-installer: ^2.1.1
- phpspec/phpspec: ^2.5
This package is auto-updated.
Last update: 2024-10-29 04:31:05 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.