Last active
December 14, 2015 00:59
-
-
Save DylanLacey/5002480 to your computer and use it in GitHub Desktop.
How to use Sauce Labs with Capybara only for remote tests (with :js => true)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Include this in spec_helper when you're running remotely | |
Capybara.register_driver :selenium do |app| | |
require 'selenium-webdriver' | |
capabilities = Selenium::WebDriver::Remote::Capabilities.firefox | |
Capybara::Selenium::Driver.new(app, { | |
:url => "https://sauce_username:[email protected]:80/wd/hub", | |
:browser => :remote, | |
:desired_capabilities => capabilities | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can absolutely use https, it was just a typo (and sorry for the reply delay, I didn't get a comment notification for some reason >.>)
You can pass the parameters are part of the desired capabilities, simply include
username
andaccess_key
.