Closed yoshimo closed 10 months ago
Maybe that was introduced with untested code for #180.
However, looks like they also renamed [data-a-target="LinkAccountModal"]
to [data-a-target="LinkAccountContainer"]
:
What is the button's aria-label
for you?
I added some debug output LinkAccountButton label:
.
Maybe the rest of the commit already fixes it.
<button aria-label="Link Riot Games account" class="tw-interactive tw-button tw-button--full-width tw-button--hollow tw-button--large" data-a-target="LinkAccountButton"><span class="tw-button__text" data-a-target="tw-button-text"><div class="tw-pd-y-1"><p class="tw-font-size-5" title="Link account">Link account</p></div></span></button>
<button aria-label="Link Riot Games account" class="tw-interactive tw-button tw-button--full-width tw-button--hollow tw-button--large" data-a-target="LinkAccountButton"><span class="tw-button__text" data-a-target="tw-button-text"><div class="tw-pd-y-1"><p class="tw-font-size-5" title="Link account">Link account</p></div></span></button>
Current DLC: VALORANT - Predicament Pals Spray
locator.getAttribute: Error: strict mode violation: locator('[data-a-target="LinkAccountButton"]') resolved to 2 elements:
1) <button data-a-target="LinkAccountButton" aria-label="Li…>…</button> aka locator('.link-account > .tw-interactive')
2) <button role="link" class="tw-interactive tw-button" dat…>…</button> aka getByRole('link', { name: 'Link account ExternalLink' })
@yoshimo This should be fixed now, no?
happens for other DLCs too.