Module: ProfileMethods

Defined in:
lib/kuali-sakai-common-lib/profile.rb

Instance Method Summary collapse

Instance Method Details

#edit_my_profileObject



3
4
5
6
# File 'lib/kuali-sakai-common-lib/profile.rb', line 3

def edit_my_profile
  frm.link(:text=>"Edit my Profile").click
  EditProfile.new(@browser)
end

#emailObject



18
19
20
# File 'lib/kuali-sakai-common-lib/profile.rb', line 18

def email
  frm.link(:id=>"profileForm:email").text
end

#photoObject



13
14
15
16
# File 'lib/kuali-sakai-common-lib/profile.rb', line 13

def photo
  source = frm.image(:id=>"profileForm:image1").src
  return source.split("/")[-1]
end

#show_my_profileObject



8
9
10
11
# File 'lib/kuali-sakai-common-lib/profile.rb', line 8

def show_my_profile
  frm.link(:text=>"Show my Profile").click
  Profile.new @browser
end