Module: SyllabusMethods

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

Instance Method Summary collapse

Instance Method Details

#addObject

Clicks the “Add” button, then instantiates the AddEditSyllabusItem Class.



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

def add
  frm.link(:text=>"Add").click
  AddEditSyllabusItem.new(@browser)
end

#attachments_listObject



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

def attachments_list
  list = []
  frm.div(:class=>"portletBody").links.each { |link| list << link.text }
  return list
end

#create_editObject

Clicks the “Create/Edit” button on the page, then instantiates the SyllabusEdit class.



5
6
7
8
# File 'lib/kuali-sakai-common-lib/syllabus.rb', line 5

def create_edit
  frm.link(:text=>"Create/Edit").click
  SyllabusEdit.new(@browser)
end