ruifigueira / playwright-crx

Playwright for chrome extensions
Apache License 2.0
81 stars 15 forks source link

[Feature] Support custom testIdAttribute #15

Closed Az8th closed 4 months ago

Az8th commented 4 months ago

Hi, could you please add support for custom test ID attributes ?

Currently, it is only supported for the default one (data-testid), which can be used by page.byTestId()

Thanks

Az8th commented 4 months ago

Thanks a lot, especially for supporting it that quick ;)

ruifigueira commented 4 months ago

You're welcome. I'll release this when playwright releases 1.43.0. If you want, you can build playwright-crx and install recorder-crx extension as an unpacked extension.

Then, to configure testIdAttribute:

image

ruifigueira commented 3 months ago

playwright-crx 0.5.0 is now released and chrome extension is already available here: https://chromewebstore.google.com/detail/playwright-crx/jambeljnbnfbkcpnoiaedcabbgmnnlcd?hl=en