Module: AddEditPollMethods

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.page_elements(identifier) ⇒ Object



54
55
56
57
58
# File 'lib/kuali-sakai-common-lib/polls.rb', line 54

def self.page_elements(identifier)
  in_frame(identifier) do |frame|
    text_field(:question, :id=>"new-poll-text", :frame=>frame)
  end
end

Instance Method Details

#additional_instructions=(text) ⇒ Object



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

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

#saveObject



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

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

#save_and_add_optionsObject



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

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