Sha256: f42ae889d106d9e0cbcc8f9f59d45ebee2efdf3972a9fada6f1a128dce16b94a
Contents?: true
Size: 616 Bytes
Versions: 35
Compression:
Stored size: 616 Bytes
Contents
# The driver for PhantomJS is poltergeist: require 'capybara/poltergeist' require 'show_me_the_cookies' 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 ShowMeTheCookies.register_adapter(:poltergeist, ShowMeTheCookies::Poltergeist)
Version data entries
35 entries across 35 versions & 1 rubygems