Module: SyllabusMethods
- Defined in:
- lib/kuali-sakai-common-lib/syllabus.rb
Instance Method Summary collapse
-
#add ⇒ Object
Clicks the “Add” button, then instantiates the AddEditSyllabusItem Class.
- #attachments_list ⇒ Object
-
#create_edit ⇒ Object
Clicks the “Create/Edit” button on the page, then instantiates the SyllabusEdit class.
Instance Method Details
#add ⇒ Object
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_list ⇒ Object
17 18 19 20 21 |
# File 'lib/kuali-sakai-common-lib/syllabus.rb', line 17 def list = [] frm.div(:class=>"portletBody").links.each { |link| list << link.text } return list end |
#create_edit ⇒ Object
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 |