Module: DCA::Net::BrowserHelper

Defined in:
lib/dca/net/browser_helper.rb

Instance Method Summary collapse

Instance Method Details

#browser(name = :ff, profile = 'default') ⇒ Object

module ClassMethods end



11
12
13
# File 'lib/dca/net/browser_helper.rb', line 11

def browser(name = :ff, profile = 'default')
  @browser ||= Watir::Browser.new name, :profile => profile
end

#browser_closeObject



15
16
17
# File 'lib/dca/net/browser_helper.rb', line 15

def browser_close
  @browser.close if @browser
end