Quantcast
Channel: Grafana k6 - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 353

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

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 353

Trending Articles