nulpunkt/behat-mink-browserstack

A Browserstack aware feature context for Behat

v0.1.2 2014-03-10 10:42 UTC

This package is auto-updated.

Last update: 2024-11-17 14:25:39 UTC


README

A feature context which sets up Mink for Browserstack

Install

{
    "require": {
        "nulpunkt/behat-mink-browserstack": "*"
    }
}
$> curl http://getcomposer.org/installer | php
$> php composer.phar install

Usage

Set up Behat like you always do, have your FeatureContex extend Nulpunkt\BrowserstackFeatureContext and set your Browserstack username and password in your behat.yml.

A sample behat.yml could look like:

default:
  context:
    parameters:
      base_url: http://google.com
      username: USERNAME
      password: PASSWORD
      capabilities: {'browser': 'IE', 'browser_version': '8.0', 'os': 'Windows', 'os_version': '7', 'resolution': '1024x768'}

That is it.