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.5.2 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.5.1 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.5.0 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.4.4 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.4.3 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.4.2 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.4.1 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.4.0 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.3.6 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.3.5 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.3.4 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.3.3 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.3.2 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.3.1 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.3.0 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.2.3 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.2.2 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.2.1 lib/agilibox/cucumber_helpers/poltergeist.rb
agilibox-1.2.0 lib/agilibox/cucumber_helpers/poltergeist.rb