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