lib/calabash-cucumber/ios7_operations.rb in calabash-cucumber-0.9.163.pre11 vs lib/calabash-cucumber/ios7_operations.rb in calabash-cucumber-0.9.163
- old
+ new
@@ -1,25 +1,25 @@
require 'calabash-cucumber/launcher'
require 'calabash-cucumber/uia'
require 'calabash-cucumber/actions/instruments_actions'
require 'calabash-cucumber/actions/playback_actions'
+require 'calabash-cucumber/environment_helpers'
+
+
module Calabash
module Cucumber
module IOS7Operations
include Calabash::Cucumber::UIA
+ include Calabash::Cucumber::EnvironmentHelpers
- def ios7?
- launcher = @calabash_launcher || Calabash::Cucumber::Launcher.launcher_if_used
- ENV['OS']=='ios7' || (launcher && launcher.device && launcher.device.ios7?)
- end
+ # todo deprecate the Calabash::Cucumber::IOS7Operations
-
-
- # Deprecated - abstracted into
- # actions/instruments_actions.rb - actions that can be performed under instruments
+ # <b>DEPRECATED</b>
#
+ # abstracted into <tt>actions/instruments_actions.rb</tt> - actions that
+ # can be performed under instruments
def touch_ios7(options)
ui_query = options[:query]
offset = options[:offset]
if ui_query.nil?
uia_tap_offset(offset)
@@ -116,11 +116,8 @@
offset = point_from(el_to_swipe, options)
uia_touch_hold_offset(duration, offset)
[el_to_swipe]
end
end
-
-
-
end
end
end