Class: Selenium::WebDriver::Safari::Browser

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium/webdriver/safari/browser.rb

Instance Method Summary collapse

Instance Method Details

#start(*args) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/selenium/webdriver/safari/browser.rb', line 25

def start(*args)
  Platform.exit_hook { stop } # make sure we don't leave the browser running

  @process = ChildProcess.new(Safari.path, *args)
  @process.io.inherit! if $DEBUG
  @process.start
end

#stopObject



33
34
35
# File 'lib/selenium/webdriver/safari/browser.rb', line 33

def stop
  @process.stop if @process
end