# File lib/capybara/driver/selenium_driver.rb, line 27 def set(value) if tag_name == 'input' and type == 'radio' node.click elsif tag_name == 'input' and type == 'checkbox' node.click if node.attribute('checked') != value elsif tag_name == 'textarea' or tag_name == 'input' node.clear node.send_keys(value.to_s) end end