Class: AwsAccountUtils::WatirBrowser
- Inherits:
-
Object
- Object
- AwsAccountUtils::WatirBrowser
- Defined in:
- lib/aws_account_utils/watir_browser.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(logger) ⇒ WatirBrowser
constructor
A new instance of WatirBrowser.
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
#logger ⇒ Object (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
#create ⇒ Object
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 |