Run Capybara without opening browser

capybara, ruby, selenium

Solution

There is a headless-webkit driver for Capybara that would avoid opening a browser window.

If you are not tied to the Capybara API and don't need to worry about JavaScript then mechanize would probably be a simpler way to interact with Web sites.

Problem

I wrote simple console script for scraping with capybara (selenium driver) but doesn't want browser to appear. I just wan't text to be written on console. Is possible to run capybara wihout opening browser?

Original source