Class: SakaiOAE
- Inherits:
-
Object
- Object
- SakaiOAE
- Defined in:
- lib/sakai-oae-test-api.rb
Overview
Initialize this class at the start of your test cases to open the specified test browser at the specified Sakai welcome page URL.
The initialization will return the LoginPage class object as well as create the @browser variable used throughout the page classes.
Instance Attribute Summary collapse
-
#browser ⇒ Object
readonly
Returns the value of attribute browser.
Instance Method Summary collapse
-
#initialize(web_browser, url) ⇒ SakaiOAE
constructor
A new instance of SakaiOAE.
Constructor Details
#initialize(web_browser, url) ⇒ SakaiOAE
Returns a new instance of SakaiOAE.
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/sakai-oae-test-api.rb', line 25 def initialize(web_browser, url) @url = url @browser = Watir::Browser.new web_browser @browser.window.resize_to(1400,900) @browser.goto @url @browser.(:id=>"footer_logo_button").wait_until_present LoginPage.new @browser end |
Instance Attribute Details
#browser ⇒ Object (readonly)
Returns the value of attribute browser.
23 24 25 |
# File 'lib/sakai-oae-test-api.rb', line 23 def browser @browser end |