Class: Webrat::SelectOption

Inherits:
Object
  • Object
show all
Defined in:
lib/visible_cukes.rb

Instance Method Summary collapse

Instance Method Details

#chooseObject



10
11
12
13
14
15
# File 'lib/visible_cukes.rb', line 10

def choose
  standard_choose
  current_selections = XML.xpath_search(select_element, ".//option[@selected = 'selected']")
  remove_selection_from current_selections unless current_selections.empty?
  @element['selected'] = ''
end

#standard_chooseObject



8
# File 'lib/visible_cukes.rb', line 8

alias :standard_choose :choose