Sha256: 99ac92036f25385051158f78dc705faf11119bd77d9ee179ad42ec2fc6d84073
Contents?: true
Size: 805 Bytes
Versions: 4
Compression:
Stored size: 805 Bytes
Contents
require "capybara/poltergeist" phantomjs_version = "1.9.8" phantomjs_binary = `which phantomjs-#{phantomjs_version} phantomjs`.split("\n").first raise "invalid phantomjs version" unless `#{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 => [1680, 1050], :timeout => 60, :phantomjs => phantomjs_binary, :js_errors => false, ) end Capybara.default_driver = :poltergeist Capybara.javascript_driver = :poltergeist Capybara.current_driver = :poltergeist Capybara.default_max_wait_time = 3
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dorsale-3.1.5 | features/support/poltergeist.rb |
dorsale-3.1.4 | features/support/poltergeist.rb |
dorsale-3.1.3 | features/support/poltergeist.rb |
dorsale-3.1.2 | features/support/poltergeist.rb |