Sha256: 08c3b64fff248e3c0132083f15ae715359514b41644aff311c3df2cfdb26b616

Contents?: true

Size: 500 Bytes

Versions: 6

Compression:

Stored size: 500 Bytes

Contents

require "capybara/poltergeist"

POLTERGEIST_URL_BLACKLIST = %w{
  tpc.googlesyndication.com
  www.googletagservices.com
  fonts.googleapis.com
  www.google-analytics.com
  api.mixpanel.com
  cdn.mxpnl.com
  tofu.example.com
  www.googletagmanager.com
  pagead2.googlesyndication.com
}

Capybara.register_driver :poltergeist do |app|
  Capybara::Poltergeist::Driver.new(app, url_blacklist: POLTERGEIST_URL_BLACKLIST, inspector: ENV["POLTERGEIST_DEBUG"])
end

Capybara.javascript_driver = :poltergeist

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
utensils-4.0.0 lib/utensils/capybara_javascript.rb
utensils-3.0.0 lib/utensils/capybara_javascript.rb
utensils-2.2.0 lib/utensils/capybara_javascript.rb
utensils-2.1.0 lib/utensils/capybara_javascript.rb
utensils-2.0.0 lib/utensils/capybara_javascript.rb
utensils-1.6.0 lib/utensils/capybara_javascript.rb