Skip to content

Commit

Permalink
Merge branch 'master' into study
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken-g6 committed Mar 23, 2012
2 parents 0b05349 + ad6dad6 commit aceac18
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/rsel/selenium_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,13 @@ def respond_to?(orgmethod, include_private=false)
#
def if_i_see(text)
return false if aborted?
return push_conditional(@browser.text?(text))
cond = false
begin
cond = @browser.text?(text)
rescue
# Something went wrong. Therefore, I did not see the text.
end
return push_conditional(cond)
end

# If the given parameter is "yes" or "true", do the steps until I see an
Expand Down

0 comments on commit aceac18

Please sign in to comment.