Skip to content
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

trim whitespace for HTML locator #309

Open
cowboyd opened this issue Oct 7, 2024 · 0 comments
Open

trim whitespace for HTML locator #309

cowboyd opened this issue Oct 7, 2024 · 0 comments

Comments

@cowboyd
Copy link
Member

cowboyd commented Oct 7, 2024

The default HTML locator is innerText which is not very useful because it means that you get thousands of results for the base HTML interactor that are variations of " ", " \n", "\n \n\n" etc...

This is not useful. We can keep the text filter to be the raw inner text so that we can match against that and have it include whitespace (although still not sure how useful that is) but for the locator we should trim the inner text so that differences in whitespace do not disambiguate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant