this post was submitted on 17 Jul 2023
4 points (100.0% liked)

Selenium Web Browser Automation

91 readers
1 users here now

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

founded 1 year ago
MODERATORS
 

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

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 2 points 11 months ago

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

[โ€“] [email protected] 2 points 11 months ago

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