Sha256: 6debbc359e2686e34735e0da26222e80479e70211da878b5dca0efc1600a0dfc
Contents?: true
Size: 506 Bytes
Versions: 18
Compression:
Stored size: 506 Bytes
Contents
# The driver for PhantomJS is poltergeist: require 'capybara/poltergeist' Capybara.register_driver(:poltergeist) do |app| options = { phantomjs_options: ['--proxy-type=none'], timeout: 60 } options.merge!(debug: true, inspector: true) if ENV['DEBUG_PHANTOM_JS'] Capybara::Poltergeist::Driver.new(app, options) end Capybara::Screenshot.register_driver(:poltergeist) do |driver, path| # Take full-height screenshots, rather than just capturing the viewport: driver.render(path, full: true) end
Version data entries
18 entries across 18 versions & 1 rubygems