Class: AwsAccountUtils::WatirBrowser

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_account_utils/watir_browser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logger) ⇒ WatirBrowser

Returns a new instance of WatirBrowser.



10
11
12
# File 'lib/aws_account_utils/watir_browser.rb', line 10

def initialize(logger)
  @logger  = logger
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



8
9
10
# File 'lib/aws_account_utils/watir_browser.rb', line 8

def logger
  @logger
end

Instance Method Details

#createObject



14
15
16
17
# File 'lib/aws_account_utils/watir_browser.rb', line 14

def create
  logger.debug "Launching new browser."
  Watir::Browser.new(:firefox, :profile => set_firefox_profile)
end