79318728

Date: 2024-12-30 22:12:40
Score: 2
Natty:
Report link
const el = await page.waitForSelector("::p-xpath(///div[@role='button' and text()='Next'])");
await el.click();

you can do this for selecting element with xpath for puppeteer latest version

Reference : https://pptr.dev/guides/page-interactions/#xpath-selectors--p-xpath

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: taqin