Class: ViewModule
- Inherits:
-
LessonsBase
- Object
- PageMaker
- BasePage
- LessonsBase
- ViewModule
- Defined in:
- lib/sakai-cle-test-api/page_objects/lessons.rb
Overview
The student user’s view of a Lesson Module or Section.
Instance Method Summary collapse
Methods inherited from LessonsBase
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
#content_include?(content) ⇒ Boolean
118 119 120 |
# File 'lib/sakai-cle-test-api/page_objects/lessons.rb', line 118 def content_include?(content) frm.form(:id=>"viewsectionStudentform").text.include?(content) end |
#sections_list ⇒ Object
104 105 106 107 108 |
# File 'lib/sakai-cle-test-api/page_objects/lessons.rb', line 104 def sections_list list = [] frm.table(:id=>"viewmoduleStudentform:tablesec").links.each { |link| list << link.text } return list end |