<p dir="auto">if we can support the selector policy thinking browser as blackbox, the user experience will more awesome.<br>
<a href="https://github.com/getgauge/taiko#smart-selectors">https://github.com/getgauge/taiko#smart-selectors</a><br>
<a href="https://docs.taiko.dev/api/relativeselector/" rel="nofollow">https://docs.taiko.dev/api/relativeselector/</a><br>
these feature can improve the productivity of producting command when user interacting web application in auth script mode.</p>
<p dir="auto"><strong>Let us know what functionality you'd like to see in Playwright and what is your use case.</strong><br>
A special locator to visually locate an element.</p>
<p dir="auto">In taiko, browser automation library by thoughtwork, you could locate element visually like the following:<br>
<code class="notranslate">click(checkbox(near("Username")))</code></p>
<p dir="auto">Taiko calls it proximity locator<br>
Refer: <a href="https://docs.taiko.dev/#smart-selectors" rel="nofollow">https://docs.taiko.dev/#smart-selectors</a></p>
<p dir="auto">This locator will reduce the flakiness of the script and the maintenance cost because the locator doesn't rely on html structure that may be changed from time to time. Even we can assign data-testid attribute but this is very useful in some cases as well.</p>
<p dir="auto"><strong>Do you think others might benefit from this as well?</strong><br>
Yes, it is.</p>