diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb index 5ece903aa..519fbae7c 100644 --- a/features/step_definitions/custom_web_steps.rb +++ b/features/step_definitions/custom_web_steps.rb @@ -50,7 +50,7 @@ When /^I click to delete the first post$/ do end When /^I click to delete the first comment$/ do - page.execute_script('$(".comment").first().find(".comment_delete").click()') + find(".comment").find(".comment_delete").click() end When /^I click to delete the first uploaded photo$/ do