Class: SambalCLE
- Inherits:
-
Object
- Object
- SambalCLE
- Defined in:
- lib/sambal-cle.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 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) ⇒ SambalCLE
constructor
A new instance of SambalCLE.
Constructor Details
#initialize(web_browser, url) ⇒ SambalCLE
Returns a new instance of SambalCLE.
16 17 18 19 20 21 |
# File 'lib/sambal-cle.rb', line 16 def initialize(web_browser, url) @browser = Watir::Browser.new web_browser @browser.window.resize_to(1400,900) @browser.goto url $base_url=url end |
Instance Attribute Details
#browser ⇒ Object (readonly)
Returns the value of attribute browser.
14 15 16 |
# File 'lib/sambal-cle.rb', line 14 def browser @browser end |