Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 208
Иван Бишевац Avatar asked Oct 21 '25 14:10

Иван Бишевац


1 Answers

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.

like image 155
Steve Avatar answered Oct 24 '25 20:10

Steve



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!