W
W
WizardW2020-05-10 11:52:04
JavaScript
WizardW, 2020-05-10 11:52:04

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");

Full parser code: https://gist.github.com/daniilgri/5ef2523f5794f4f6...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question