Skip to content

Conversation

@sjorsdonkers
Copy link
Contributor

@sjorsdonkers sjorsdonkers commented May 28, 2025

Depends on: lightpanda-io/browser#721, lightpanda-io/browser#760

Playwright also works with the same code as Puppeteer, but using getByRole shows that it also works via this route.

const links = await page.evaluate(() => {
  return Array.from(document.querySelectorAll('a')).map(row => {
    return row.getAttribute('href');
  });
});

@sjorsdonkers sjorsdonkers force-pushed the playwright-links.js branch from 4665bd5 to 194d358 Compare May 28, 2025 14:44
@sjorsdonkers sjorsdonkers force-pushed the playwright-links.js branch from 194d358 to 1172f9c Compare June 4, 2025 09:58
@sjorsdonkers sjorsdonkers merged commit 49b7c46 into main Jun 4, 2025
@sjorsdonkers sjorsdonkers deleted the playwright-links.js branch June 4, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants