lib/prickle/capybara/click.rb in prickle-0.0.1 vs lib/prickle/capybara/click.rb in prickle-0.0.2

- old
+ new

@@ -1,25 +1,10 @@ module Prickle module Actions module Click - def click_by_name name - find_by_name(name).click - end - def click - find_element_by_identifier(@type, @identifier).click + find_element_by_identifier.click end - - private - - def method_missing method, *args - if method =~ /^click_(.*)_by_name$/ - find_by_name($1, args.first).click - else - super - end - end - end end end