Hacker News new | ask | show | jobs
by samuraixp 3448 days ago
Does anyone have a working version of phantomjs 2.1.1 with ghostdriver that connects to selenium grid?

I tried this one for example but it just crashes randomly when the jobs are running: https://github.com/AkeemMcLennon/docker-selenium-node-phanto...

The latest 2.5.0 beta doesnt have the updated ghostdriver yet.

How much ram does chrome --headless use (true headless not XvfB), because I want to run about 200 of these in parallel and keeping the ram down is important obviously.

Does anyone have any suggestions? I figure by using selenium grid I can run them in docker containers and even on multiple hardware machines.

Currently, I am running about 50 in parallel with Magellan https://github.com/TestArmada/magellan

But its hitting some kind of system limits or sync issues because each process is started before run time rather than ready and waiting in a pool.

Any help on running 200 headless browsers via selenium grid would be greatly appreciated. I think the current selenium chrome Xvbf docker container uses like 300mb+ per instance so that would be 60gb of ram which is a fair bit.

1 comments

I got 2.1.1 working on my raspberry pi. The binary I have is an arm build but I can confirm that the issue can be solved by editing the binary as detailed in https://gist.github.com/neuro-sys/41e368839a9b20dafb34

I forked the binary from https://mecrazy.net/2016/06/06/i-built-phantomjs-2-1-1-for-r...

it's available here: https://github.com/ShamariFeaster/phantomjs-binaries