lib/gametel.rb in gametel-0.5.3 vs lib/gametel.rb in gametel-0.5.4
- old
+ new
@@ -102,9 +102,10 @@
#
# Wait for the provided text to appear
#
def wait_for_text(text_to_find)
platform.wait_for_text(text_to_find)
+ raise "Timed out waiting for the text '#{text_to_find}'" unless platform.last_json
end
end