Class: Login
- Defined in:
- lib/sambal-cle/page_objects/login.rb
Overview
This is the page where users log in to the site.
Instance Method Summary collapse
-
#login_with(username, password) ⇒ Object
Logs in to Sakai using the specified credentials.
Methods inherited from BasePage
basic_page_elements, frame_element
Instance Method Details
#login_with(username, password) ⇒ Object
Logs in to Sakai using the specified credentials. Then it instantiates the MyWorkspace class.
15 16 17 18 19 20 |
# File 'lib/sambal-cle/page_objects/login.rb', line 15 def login_with username, password frame = @browser.frame(:id, "ifrm") frame.text_field(:id, "eid").set username frame.text_field(:id, "pw").set password frame.form(:method, "post").submit end |