Sha256: 64a489b6a78b61ce6f9a9bfd668115132c3c9dbcc0dc3a90a4725a785032f9f2
Contents?: true
Size: 467 Bytes
Versions: 3
Compression:
Stored size: 467 Bytes
Contents
class Capybara::Mechanize::Node < Capybara::RackTest::Node def click if tag_name == 'a' or tag_name == 'label' or (tag_name == 'input' and %w(checkbox radio).include?(type)) super elsif (tag_name == 'input' and %w(submit image).include?(type)) or ((tag_name == 'button') and type.nil? or type == "submit") associated_form = form Capybara::Mechanize::Form.new(driver, form).submit(self) if associated_form end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
capybara-mechanize-1.9.0 | lib/capybara/mechanize/node.rb |
capybara-mechanize-1.8.0 | lib/capybara/mechanize/node.rb |
capybara-mechanize-1.7.0 | lib/capybara/mechanize/node.rb |