Class: SiteEditor

Inherits:
SiteSetupBase show all
Defined in:
lib/sambal-cle/page_objects/site_setup.rb

Overview

The topmost “Site Editor” page, found in SITE MANAGEMENT or else Site Setup after you have selected to Edit a particular site.

Instance Method Summary collapse

Methods inherited from SiteSetupBase

menu_elements

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

Instance Method Details

#set_role(participant, role) ⇒ Object

Sets the specified role for the specified participant.

Because the participant is selected using a regular expression, the “participant” string can be anything that will suffice as a unique match–i.e., last name, first name, or user id, or any combination, as long as it will match a part of the string that appears in the desired row.



112
113
114
# File 'lib/sambal-cle/page_objects/site_setup.rb', line 112

def set_role(participant, role)
  frm.table(:class=>/listHier lines/).row(:text=>/#{Regexp.escape(participant)}/).select(:id=>/role/).select(role)
end