Capybartender
Don't stress, let Capybartender serve you your desired Selenium profile!
Installation
Add this line to your application's Gemfile:
gem 'capybartender'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capybartender
Usage
Work in progress, but as of right now, you can get two profiles, Chrome and Firefox with a few handful of options.
1.) Firefox
Capybartender::Serve.firefox_driver!('custom_driver_name', {})
session = Capybara::Session.new(:custom_driver_name)
session.visit "http://www.google.com"
Options, at the moment, include:
:use_cache => [true|false]
:test_mode => [true|false]
:timeout => Integer
2.) Chrome
Capybartender::Serve.chrome_driver!('custom_driver_name', {})
session = Capybara::Session.new(:custom_driver_name)
session.visit "http://www.google.com"
Options, at the moment, include:
:timeout => Integer
Notes
Must have latest Chrome driver installed in order to use the Chrome profile
( http://chromedriver.storage.googleapis.com/index.html )
Contributing
- Fork it ( https://github.com/alexanderbez/capybartender/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request