lib/calabash-android/operations.rb in calabash-android-0.4.9.pre4 vs lib/calabash-android/operations.rb in calabash-android-0.4.9
- old
+ new
@@ -697,11 +697,15 @@
def label(uiquery)
ni
end
- def screenshot_and_raise(msg)
- screenshot_embed
+ def screenshot_and_raise(msg, options = nil)
+ if options
+ screenshot_embed options
+ else
+ screenshot_embed
+ end
raise(msg)
end
def touch(uiquery,*args)
raise "Cannot touch nil" unless uiquery