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

Version Path
ndr_dev_support-6.1.9 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-6.1.8 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-6.1.7 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-6.1.6 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-6.1.5 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-6.1.4 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-6.1.3 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-6.1.2 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-6.1.1 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-6.1.0 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-6.0.4 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-6.0.3 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-6.0.2 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-6.0.1 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-6.0.0 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-5.10.2 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-5.10.1 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-5.10.0 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-5.9.0 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-5.8.2 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb