-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[Feature]more smart selector policy #3667
Comments
text string selector is just one little baby step |
This looks like a duplicate of #2877. But indeed, that kind of feature would be awesome. |
Since we support third party selectors, one could implement that, would look like: await selectors.register('taiko', require('taiko-playwright`)); page.click(`taiko=link('Sign In',near("Home"),toLeftOf("Sign Out"))`); |
I think smart selector is core feature of automate library, the extension policy is another something. |
@pavelfeldman Nice, that looks like a pretty cool feature for getting access to smart selector logic, even if it is not included in Playwright's core -- thanks for the hint. On my side, however, I get the below error message when trying to register taiko as described above:
(Besides: I think you've got a small typo in your selectors.register statement. I think it should read Here's how I installed taiko within my playwright project under the name of 'taiko-playwright' instead of just 'taiko':
Do you have an idea on why it's not working on my side? Playwright version: 1.3.0 |
Thanks for the request @roughsoft. I'll merge this with #2877 since they are duplicates. |
@pavelfeldman I understand now what you mean by "implement that" in your above comment after having found the documentation on customer selector engines. I first thought (somewhat naively ;) that by some kind of magic this would work automatically, which of course is not possible w/o some glue code. |
Hi! |
if we can support the selector policy thinking browser as blackbox, the user experience will more awesome.
https://github.com/getgauge/taiko#smart-selectors
https://docs.taiko.dev/api/relativeselector/
these feature can improve the productivity of producting command when user interacting web application in auth script mode.
The text was updated successfully, but these errors were encountered: