1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Fixed multiple select value for celerity driver

This commit is contained in:
Carl Porth 2010-02-19 18:12:19 -08:00
parent 02daf7a32f
commit ee041e575d

View file

@ -7,6 +7,8 @@ class Capybara::Driver::Celerity < Capybara::Driver::Base
def [](name)
value = if name.to_sym == :class
node.class_name
elsif node.type == 'select-multiple'
return node.selected_options
else
node.send(name.to_sym)
end