Answer the question
In order to leave comments, you need to log in
Why can't I close a popup window with puppeteer?
Good afternoon. Question about puppeteer.
There is a page of Dota items ( https://buff.163.com/market/?game=dota2#tab=sellin... on the page with a certain number of items, pagination at the bottom. When you click on the next page, a popup window with a login form, I can’t close
it.Here I try to wait for the popup to load and close it
await page.waitForSelector("#j_popup_login > a");
await page.click("#j_popup_login > a");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question