oleg-andreyev/mink-phpwebdriver

MinkPhpWebDriver driver for Mink framework

Installs: 2 406 184

Dependents: 4

Suggesters: 0

Security: 0

Stars: 8

Watchers: 2

Forks: 9

Open Issues: 5

Type:mink-driver

v1.3.2 2024-08-29 20:31 UTC

README

Latest Stable Version Latest Unstable Version Total Downloads CI License codecov

Initially it's started as PR to MinkSelenium2Driver

Major updates include:

  • Switch to using facebook/webdriver
  • Update minimum php version to 8.0
  • Tested against the latest Google Chrome and Mozilla Firefox both in GUI and Headless modes

Setup

Install oleg-andreyev/mink-phpwebdriver

composer require oleg-andreyev/mink-phpwebdriver

Behat Extension

https://github.com/oleg-andreyev/MinkPhpWebdriverExtension

Testing

./bin/start_webdriver.sh &
# ./bin/start_driver.sh <browser> <version>
./bin/start_driver.sh chrome latest &
BROWSER_NAME=chrome ./bin/phpunit

This will download the latest driver for specified browser and will execute phpunit

Running GitHub Action locally

Follow https://github.com/shivammathur/setup-php#local-testing-setup

Copyright

Copyright (c) 2023 Oleg Andreyev oleg@andreyev.lv