Class: Login

Inherits:
BasePage show all
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

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

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  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