Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save codesorter2015/e236c8fe6a023274c746b98ef709174c to your computer and use it in GitHub Desktop.
Save codesorter2015/e236c8fe6a023274c746b98ef709174c to your computer and use it in GitHub Desktop.
await Promise.all([
page.click('button[type="submit"]'),
page.waitForNavigation(),
]);
One workaround would be to listen for framenavigated event.
await Promise.all([
leftFrame.click('a[href="option2.html"]'),
new Promise(resolve => page.once('framenavigated', resolve))
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment