Sunday, 29 November 2020

Puppeteer goto with query parameters does not work

I am using Puppeteer page.goto(url) to to navigate to a page that ends with with .html?page=2

So a page I would call would look something like this:

https://mypage.com/some-category.html?page=2

Unfortunately the query params are ignored. When I call page.url() the return value is the page that I have called without the query params which looks like this:

https://mypage.com/some-category.html

Executing page.goto(url, { waitUntil: [anyhting] }) results in a timeout

Help would be greatly appreciated.



from Puppeteer goto with query parameters does not work

No comments:

Post a Comment