<p dir="auto">Can playwright test generator be configured to look for specific HTML attribute as precedence and record it?</p>
<p dir="auto">Example : If my web page has an input field with attribute myId like:  </p>
<p dir="auto">Can I configure test generator to look for myId attribute and generate a step as:<br>
await page.FillAsync("//*[<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/myid/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/myid">@myid</a>='MyProject.Data.Username']", "My Text");</p>
<p dir="auto">Please make the list of <code class="notranslate">["data-test-id", "data-testid", ...]</code> selector building attributes configurable. Or even please add an configuration option to add custom JS/TS method that prepends your selector building code.</p>
<h3 dir="auto">Reasons:</h3>
<ul dir="auto">
<li>Some projects use different names like e2e-target, data-cy, data-e2e, data-qa, data-test, data-testid</li>
<li>There are also companies that use extended data-test-id strategy where you have 2 tags. "data-test-id" (for example: "signup") and "data-test-id-type" (for example: "modal"). In order to fully use e2e recording using your cli it would be best to prepend your selector builder strategy with custom method that uses "data-test-id-type" too.</li>
</ul>