[Celerity-development] select_list.rb:43: NoValueFoundException?

T. Alexander Lystad alexander.lystad at finntech.no
Mon May 26 04:25:29 EDT 2008


def selected?(value)
   assert_exists
   # TODO: Check Watir. This should probably raise NoValueFoundException?
   raise UnknownObjectException, "unknown option with value 
#{value.inspect}" unless include?(value)
   !!@object.getOptions.find { |e| matches?(e.asText, value) && 
e.isSelected }
end

Watir raiser UnknownObjectException, så det får nesten vi gjøre også.


-- 
T. Alexander Lystad


More information about the Celerity-development mailing list