-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The README.md improvements #13
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13 +/- ##
=========================================
Coverage 83.54% 83.54%
Complexity 191 191
=========================================
Files 1 1
Lines 468 468
=========================================
Hits 391 391
Misses 77 77 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some side notes:
-
We could also update the example selenium version to 4, since this driver actually supports it.
-
I'm a fan of running README code in tests, to ensure that that code remains executable and up-to-date with our changes. If we can agree on this, I can create an issue to set that up later.
In theory it would look like:
```php echo 'Hello world'; // Outputs: // Hello world ```
/** * @dataProvider readmeExamplesDataProvider */ public function testThatExampleWorks(string $lang, string $input, string $output): void { switch ($lang) { case 'php': $this->expectOutputString($output); eval($input); return; // ... } }
(
readmeExamplesDataProvider
parses the readme and would return['php', "echo 'Hello world';", 'Hello world']
)
After you decide on those two points, feel free to merge this PR.
Could you please also add a section that would explain the difference between this project and I'm coming from Drupal and Behat, and Mink driver is not directly used, so I'm just trying to wrap my head around what this classic driver will replace and whether that replacement be a drop-in or if we need to re-write some other system. |
@uuf6429 , done.
@uuf6429 , Not sure how you can verify, that code actually works considering that:
@AlexSkrypnyk , here you go: minkphp/MinkSelenium2DriverThis is the Mink driver developed for Selenium 2, but also works on Selenium 3 (no window/frame switching support). There are PRs opened for fixing window/frame switching ability. It can't support Selenium 4, because it uses a different API. Internally it uses https://github.com/instaclick/php-webdriver to communicate with the Selenium server. minkphp/webdriver-classic-driverThis is the Mink driver developed from scratch for Selenium 2 and up (including Selenium 3, and Selenium 4) support using https://github.com/php-webdriver/php-webdriver to communicate with the Selenium server. IMO the
@AlexSkrypnyk , currently there is no way to use this driver with Behat (there is an #15 issue about this) and once implemented using this driver would be as easy as replacing |
The examples would need to be adapted for that. E.g. we could use
Agreed, it's not the same, but if we - for example - remove/deprecate/change the The purpose here is that the code - from our perspective - should work. If the user misses/breaks something, that's their responsibility. |
Addressed issues: