Module: PortalModule::Pages
- Included in:
- PageFactory
- Defined in:
- lib/portal_module/pages.rb,
lib/portal_module/pages/login_page.rb,
lib/portal_module/pages/prequal_setup_page.rb,
lib/portal_module/pages/data_transformation_page.rb
Defined Under Namespace
Classes: DataTransformationPage, LoginPage, PrequalSetupPage
Instance Method Summary collapse
-
#browser ⇒ Object
Return a configured browser object.
Instance Method Details
#browser ⇒ Object
Return a configured browser object. If a browser has already been created, this returns the existing browser.
An at_exit
proc is created to close the browser when the program exits.
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/portal_module/pages.rb', line 22 def browser if @browser.nil? @browser = configure_browser at_exit do @browser.close unless @browser.nil? end end @browser end |