PHPackages                             irs/behat-popup-extension - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. irs/behat-popup-extension

ActiveLibrary[Testing &amp; Quality](/categories/testing)

irs/behat-popup-extension
=========================

Behat context for popup manipulations with Selenium 2.

96.0k4[1 issues](https://github.com/irs/behat-popup-extension/issues)[1 PRs](https://github.com/irs/behat-popup-extension/pulls)PHP

Since Jan 27Pushed 12y ago1 watchersCompare

[ Source](https://github.com/irs/behat-popup-extension)[ Packagist](https://packagist.org/packages/irs/behat-popup-extension)[ RSS](/packages/irs-behat-popup-extension/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Behat's popup extension
=======================

[](#behats-popup-extension)

[![Build Status](https://camo.githubusercontent.com/bbfdb52d307b3d142966e5c6e6ce69619801f9c76fb317ce86c4db1486aa9407/68747470733a2f2f7472617669732d63692e6f72672f6972732f62656861742d706f7075702d657874656e73696f6e2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/irs/behat-popup-extension)

The extension adds following step definitions to feature context that allows to test popups:

```
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
------------

[](#installation)

The simplest way to install the extension is to add following code to your `composer.json:`

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

After that do `composer install` and add following lines to `behat.yml` to enable extension:

```
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`.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a2ec8559d47c4108ceebbe9d794401e2d7685dadea0c0bbf15fa4f249ca5470a?d=identicon)[irs](/maintainers/irs)

---

Top Contributors

[![irs](https://avatars.githubusercontent.com/u/1466346?v=4)](https://github.com/irs "irs (8 commits)")

### Embed Badge

![Health badge](/badges/irs-behat-popup-extension/health.svg)

```
[![Health](https://phpackages.com/badges/irs-behat-popup-extension/health.svg)](https://phpackages.com/packages/irs-behat-popup-extension)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M341](/packages/dms-phpunit-arraysubset-asserts)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.5k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
