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

Version Path
ndr_dev_support-5.3.1 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-5.3.0 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-5.2.0 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-5.1.0 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-5.0.1 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-5.0.0 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-4.2.1 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-4.2.0 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-4.1.3 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-4.1.2 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-4.1.1 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-4.1.0 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-4.0.0 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-3.1.3 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-3.1.2 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-3.1.1 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-3.1.0 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb
ndr_dev_support-3.0.0 lib/ndr_dev_support/integration_testing/drivers/poltergeist.rb