Closed
Description
Make an act
flag that can parameterize the new tab behavior in the example below, such that the user can choose whether or not to switch to the newly opened tab.
await page.goto("https://playwright.dev");
await page.setContent(`
<html>
<body>
<a href="https://playwright.dev" target="_blank">Open Playwright</a>
</body>
</html>
`);
await page.act("Click on Open Playwright link");
Metadata
Metadata
Assignees
Labels
No labels