diff --git a/features/step_definitions/web_steps.rb b/features/step_definitions/web_steps.rb index d5a8891..fd1994a 100644 --- a/features/step_definitions/web_steps.rb +++ b/features/step_definitions/web_steps.rb @@ -27,13 +27,13 @@ end When /^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/ do |button, selector| with_scope(selector) do - first(:button, button).click + click_button(button, :match => :prefer_exact) end end When /^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$/ do |link, selector| with_scope(selector) do - first(:link, link).click + click_link(link, :match => :prefer_exact) end end -- libgit2 0.21.2