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, button, damballa, frame_element, link

Instance Method Details

#content_include?(content) ⇒ Boolean

Returns:

  • (Boolean)


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

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

#sections_listObject



90
91
92
93
94
# File 'lib/sambal-cle/page_objects/lessons.rb', line 90

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