I've been struggling with getting headless Chrome to run smoothly in Docker. It seems like I spend more time troubleshooting the container setup than actually writing the automation code I need. It's frustrating to deal with memory leaks and crashes when trying to run a remote headless browser. I'm really looking for a way to simplify this process. Is there a solution out there that allows for easy deployment, maybe with just a simple command or decorator to handle the setup?
4 Answers
Playwright and Firefox are my go-to now. Honestly, Chrome has been more trouble than it’s worth for me!
I totally get your pain! I found Playwright Server to be the silver lining. Run it in a beefy instance and create or destroy tabs as needed. If you need to load custom HTML, just host it somewhere like S3 or GCS and let Playwright handle it from there. It’s been a game changer compared to the years I spent on Selenium and custom setups!
I've had a pretty good experience with browserless images. What specific tasks are you looking to accomplish with it?
What exactly are you trying to achieve with Chrome? It’s a bit unclear to me.

I'm guessing it's for automated browser testing using tools like Playwright or Selenium.