Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Navigation promise placement is wonky sometimes #30

Closed
tnolet opened this issue Oct 9, 2018 · 0 comments
Closed

Navigation promise placement is wonky sometimes #30

tnolet opened this issue Oct 9, 2018 · 0 comments
Assignees
Labels
🐛 bug Something isn't working
Milestone

Comments

@tnolet
Copy link
Member

tnolet commented Oct 9, 2018

examples are:

  1. it comes after the navigation...
(async () => {
  const browser = await puppeteer.launch()
  const page = await browser.newPage()
  
  await page.setViewport({ width: 1280, height: 694 })
  
  await page.goto('https://someurl')
  
  await page.waitForSelector('.vertical-center > .row > .col-md-offset-4 > form > .btn-primary')
  await page.click('.vertical-center > .row > .col-md-offset-4 > form > .btn-primary')
  
  const navigationPromise = page.waitForNavigation()
  await navigationPromise
  
  await browser.close()
})()
  1. There are many duplicates after one navigation. No example yet.
@tnolet tnolet added the 🐛 bug Something isn't working label Oct 9, 2018
@tnolet tnolet self-assigned this Oct 9, 2018
@tnolet tnolet closed this as completed in 565d443 Oct 30, 2018
@tnolet tnolet modified the milestones: 0.5.0, v0.5.0 Oct 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant