interactors icon indicating copy to clipboard operation
interactors copied to clipboard

trim whitespace for HTML locator

Open cowboyd opened this issue 1 year ago • 0 comments

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.

cowboyd avatar Oct 07 '24 15:10 cowboyd