-
Notifications
You must be signed in to change notification settings - Fork 29
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
Testing "getText" driver method #98
Comments
❤ and thank you for all your work! |
Example:The text version of
|
Thanks for the investigation! To a certain point, it may be even better to implement this on our side, since it gives us more control of what we want to provide to our users. I'm asking because in some specific situations, the selenium behaviour might not be desired - say for example we do On the other hand, this is definitely a regression - so we may as well just go ahead and fix it without too much thought. |
Created associated PRs. Ready for review. |
Closing, since everything is merged. |
Recently we've changed
getText
method in Selenium-based drivers to allow getting the text of the invisible elements or elements that are visible, but Selenium thinks they're not:By doing so we've introduced a bug, that Selenium code was solving for us before:
A0
ASCII code with a regular space.While attempting to write a test about that I've found, that https://github.com/minkphp/MinkBrowserKitDriver implementation of
getText
don't support symbol withA0
ASCII code at all.I've written all the necessary code for :
Should I submit these PRs?
// cc: @stof , @uuf6429 , @mvorisek
P.S.
As a bonus side effect the
innerText
does replace<br>
with a regular space, which can result in spaces before/after the text, which we should also trim.The text was updated successfully, but these errors were encountered: