Class: ViewModule

Inherits:
LessonsBase show all
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

menu_elements

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

Returns:

  • (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_listObject



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