Class: AddEditSections
- Inherits:
-
SectionsBase
- Object
- PageFactory
- BasePage
- SectionsBase
- AddEditSections
- Defined in:
- lib/sambal-cle/page_objects/sections.rb
Overview
Methods in this class currently do not support adding multiple instances of sections simultaneously. That will be added at some future time. The same goes for adding days with different meeting times. This will hopefully be supported in the future.
Instance Method Summary collapse
-
#check_days(array) ⇒ Object
This method takes an array object containing strings of the days of the week and then clicks the appropriate checkboxes, based on those strings.
Methods inherited from SectionsBase
Methods inherited from BasePage
basic_page_elements, button, damballa, frame_element, link
Instance Method Details
#check_days(array) ⇒ Object
This method takes an array object containing strings of the days of the week and then clicks the appropriate checkboxes, based on those strings.
87 88 89 90 91 92 93 94 95 |
# File 'lib/sambal-cle/page_objects/sections.rb', line 87 def check_days(array) frm.checkbox(:id=>/SectionsForm:sectionTable:0:meetingsTable:0:monday/).set if array.include?(/mon/i) frm.checkbox(:id=>/SectionsForm:sectionTable:0:meetingsTable:0:tuesday/).set if array.include?(/tue/i) frm.checkbox(:id=>/SectionsForm:sectionTable:0:meetingsTable:0:wednesday/).set if array.include?(/wed/i) frm.checkbox(:id=>/SectionsForm:sectionTable:0:meetingsTable:0:thursday/).set if array.include?(/thu/i) frm.checkbox(:id=>/SectionsForm:sectionTable:0:meetingsTable:0:friday/).set if array.include?(/fri/i) frm.checkbox(:id=>/SectionsForm:sectionTable:0:meetingsTable:0:saturday/).set if array.include?(/sat/i) frm.checkbox(:id=>/SectionsForm:sectionTable:0:meetingsTable:0:sunday/).set if array.include?(/sun/i) end |