You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
Is it technically feasible to default to something like button:has-text("Log In") instead of incredibly long, unmaintainable selectors? Some way of defaulting to the shortest text-based selector when possible? I'd love to be able to use this extension while also following Playwright's best practices of using text in all possible cases.
The text was updated successfully, but these errors were encountered:
@RyKilleen did you try (or is possible for you) to use a data attribute?
You can set something like data-testid to your HTML elements and then configure the extension to use it in the options page.
Once is enabled, data attributes will take precedence over other selectors.
Is it technically feasible to default to something like
button:has-text("Log In")
instead of incredibly long, unmaintainable selectors? Some way of defaulting to the shortest text-based selector when possible? I'd love to be able to use this extension while also following Playwright's best practices of using text in all possible cases.The text was updated successfully, but these errors were encountered: