Check multiple selectors through page.locator call like puppeteer.locator.race

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();

Hi @vinodkr,

First of all, apologies for the delayed answer. Somehow this got lost among my inbox.

As far as I know, Promise.race is supported by k6.

So, I guess that you could build a similar construct with the Locator API from the k6 Browser module in combination with Promise.race.

Have you tried something like that? Did you encounter any issue with this approach?

I hope that helps! :person_bowing: