Class: SelectQuestionType
- Inherits:
-
AssessmentsBase
- Object
- PageMaker
- BasePage
- AssessmentsBase
- SelectQuestionType
- Defined in:
- lib/sakai-cle-test-api/page_objects/assessments.rb
Overview
This page appears when adding a question to a pool
Instance Method Summary collapse
-
#select_question_type(qtype) ⇒ Object
Selects the specified question type from the drop-down list, then instantiates the appropriate page class, based on the question type selected.
Methods inherited from AssessmentsBase
menu_bar_elements, pool_page_elements, question_page_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
#select_question_type(qtype) ⇒ Object
Selects the specified question type from the drop-down list, then instantiates the appropriate page class, based on the question type selected.
710 711 712 713 |
# File 'lib/sakai-cle-test-api/page_objects/assessments.rb', line 710 def select_question_type(qtype) frm.select(:id=>"_id1:selType").select(qtype) frm.(:value=>"Save").click end |