lib/calabash-android/touch_helpers.rb in calabash-android-0.8.0 vs lib/calabash-android/touch_helpers.rb in calabash-android-0.8.1

- old
+ new

@@ -27,9 +27,12 @@ if query_result?(query_string) center_x, center_y = find_coordinate(query_string, options) perform_action("touch_coordinate", center_x, center_y) else + if query_string.nil? && (options.nil? || options.empty?) + raise "Can't touch nil" + end execute_gesture(Gesture.with_parameters(Gesture.tap(options), {query_string: query_string}.merge(options))) end end def double_tap(query_string, options={}) \ No newline at end of file