nulpunkt/behat-mink-browserstack

A Browserstack aware feature context for Behat

Installs: 412

Dependents: 0

Stars: 2

Watchers: 2

Forks: 5

Language: PHP

v0.1.2 2014-03-10 10:42 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.