Sha256: 615cea3c5b30c5705323efd689f674d467e9997d659e1794971bbebff64a13f4

Contents?: true

Size: 843 Bytes

Versions: 8

Compression:

Stored size: 843 Bytes

Contents

require "capybara/poltergeist"

phantomjs_version = Agilibox::CucumberConfig.phantomjs_version
phantomjs_binary = `which phantomjs-#{phantomjs_version} phantomjs`.split("\n").first
raise "invalid phantomjs version" if `#{phantomjs_binary} -v`.strip != phantomjs_version
# You can download phantomjs here : https://bitbucket.org/ariya/phantomjs/downloads/
# Semaphore setup commmand : change-phantomjs-version 2.1.1

Capybara.register_driver :poltergeist do |app|
  Capybara::Poltergeist::Driver.new(app,
    :debug       => false,
    :window_size => Agilibox::CucumberConfig.phantomjs_window_size,
    :timeout     => 60,
    :phantomjs   => phantomjs_binary,
  )
end

Capybara.default_driver        = :poltergeist
Capybara.javascript_driver     = :poltergeist
Capybara.current_driver        = :poltergeist
Capybara.default_max_wait_time = 3

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
agilibox-1.1.0 features/support/poltergeist.rb
agilibox-1.0.15 features/support/poltergeist.rb
agilibox-1.0.14 features/support/poltergeist.rb
agilibox-1.0.13 features/support/poltergeist.rb
agilibox-1.0.12 features/support/poltergeist.rb
agilibox-1.0.11 features/support/poltergeist.rb
agilibox-1.0.10 features/support/poltergeist.rb
agilibox-1.0.9 features/support/poltergeist.rb