Sha256: e30d87905658223d048cdce64fe6b3cee015d4ac6f08b3d7f7ca11e327d7283b
Contents?: true
Size: 871 Bytes
Versions: 1
Compression:
Stored size: 871 Bytes
Contents
# :sauce driver Capybara.register_driver :sauce do |app| caps = CapybaraHelpers.required_cloud_caps.merge( maxDuration: Howitzer.cloud_max_duration, idleTimeout: Howitzer.cloud_sauce_idle_timeout, recordScreenshots: Howitzer.cloud_sauce_record_screenshots, videoUploadOnPass: Howitzer.cloud_sauce_video_upload_on_pass ) if Howitzer.user_agent.present? if CapybaraHelpers.chrome_browser? caps['chromeOptions'] = { 'args' => ["--user-agent=#{Howitzer.user_agent}"] } elsif CapybaraHelpers.ff_browser? profile = Selenium::WebDriver::Firefox::Profile.new profile['general.useragent.override'] = Howitzer.user_agent caps[:firefox_profile] = profile end end url = "http://#{Howitzer.cloud_auth_login}:#{Howitzer.cloud_auth_pass}@ondemand.saucelabs.com:80/wd/hub" CapybaraHelpers.cloud_driver(app, caps, url) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
howitzer-2.1.0 | generators/config/templates/drivers/sauce.rb |