Skip to content

Instantly share code, notes, and snippets.

@biot023
Created February 4, 2010 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biot023/294815 to your computer and use it in GitHub Desktop.
Save biot023/294815 to your computer and use it in GitHub Desktop.
# Rob's fix to dump in my_env.rb
class Capybara::Driver::Selenium::Node
def set( value )
if tag_name == 'input' and type == 'radio'
node.select
elsif tag_name == 'input' and type == 'checkbox'
node.toggle
else
node.clear
node.send_keys(value.to_s)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment