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? "

2 points

Is visiting a modern webpage even possible with much less RAM? Not sure you can shave off anything here.

permalink
report
reply
2 points

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

permalink
report
reply

Selenium Web Browser Automation

!selenium@lemmy.world

Create post

Users forum for selenium browser testing. Do not advertise here.

Community stats

  • 25

    Monthly active users

  • 26

    Posts

  • 44

    Comments