Skip to content
Browse files

add generic rescue

  • Loading branch information...
1 parent 83e40d2 commit 6325885bcf96ad0f18be98c218cb4036d6221e62 @lukebaker lukebaker committed Dec 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 features/step_definitions/voting_steps.rb
View
6 features/step_definitions/voting_steps.rb
@@ -77,9 +77,9 @@
When "I choose \"cant_decide_reason_user_other\""
end
begin
- page.has_no_selector?(".leftside.disabled")
- rescue Selenium::WebDriver::Error::StaleElementReferenceError
- page.has_no_selector?(".leftside.disabled")
+ page.has_no_css?(".leftside.disabled")
+ rescue
+ page.has_no_css?(".leftside.disabled")
end
end

0 comments on commit 6325885

Please sign in to comment.
Something went wrong with that request. Please try again.