Class: Watir::Browser
- Inherits:
-
Object
- Object
- Watir::Browser
- Defined in:
- lib/watir-browser-factory/browser.rb,
lib/watir-browser-factory/version.rb
Defined Under Namespace
Classes: Factory
Class Method Summary collapse
Class Method Details
.sauce_start(caps, *args) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/watir-browser-factory/browser.rb', line 4 def sauce_start(caps,*args) # If we didn't get a platform we're assuming that we're running locally. # Don't like how long service status takes now. # Need to work args back in. if ! caps[:local] # && SauceWhisk::Sauce.service_status[:service_operational] b = Watir::Browser.new(:remote, :url => "http://#{ENV['SAUCE_USERNAME']}:#{ENV['SAUCE_ACCESS_KEY']}@ondemand.saucelabs.com:80/wd/hub", :desired_capabilities => caps) else puts "Running locally" b = Watir::Browser.new(caps[:browserName]) end end |