Class: SelectQuestionType

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

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.

Parameters:

  • qtype (String)

    the text of the question type you want to select from the drop down list.



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.button(:value=>"Save").click
end