79520567

Date: 2025-03-19 15:01:56
Score: 0.5
Natty:
Report link

As rightly suggested , please provide the minimal reproducible example.

However , to get you started : One of the core issue is, await page.locator().all() returns an array of promises so If you directly iterate over jobs, the locators resolve their properties asynchronously when accessed.

Instead of this:

const jobs = await page.locator('[data-testid="job-item-title"]').all();

I would suggest to use `.evaluateAll()` to directly fetch the job links instead of locators:

const jobs = await page.locator('[data-testid="job-item-title"]').evaluateAll(nodes => nodes.map(n => n.href));
Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-0.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Vishal Aggarwal