fb-delete icon indicating copy to clipboard operation
fb-delete copied to clipboard

Accept Cookies

Open jakobjn opened this issue 2 years ago • 5 comments

Upon running the script as instructed, a chromium windows opens very briefly. Following error is printed in the terminal.

node:internal/process/promises:279 triggerUncaughtException(err, true /* fromPromise */); ^

Error: Error: failed to find element matching selector "input[id=m_login_email]" at ElementHandle.$eval (/home/jakob/Downloads/fb-delete/node_modules/puppeteer/lib/JSHandle.js:504:13) at async main (/home/jakob/Downloads/fb-delete/index.js:18:3) -- ASYNC -- at ElementHandle. (/home/jakob/Downloads/fb-delete/node_modules/puppeteer/lib/helper.js:111:15) at DOMWorld.$eval (/home/jakob/Downloads/fb-delete/node_modules/puppeteer/lib/DOMWorld.js:156:21) at async main (/home/jakob/Downloads/fb-delete/index.js:18:3) -- ASYNC -- at Frame. (/home/jakob/Downloads/fb-delete/node_modules/puppeteer/lib/helper.js:111:15) at Page.$eval (/home/jakob/Downloads/fb-delete/node_modules/puppeteer/lib/Page.js:345:29) at Page. (/home/jakob/Downloads/fb-delete/node_modules/puppeteer/lib/helper.js:112:23) at main (/home/jakob/Downloads/fb-delete/index.js:18:14) at runNextTicks (node:internal/process/task_queues:61:5) at listOnTimeout (node:internal/timers:528:9) at processTimers (node:internal/timers:502:7)

After recording the screen for the script execution, it seems that an 'accept cookies' window is what opens. It seems like the chromium browser that's opened is one installed as a dependency.

jakobjn avatar Apr 22 '22 21:04 jakobjn

That's strange, I'm not seeing the "accept cookies" window when I visit mbasic.facebook.com in a fresh browser. Would it possible to send a screenshot? That copy of Chromium is included by Puppeteer.

spieglt avatar May 05 '22 22:05 spieglt

Executing the script in my computer results to the same behaviour descriped by the TO. But the temporary opened chromium browser will exit before i could manually click on "accept cookies"

, I'm not seeing the "accept cookies" window when I visit mbasic.facebook.com in a fresh browser

Just delete the cookies and browser data from the chromium, after that (in my case) the accept cookie window will appear again

Edit: Even no success, if a start the chromium instance from Puppeteer folder and accept all cookies from [.]mbasic.facebook.com and [.]facebook.com.

opc241 avatar Aug 07 '22 11:08 opc241

I just tried this again from a fresh Chromium instance and don't believe I'm getting the cookie pop-up. I wonder if it's a regional thing? I may need some detailed screenshots or for someone experiencing this to submit a PR.

spieglt avatar Aug 07 '22 19:08 spieglt

Thanks for the hint with the regional thing! That's exactly it!. So as an solution (for me as a german):

-Connect VPN to United States

That's it. Greetings to DSGVO.

opc241 avatar Aug 08 '22 10:08 opc241

Ganz gut, vielen Dank @opc241!

spieglt avatar Aug 08 '22 15:08 spieglt

Fixed by https://github.com/spieglt/fb-delete/commit/fb49b77e26d2f17efb1a27a1780c84df09217869

spieglt avatar Dec 17 '22 18:12 spieglt