Class: Sauce::Selenium

Inherits:
Selenium::Client::Driver
  • Object
show all
Defined in:
lib/sauce/selenium.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Selenium



6
7
8
9
10
# File 'lib/sauce/selenium.rb', line 6

def initialize(opts={})
  @config = Sauce::Config.new(opts)
  super(opts.merge({:host => @config.host, :port => @config.port,
       :browser => @config.to_browser_string, :url => @config.browser_url}))
end

Instance Method Details

#failed!Object



16
17
18
# File 'lib/sauce/selenium.rb', line 16

def failed!
  self.set_context "sauce:job-result=failed"
end

#passed!Object



12
13
14
# File 'lib/sauce/selenium.rb', line 12

def passed!
  self.set_context "sauce:job-result=passed"
end