Sha256: a86c2b7c1679baf836dcb3ad7859c1e890719cef1c5a7067ae78d7eb9d7af7c7

Contents?: true

Size: 822 Bytes

Versions: 39

Compression:

Stored size: 822 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 :agilibox_poltergeist do |app|
  Capybara::Poltergeist::Driver.new(app,
    :debug       => false,
    :window_size => Agilibox::CucumberConfig.window_size,
    :timeout     => 60,
    :phantomjs   => phantomjs_binary,
  )
end

Capybara.default_driver    = :agilibox_poltergeist
Capybara.javascript_driver = :agilibox_poltergeist
Capybara.current_driver    = :agilibox_poltergeist

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
agilibox-1.8.0 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.7.4 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.7.3 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.7.2 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.7.1 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.7.0 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.6.2 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.6.1 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.6.0 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.5.13 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.5.12 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.5.11 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.5.10 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.5.9 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.5.8 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.5.7 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.5.6 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.5.5 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.5.4 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.5.3 lib/agilibox/cucumber_helpers/poltergeist.rb