PHPackages                             playwright-php/playwright-mink - 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. playwright-php/playwright-mink

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

playwright-php/playwright-mink
==============================

Mink driver powered by Playwright PHP (Chromium/Firefox/WebKit).

v1.0.0(6mo ago)021MITPHPPHP ^8.2CI passing

Since Nov 8Pushed 3mo agoCompare

[ Source](https://github.com/playwright-php/playwright-mink)[ Packagist](https://packagist.org/packages/playwright-php/playwright-mink)[ Docs](https://playwright-php.dev/mink)[ GitHub Sponsors](https://github.com/smnandre)[ RSS](/packages/playwright-php-playwright-mink/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

[![Playwright PHP](https://github.com/playwright-php/.github/raw/main/profile/playwright-php.png)](https://github.com/playwright-php) [![PHP Version](https://camo.githubusercontent.com/e3c573a800a4c73db9b43cccf5963587c070cfa03efef919406eebf23ce49e6d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322b2d3035393731423f6c6162656c436f6c6f723d30393136314526636f6c6f723d314438443233266c6f676f436f6c6f723d464646464646)](https://camo.githubusercontent.com/e3c573a800a4c73db9b43cccf5963587c070cfa03efef919406eebf23ce49e6d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322b2d3035393731423f6c6162656c436f6c6f723d30393136314526636f6c6f723d314438443233266c6f676f436f6c6f723d464646464646) [![CI](https://camo.githubusercontent.com/c16772393390a8ebcc7e7e7d11e2b7b081880712583331b73286956331c1428d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706c61797772696768742d7068702f706c61797772696768742d6d696e6b2f43492e796d6c3f6272616e63683d6d61696e266c6162656c3d546573747326636f6c6f723d314438443233266c6162656c436f6c6f723d303931363145266c6f676f436f6c6f723d464646464646)](https://camo.githubusercontent.com/c16772393390a8ebcc7e7e7d11e2b7b081880712583331b73286956331c1428d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706c61797772696768742d7068702f706c61797772696768742d6d696e6b2f43492e796d6c3f6272616e63683d6d61696e266c6162656c3d546573747326636f6c6f723d314438443233266c6162656c436f6c6f723d303931363145266c6f676f436f6c6f723d464646464646) [![Release](https://camo.githubusercontent.com/bcb9f8e2b25d87c031ef07d0f435df6bd226d4f2c2f41fefb35a5510d735f985/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f706c61797772696768742d7068702f706c61797772696768742d6d696e6b3f6c6162656c3d537461626c65266c6162656c436f6c6f723d30393136314526636f6c6f723d314438443233266c6f676f436f6c6f723d464646464646)](https://camo.githubusercontent.com/bcb9f8e2b25d87c031ef07d0f435df6bd226d4f2c2f41fefb35a5510d735f985/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f706c61797772696768742d7068702f706c61797772696768742d6d696e6b3f6c6162656c3d537461626c65266c6162656c436f6c6f723d30393136314526636f6c6f723d314438443233266c6f676f436f6c6f723d464646464646) [![License](https://camo.githubusercontent.com/cadc9158df4d707ddeb68eecec2b5e6a365351bb60422953aab8fd9fc50d8c90/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f706c61797772696768742d7068702f706c61797772696768742d6d696e6b3f6c6162656c3d4c6963656e7365266c6162656c436f6c6f723d30393136314526636f6c6f723d314438443233266c6f676f436f6c6f723d464646464646)](https://camo.githubusercontent.com/cadc9158df4d707ddeb68eecec2b5e6a365351bb60422953aab8fd9fc50d8c90/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f706c61797772696768742d7068702f706c61797772696768742d6d696e6b3f6c6162656c3d4c6963656e7365266c6162656c436f6c6f723d30393136314526636f6c6f723d314438443233266c6f676f436f6c6f723d464646464646)

Playwright PHP - Mink Driver
============================

[](#playwright-php---mink-driver)

A [Mink](https://mink.behat.org/) driver powered by **[Playwright PHP](https://github.com/playwright-php)**.

Important

This package is **experimental**. Its API may still change before the upcoming `1.0` release.

Curious or interested? Try it out, [share your feedback](https://github.com/playwright-php/playwright-mink/issues), or ideas!

Features
--------

[](#features)

- Run real browsers: Chromium, Firefox, WebKit (headless or not)
- Control the DOM: navigation, forms, cookies, JS, events
- Handle windows, iframes, uploads, screenshots, dialogs

Installation
------------

[](#installation)

**Requirements**

- PHP 8.2 or higher
- [Playwright PHP](https://github.com/playwright-php/playwright)

**Install the driver**

```
composer require --dev playwright-php/playwright-mink
```

Usage
-----

[](#usage)

```
use Behat\Mink\Session;
use Playwright\Mink\Driver\PlaywrightDriver;

$driver = new PlaywrightDriver(browserType: 'chromium', headless: true);
$session = new Session($driver);

$session->start();
$session->visit('https://example.org');

echo $session->getPage()->getText();

$session->stop();
```

Testing
-------

[](#testing)

This driver is validated against the official [`minkphp/driver-testsuite`](https://github.com/minkphp/driver-testsuite).

**Test Results**: 212/218 tests passing (97.2%) with 491 assertions

**Start the test server**

```
vendor/bin/mink-test-server
```

**Run tests**

```
vendor/bin/phpunit
```

### Known Limitations

[](#known-limitations)

6 tests are skipped due to known limitations:

- **jQuery UI Drag &amp; Drop** (2 tests): jQuery UI uses mouse events API, Playwright uses HTML5 Drag &amp; Drop API - these are incompatible
- **Popup Window Tracking** (4 tests): Async event timing with `window.open()` requires improvements in Playwright PHP event handling

License
-------

[](#license)

This package is released by the [Playwright PHP](https://playwright-php.dev)project under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance76

Regular maintenance activity

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

192d ago

### Community

Maintainers

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

---

Top Contributors

[![smnandre](https://avatars.githubusercontent.com/u/1359581?v=4)](https://github.com/smnandre "smnandre (13 commits)")

---

Tags

behatminkmink-driverplaywrightplaywright-behatplaywright-minkplaywright-testsbrowserMinkBehatplaywrightplaywright-phpmink-driverbehat-drivermink-extension

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/playwright-php-playwright-mink/health.svg)

```
[![Health](https://phpackages.com/badges/playwright-php-playwright-mink/health.svg)](https://phpackages.com/packages/playwright-php-playwright-mink)
```

###  Alternatives

[behat/mink-browserkit-driver

Symfony2 BrowserKit driver for Mink framework

54562.0M318](/packages/behat-mink-browserkit-driver)[behat/mink-selenium2-driver

Selenium2 (WebDriver) driver for Mink framework

51159.1M666](/packages/behat-mink-selenium2-driver)[friends-of-behat/mink-extension

Mink extension for Behat

14034.2M467](/packages/friends-of-behat-mink-extension)[sensiolabs/behat-page-object-extension

Page object extension for Behat

1166.5M27](/packages/sensiolabs-behat-page-object-extension)[robertfausk/mink-panther-driver

Symfony Panther driver for Mink framework

123.4M2](/packages/robertfausk-mink-panther-driver)[robertfausk/behat-panther-extension

Symfony Panther extension for Behat

341.7M87](/packages/robertfausk-behat-panther-extension)

PHPackages © 2026

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