Class: EditFileDetails
- Inherits:
-
ResourcesBase
- Object
- PageMaker
- BasePage
- ResourcesBase
- EditFileDetails
- Defined in:
- lib/sakai-cle-test-api/page_objects/resources.rb
Instance Method Summary collapse
-
#assignment_grade=(grade) ⇒ Object
Sets the Grade field to the specified value.
-
#check_show_only_if_condition ⇒ Object
Checks the checkbox for showing only on the specifed condition.
-
#description=(description) ⇒ Object
Enters the specified string into the description field.
-
#gradebook_item=(item) ⇒ Object
Selects the specified Gradebook item value in the select list.
-
#item_condition=(condition) ⇒ Object
Selects the specified value in the item condition field.
-
#select_publicly_viewable ⇒ Object
Sets the radio button for publically viewable.
-
#title=(title) ⇒ Object
Enters the specified string into the title field.
-
#update ⇒ Object
Clicks the Update button, then instantiates the Resources page class.
Methods inherited from ResourcesBase
#access_level, #attach_a_copy, #continue, #create_html_page_in, #create_subfolders_in, #edit_content, #edit_details, #file_names, #folder_names, #go_to_folder, #href, #item, #open_actions_menu, #open_add_menu, #open_folder, #remove_item, #select_file, #upload_file, #upload_files_to_folder, #upload_local_file, #upload_multiple_files_to_folder, #url=
Methods inherited from BasePage
basic_page_elements, frame_element
Methods inherited from PageMaker
element, expected_element, expected_title, #initialize, #method_missing, page_url
Constructor Details
This class inherits a constructor from PageMaker
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PageMaker
Instance Method Details
#assignment_grade=(grade) ⇒ Object
Sets the Grade field to the specified value.
296 297 298 |
# File 'lib/sakai-cle-test-api/page_objects/resources.rb', line 296 def assignment_grade=(grade) frm.text_field(:id=>"assignment_grade_0").set(grade) end |
#check_show_only_if_condition ⇒ Object
Checks the checkbox for showing only on the specifed condition.
279 280 281 |
# File 'lib/sakai-cle-test-api/page_objects/resources.rb', line 279 def check_show_only_if_condition frm.checkbox(:id=>"cbCondition_0") end |
#description=(description) ⇒ Object
Enters the specified string into the description field.
268 269 270 |
# File 'lib/sakai-cle-test-api/page_objects/resources.rb', line 268 def description=(description) frm.text_field(:id=>"description_0").set(description) end |
#gradebook_item=(item) ⇒ Object
Selects the specified Gradebook item value in the select list.
285 286 287 |
# File 'lib/sakai-cle-test-api/page_objects/resources.rb', line 285 def gradebook_item=(item) frm.select(:id=>"selectResource_0").select(item) end |
#item_condition=(condition) ⇒ Object
Selects the specified value in the item condition field.
291 292 293 |
# File 'lib/sakai-cle-test-api/page_objects/resources.rb', line 291 def item_condition=(condition) frm.select(:id=>"selectCondition_0").select(condition) end |
#select_publicly_viewable ⇒ Object
Sets the radio button for publically viewable.
273 274 275 |
# File 'lib/sakai-cle-test-api/page_objects/resources.rb', line 273 def select_publicly_viewable frm.radio(:id=>"access_mode_public_0").set end |
#title=(title) ⇒ Object
Enters the specified string into the title field.
263 264 265 |
# File 'lib/sakai-cle-test-api/page_objects/resources.rb', line 263 def title=(title) frm.text_field(:id=>"displayName_0").set(title) end |