oleg-andreyev / mink-phpwebdriver
Mink框架的MinkPhpWebDriver驱动程序
v1.3.2
2024-08-29 20:31 UTC
Requires
- php: >=8.0
- behat/mink: ^1.10
- php-webdriver/webdriver: ^1.14
Requires (Dev)
- ext-json: *
- bamarni/composer-bin-plugin: ^1.8
- behat/mink-extension: ^2.3
- jetbrains/phpstorm-attributes: ^1.0
- mink/driver-testsuite: dev-integration-branch
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2024-08-29 20:38:20 UTC
README
最初作为PR提交给MinkSelenium2Driver
主要更新包括
- 切换到使用
facebook/webdriver
- 将最低PHP版本更新到8.0
- 在GUI和Headless模式下对最新版本的Google Chrome和Mozilla Firefox进行了测试
安装
安装oleg-andreyev/mink-phpwebdriver
composer require oleg-andreyev/mink-phpwebdriver
Behat扩展
https://github.com/oleg-andreyev/MinkPhpWebdriverExtension
测试
./bin/start_webdriver.sh & # ./bin/start_driver.sh <browser> <version> ./bin/start_driver.sh chrome latest & BROWSER_NAME=chrome ./bin/phpunit
这将下载指定浏览器的最新驱动程序并执行phpunit
本地运行GitHub Action
遵循https://github.com/shivammathur/setup-php#local-testing-setup
版权
版权(c)2023 Oleg Andreyev [email protected]