Class: SelectQuestionType

Inherits:
AssessmentsBase show all
Defined in:
lib/sambal-cle/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, button, damballa, frame_element, link

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.



741
742
743
744
# File 'lib/sambal-cle/page_objects/assessments.rb', line 741

def select_question_type(qtype)
  frm.select(:id=>"_id1:selType").select(qtype)
  frm.button(:value=>"Save").click
end