Module: AddEditPollMethods

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

Instance Method Summary collapse

Instance Method Details

#additional_instructions=(text) ⇒ Object



39
40
41
# File 'lib/kuali-sakai-common-lib/polls.rb', line 39

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

#saveObject



48
49
50
51
# File 'lib/kuali-sakai-common-lib/polls.rb', line 48

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

#save_and_add_optionsObject



43
44
45
46
# File 'lib/kuali-sakai-common-lib/polls.rb', line 43

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