Meet the Other Phone. Child-safe in minutes.

Meet the Other Phone.
Child-safe in minutes.

Buy now

Please or to access all these features

Geeky stuff

Struggling to capture node screenshot (javascript)

3 replies

morecoffeeJD · 15/05/2024 15:13

I'm having lots of issues with cookie banners here. Trying with Selenium specifically. I am not the most experienced with node and I thought this project would be challenging, but I had no idea this would be one of the issues. I am thinking of using puppeteer or nightmare. Does it sound like a good idea? I searched on a couple of tech forums, but couldn't find anything and honestly I'm a bit embarrassed to ask myself there. At this point, I'm more or less confident doing things but I don't use the jargon I saw on those forums (although I do understand it). I found some similar topics here but nothing that can help with my specific problem. Still, it's encouraging enough for me to ask here. How to get rid of cookie banners and ads in screenshots?

OP posts:
codegeass · 15/05/2024 15:48

No need to feel embarrassed about seeking help - that's what communities are for. Since you're working with node js, both puppeteer and nightmare are solid choices. Another option you might consider is phantom js, although it's worth noting that it's no longer actively maintained. Give puppeteer or nightmare a shot first, as they're more up-to-date and widely used. Here are a couple of other methods to get good node js screenshots; you can get an idea of the results too, but I would suggest testing them by yourself.

ArchaeoSpy · 15/05/2024 15:56

personally i use opera and max the security settings on it

morecoffeeJD · 15/05/2024 16:02

Thanks, I'll read about all these methods carefully. And test them for sure.

OP posts:
New posts on this thread. Refresh page