lib/calabash/ios/interactions.rb in calabash-2.0.0.pre11 vs lib/calabash/ios/interactions.rb in calabash-2.0.0.prelegacy
- old
+ new
@@ -11,11 +11,11 @@
#
# @param [Numeric] seconds The number of seconds to keep the app
# in the background
# @raise [ArgumentError] If number of seconds is less than 1 and more
# than 60 seconds.
- define_method(:_send_current_app_to_background) do |seconds|
+ def _send_current_app_to_background(seconds)
unless (1..60).member?(seconds)
raise ArgumentError,
"Number of seconds: '#{seconds}' must be between 1 and 60"
end
@@ -27,9 +27,14 @@
retry_count += 1
};
x
)
uia(javascript)
+ end
+
+ # @!visibility private
+ def _evaluate_javascript_in(query, javascript)
+ query(query, calabashStringByEvaluatingJavaScript: javascript)
end
end
end
end