Class: WatirDrops::Session

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/watir_drops/session.rb

Instance Method Summary collapse

Instance Method Details

#browserObject



7
8
9
# File 'lib/watir_drops/session.rb', line 7

def browser
  @browser ||= Watir::Browser.new :chrome
end

#quitObject



11
12
13
14
# File 'lib/watir_drops/session.rb', line 11

def quit
  @browser.quit
  @browser = nil
end