-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bump versions * updated readme * trigger * remove SetUpTearDownTrait * updated symfony/phpunit-bridge * fixing TimeoutTest * added bamarni/composer-bin-plugin, updated mink/driver-testsuite * fixing ScreenshotListener * fixing ScreenshotListener * update ci.yml and defined SYMFONY_DEPRECATIONS_HELPER * created FirefoxProfile * trigger * - moved bamarni/composer-bin-plugin to dev. - updated readme. * - moved bamarni/composer-bin-plugin to dev. * add nc
- Loading branch information
1 parent
f570e0f
commit c64d82e
Showing
8 changed files
with
60 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ chromedriver/ | |
geckodriver/ | ||
msedgedriver/ | ||
logs/ | ||
vendor-bin/**/vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,40 +5,33 @@ Initially it's started as [PR](https://github.com/minkphp/MinkSelenium2Driver/pu | |
|
||
Major updates include: | ||
- Switch to using `facebook/webdriver` | ||
- Update minimum php version to 7.2 | ||
- Update minimum php version to 7.4 | ||
- Tested against the latest Google Chrome and Mozilla Firefox both in GUI and Headless modes | ||
|
||
## Setup | ||
|
||
Install via `oleg-andreyev/mink-phpwebdriver-extension` | ||
Install `oleg-andreyev/mink-phpwebdriver` | ||
```bash | ||
$ composer require --dev oleg-andreyev/mink-phpwebdriver-extension | ||
composer require oleg-andreyev/mink-phpwebdriver | ||
``` | ||
|
||
Add this extension to your `behat.yml` (see below) | ||
|
||
- Set the wd_host to this server instead | ||
```yaml | ||
default: | ||
extensions: | ||
OAndreyev\MinkPhpWebdriverExtension: ~ | ||
Behat\MinkExtension: | ||
default_session: webdriver | ||
webdriver: | ||
wd_host: "http://0.0.0.0:4444/wd/hub" | ||
browser: 'chrome' | ||
``` | ||
## Behat Extension | ||
https://github.com/oleg-andreyev/MinkPhpWebdriverExtension | ||
|
||
## Testing | ||
|
||
```bash | ||
$ ./bin/start_webdriver.sh & | ||
#./bin/start_driver.sh <browser> <version> | ||
$ ./bin/start_driver.sh chrome latest & | ||
$ BROWSER_NAME=chrome ./vendor/bin/simple-phpunit | ||
./bin/start_webdriver.sh & | ||
# ./bin/start_driver.sh <browser> <version> | ||
./bin/start_driver.sh chrome latest & | ||
BROWSER_NAME=chrome ./vendor/bin/simple-phpunit | ||
``` | ||
|
||
This will download the latest driver for specified browser and will execute phpunit | ||
|
||
## Running GitHub Acton locally | ||
Follow https://github.com/shivammathur/setup-php#local-testing-setup | ||
|
||
## Copyright | ||
|
||
Copyright (c) 2019 Oleg Andreyev <[email protected]> | ||
Copyright (c) 2022 Oleg Andreyev <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"require": { | ||
"vimeo/psalm": "^4.8", | ||
"psalm/plugin-phpunit": "^0.16.1" | ||
} | ||
} |