Class: AssessmentsList

Inherits:
AssessmentsBase show all
Defined in:
lib/sambal-cle/page_objects/assessments.rb

Overview

The Course Tools “Tests and Quizzes” page for a given site. (Instructor view)

Instance Method Summary collapse

Methods inherited from AssessmentsBase

menu_bar_elements, pool_page_elements, question_page_elements

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

Instance Method Details

#inactive_assessment_titlesObject

Returns an Array of the inactive Assessment titles displayed in the list.



76
77
78
79
80
81
82
# File 'lib/sambal-cle/page_objects/assessments.rb', line 76

def inactive_assessment_titles
  titles =[]
  1.upto(inactive_table.rows.size-1) do |x|
    titles << inactive_table[x][1].span(:id=>/inactivePublishedAssessmentTitle/).text
  end
  return titles
end

#pending_assessment_titlesObject

Collects the titles of the Assessments listed as “Pending” then returns them as an Array.



56
57
58
59
60
61
62
# File 'lib/sambal-cle/page_objects/assessments.rb', line 56

def pending_assessment_titles
  titles =[]
  1.upto(pending_table.rows.size-1) do |x|
    titles << pending_table[x][1].span(:id=>/assessmentTitle/).text
  end
  return titles
end

#published_assessment_titlesObject

Collects the titles of the Assessments listed as “Published” then returns them as an Array.



66
67
68
69
70
71
72
# File 'lib/sambal-cle/page_objects/assessments.rb', line 66

def published_assessment_titles
  titles =[]
  1.upto(published_table.rows.size-1) do |x|
    titles << published_table[x][1].span(:id=>/publishedAssessmentTitle/).text
  end
  return titles
end