Browserly

Is a simple tool that helps to create website screenshots using selenium + chrome driver. This gem creates pool of browsers thus increases speed of taking webpage screenshot.

Installation

Add this line to your application's Gemfile:

gem 'browserly'

And then execute:

$ bundle

Or install it yourself as:

$ gem install browserly

Configuration

Browserly.configure do |config|
  config.tmp_path = 'path/to/store/screenshots'
  config.pool_size = 1 # count of browsers instance to start
end

Usage

screenshot = Browserly::Screenshot.new('http://example.com').perform
screenshot.file #=> screenshot image file

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.