I had this question, found a privated reddit post, so I figured I’d ask again :)
I’m basically trying to figure out a minimal container that can load pages via selenium and take a screenshot.
"I am presently using a firefox gecko driver with python in ubuntu for my auto testing. The problem is it uses a very high memory about 150-350 mb and also cpu for a single site. Is there any lightweight selenium web drivers which uses less system resources? Can you recommend any? "
Is visiting a modern webpage even possible with much less RAM? Not sure you can shave off anything here.
I’ve never found any really light-weight browsers to actually work that well. But the web pages I was testing were always Angular based or other complicated JS stuff.
But… give PhantomJS a shot. There’s also a list of other headless browsers that you could try out: https://github.com/dhamaniasad/HeadlessBrowsers