Reputation: 634
I need to use selenium web-driver on a production server in order to get content generated with javascript, and parse it with nokogiri(because I already have something done with it).
On my local machine, when I try opening a page with selenium it will open the browser as well, it will behave the same on a VPS?
If it will behave the same on a VPS, do I need to close the browser?, because I have to run throw millions of pages every day.
My VPS: is using Capistrano, with ruby on rails.
Are there any better solutions to do this?
Thank you.
Upvotes: 2
Views: 354
Reputation: 2493
Consider using Watir Web Driver + Headless gem which will not open any window.They both use Selenium.
Upvotes: 1
Reputation: 10038
We use poltergeist gem with capybara for similar task on server side. It uses headless webkit browser PhantomJS.
Upvotes: 2