Class: AddAssignments
- Inherits:
-
Object
- Object
- AddAssignments
- Includes:
- AssignmentsMenu, PageObject
- Defined in:
- lib/sakai-oae-test-api/cle_frame_classes.rb
Instance Method Summary collapse
-
#add_attachments ⇒ Object
(also: #add_remove_attachments)
Clicks the Add Attachments or Add/Remove Attachments button, then instantiates the AssignmentsAttachments page class.
-
#attached_files ⇒ Object
Returns an array listing the files attached to the assignment.
-
#instructions=(instructions) ⇒ Object
Sends the specified text to the text box in the FCKEditor on the page.
-
#preview ⇒ Object
Clicks the Preview button, then instantiates the AssignmentsPreview page class.
Methods included from AssignmentsMenu
#add_assignment, #assignment_list, #assignments_frame, #grade_report, #options, #permissions, #reorder, #student_view
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_attachments ⇒ Object Also known as: add_remove_attachments
Clicks the Add Attachments or Add/Remove Attachments button, then instantiates the AssignmentsAttachments page class.
1310 1311 1312 1313 |
# File 'lib/sakai-oae-test-api/cle_frame_classes.rb', line 1310 def frm.(:value=>/(Add|Add \/ Remove) Attachments/).click AssignmentsAttachments.new(@browser) end |
#attached_files ⇒ Object
Returns an array listing the files attached to the assignment
1317 1318 1319 1320 1321 |
# File 'lib/sakai-oae-test-api/cle_frame_classes.rb', line 1317 def attached_files array = [] frm.ul(:class=>/attachList/).lis.each { |li| array << li.link.text } array end |
#instructions=(instructions) ⇒ Object
Sends the specified text to the text box in the FCKEditor on the page.
1297 1298 1299 |
# File 'lib/sakai-oae-test-api/cle_frame_classes.rb', line 1297 def instructions=(instructions) frm.frame(:id, "new_assignment_instructions___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(instructions) end |
#preview ⇒ Object
Clicks the Preview button, then instantiates the AssignmentsPreview page class.
1303 1304 1305 1306 |
# File 'lib/sakai-oae-test-api/cle_frame_classes.rb', line 1303 def preview frm.(:value=>"Preview").click AssignmentsPreview.new(@browser) end |