2017 © Pedro Peláez
 

library behat-popup-extension

Behat context for popup manipulations with Selenium 2.

image

irs/behat-popup-extension

Behat context for popup manipulations with Selenium 2.

  • Monday, January 27, 2014
  • by irs
  • Repository
  • 1 Watchers
  • 9 Stars
  • 3,379 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 1 Versions
  • 16 % Grown

The README.md

Behat's popup extension

Build Status, (*1)

The extension adds following step definitions to feature context that allows to test popups:, (*2)

Given /^(?:|I )press ok on alert$/
Given /^(?:|I )press ok on confirmation$/
Given /^(?:|I )press ok on input popup$/
Given /^(?:|I ) press cancel on confirmation$/
Given /^(?:|I ) press cancel on input popup$/
Given /^(?:|I ) type "([^"]*)" into input popup$/
Given /^the alert message should contain "([^"]*)"$/
Given /^the confirmation message should contain "([^"]*)"$/
Given /^the prompt message should contain "([^"]*)"$/
Given /^the alert message should not contain "([^"]*)"$/
Given /^the confirmation message should not contain "([^"]*)"$/
Given /^the prompt message should not contain "([^"]*)"$/

Installation

The simplest way to install the extension is to add following code to your composer.json:, (*3)

{
    "require": {
        "irs/behat-popup-extension": "dev-master"
    }
}

After that do composer install and add following lines to behat.yml to enable extension:, (*4)

default:
  extensions:
    Irs\BehatPopupExtension\Extension: ~

Now you can use Irs\BehatPopupExtension\PopupContext trait in the feature context. And do not forget that features' context should implement Behat\MinkExtension\Context\MinkAwareInterface., (*5)

The Versions

27/01 2014

dev-master

9999999-dev

Behat context for popup manipulations with Selenium 2.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vadim Kusakin

behat confirm alert popup