-
Notifications
You must be signed in to change notification settings - Fork 30
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
Spreewald should never check the current driver name, but its class #74
Comments
Note that there are many JavaScript capable drivers that are not using Selenium. E.g. |
@codener I'm not sure I understand how checking against |
Neither solution has ever broke down in us in 10 years or so? Maybe just decide on one and expose with via |
Today I worked with multiple Chrome sessions because of device emulation. I vote for using |
Is this always right?
|
Not really. For example, we used Would still favor checking inheritance. |
Today, I could not use the Would be awesome if we could fix Spreewald any time soon. |
This is the one solution we all agreed on. |
Done with 1.12.2 / 196b016 |
In multiple places in web_steps.rb, spreewald distinguishes Capybara drivers by their name. However, since the driver name is variable (i.e. it is chosen by project developers), this is a weak means for differentiation.
Spreewald should check the driver's class instead, e.g. check if it is
Capybara::Selenium::Driver
or the like.The text was updated successfully, but these errors were encountered: