Module: Ubcbooker
- Defined in:
- lib/ubcbooker.rb,
lib/ubcbooker/version.rb
Defined Under Namespace
Classes: User
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
-
.login_ubc_cwl(login_page) ⇒ Object
Do login for UBC CWL system.
Class Method Details
.login_ubc_cwl(login_page) ⇒ Object
Do login for UBC CWL system
34 35 36 37 38 39 40 41 |
# File 'lib/ubcbooker.rb', line 34 def self.login_ubc_cwl(login_page) username_feild = login_page.form.field_with(name => "j_username") username_feild.value = username password_field = login_page.form.field_with(name => "j_password") password_field.value = password redirect_page = login_page.form.submit return reditect_page.form.submit end |