The Puppeteer context or page to use for selector operations.
An array of selectors to race.
Optional
options: WaitForSelectorOptionsOptional configuration for waitForSelector
.
A promise that resolves to an object containing:
result
: The result of the first successful waitForSelector
call.winner
: The selector that won the race.
Races multiple
waitForSelector
calls and returns the first successful result along with the selector that won.