Playwright Awesome Selectors

playwright-awesome-selectors

Check out my short post on Playwright Awesome Selectors

My personal favourite is page.getByRole(role, options)
eg:

await page.getByRole('button', { name: 'Sign in' }).click();

Do tell me yours…😀

Total
18
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
how-to-convert-html-to-react-component

How to convert HTML To React Component

Next Post
universal-analytics-vs.-google-analytics-4-explained-for-shopify-merchants

Universal Analytics vs. Google Analytics 4 Explained for Shopify Merchants

Related Posts