Module: OwnerInfoPopUp

Includes:
PageObject
Defined in:
lib/sakai-oae-test-api/pop_up_dialogs.rb

Instance Method Summary collapse

Methods included from PageObject

#method_missing, #name_li, #name_link

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PageObject

Instance Method Details

#add_to_contactsObject

Clicks the button to add the owner to the user’s contacts list



933
934
935
936
937
# File 'lib/sakai-oae-test-api/pop_up_dialogs.rb', line 933

def add_to_contacts
  self.button(:text=>"Add to contacts").click
  self.wait_for_ajax
  self.class.class_eval { include AddToContactsPopUp }
end

#message_ownerObject

Clicks the button to send a message to the owner.



926
927
928
929
930
# File 'lib/sakai-oae-test-api/pop_up_dialogs.rb', line 926

def message_owner
  self.button(:text=>"Message").click
  self.wait_for_ajax
  self.class.class_eval { include SendMessagePopUp }
end

#view_owner_profileObject

Clicks the link to go to the owner’s profile page. Returns the ViewPerson class object.



941
942
943
944
945
# File 'lib/sakai-oae-test-api/pop_up_dialogs.rb', line 941

def view_owner_profile
  self.span(:id=>"personinfo_user_name").link.click
  sleep 2
  ViewPerson.new @browser
end