Module: AddAnOptionMethods

Defined in:
lib/kuali-sakai-common-lib/polls.rb

Instance Method Summary collapse

Instance Method Details

#answer_option=(text) ⇒ Object



61
62
63
# File 'lib/kuali-sakai-common-lib/polls.rb', line 61

def answer_option=(text)
  frm.frame(:id, "optText::input___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(text)
end

#saveObject



65
66
67
68
# File 'lib/kuali-sakai-common-lib/polls.rb', line 65

def save
  frm.button(:value=>"Save").click
  AddEditPoll.new(@browser)
end

#save_and_add_optionsObject



70
71
72
73
# File 'lib/kuali-sakai-common-lib/polls.rb', line 70

def save_and_add_options
  frm.button(:value=>"Save and add options").click
  AddAnOption.new(@browser)
end