Snippets Collections
const firstResolvedPromiseResult = await Promise.race([
  this.page.waitForSelector('div#abc'),
  this.page.waitForSelector('div#efg'),
]);
star

Mon Jun 19 2023 15:25:11 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/71596844/how-can-i-use-page-waitforselector-in-playwright-for-one-of-two-selectors

#javascript #playwright.js

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension