Class: ViewModule

Inherits:
LessonsBase show all
Defined in:
lib/sambal-cle/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

Instance Method Details

#content_include?(content) ⇒ Boolean

Returns:

  • (Boolean)


119
120
121
# File 'lib/sambal-cle/page_objects/lessons.rb', line 119

def content_include?(content)
  frm.form(:id=>"viewsectionStudentform").text.include?(content)
end

#sections_listObject



105
106
107
108
109
# File 'lib/sambal-cle/page_objects/lessons.rb', line 105

def sections_list
  list = []
  frm.table(:id=>"viewmoduleStudentform:tablesec").links.each { |link| list << link.text }
  return list
end