Class: AssignBase

Inherits:
SectionsBase show all
Defined in:
lib/sambal-cle/page_objects/sections.rb

Direct Known Subclasses

AssignStudents, AssignTeachingAssistants

Class Method Summary collapse

Methods inherited from SectionsBase

menu_elements

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

Class Method Details

.assign_elementsObject



124
125
126
127
128
129
130
131
# File 'lib/sambal-cle/page_objects/sections.rb', line 124

def assign_elements
  element(:available_tas) { |b| b.frm.select(:id=>"memberForm:availableUsers") }
  element(:assigned_tas) { |b| b.frm.select(:id=>"memberForm:selectedUsers") }
  action(:assign) { |b| b.frm.button(:value=>">").click }
  action(:unassign) { |b| b.frm.button(:value=>"<").click }
  action(:assign_all) { |b| b.frm.button(:value=>">>").click }
  action(:unassign_all) { |b| b.frm.button(:value=>"<<").click }
end