def unselect(value, options={})
if options.has_key?(:from)
no_select_msg = "cannot unselect option, no select box with id, name, or label '#{options[:from]}' found"
no_option_msg = "cannot unselect option, no option with text '#{value}' in select box '#{options[:from]}'"
select = find(:xpath, XPath::HTML.select(options[:from]), :message => no_select_msg)
select.find(:xpath, XPath::HTML.option(value), :message => no_option_msg).unselect_option
else
no_option_msg = "cannot unselect option, no option with text '#{value}'"
find(:xpath, XPath::HTML.option(value), :message => no_option_msg).unselect_option
end
end