Can't log in through Facebook using Puppeteer - Error: Cookies required
问题 This is my code to login using facebook to a website I'm automating: const loginButton = await page.waitForXPath( "//button[contains(@name, 'login')]" ); const email = await page.waitForSelector("#email"); const pass = await page.waitForSelector("#pass"); await page.evaluate((text) => { email.value = text; }, "my email"); await page.evaluate((text) => { pass.value = text; }, "my password"); await loginButton.click(); Usually it works well, but once every 4 or 5 times, I get the following