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

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.()
  username_feild = .form.field_with(name => "j_username")
  username_feild.value = username
  password_field = .form.field_with(name => "j_password")
  password_field.value = password
  redirect_page = .form.submit
  return reditect_page.form.submit
end