Is there way to look for multiple selectors at a time through page.locator ? case where page have result to display in table, or if no result to display, want to have page.locator to check either case.
Just like what puppeteer provides, see below puppeteer sample.
await puppeteer.Locator.race([
targetPage.locator('#className'),
targetPage.locator('::-p-xpath(//*[@id=\\"idValue\\"])')
])
.setTimeout(timeout)
.click();
1 post - 1 participant