Иван Бишевац
Иван Бишевац

Reputation: 14701

Run Capybara without opening browser

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?

Upvotes: 4

Views: 2606

Answers (1)

Steve
Steve

Reputation: 15736

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.

Upvotes: 3

Related Questions