lib/calabash-cucumber/actions/instruments_actions.rb in calabash-cucumber-0.19.0.pre2 vs lib/calabash-cucumber/actions/instruments_actions.rb in calabash-cucumber-0.19.0.pre3
- old
+ new
@@ -1,17 +1,17 @@
require 'calabash-cucumber/uia'
require 'calabash-cucumber/connection_helpers'
require 'calabash-cucumber/query_helpers'
-require 'calabash-cucumber/map'
# @!visibility private
class Calabash::Cucumber::InstrumentsActions
include Calabash::Cucumber::UIA
include Calabash::Cucumber::ConnectionHelpers
include Calabash::Cucumber::QueryHelpers
- include Calabash::Cucumber::Map
+ require "calabash-cucumber/map"
+
# @!visibility private
def touch(options)
query_action(options, :uia_tap_offset)
end
@@ -98,10 +98,10 @@
end
end
# @!visibility private
def find_and_normalize(ui_query)
- raw_result = raw_map(ui_query, :query)
+ raw_result = Calabash::Cucumber::Map.raw_map(ui_query, :query)
orientation = raw_result['status_bar_orientation']
res = raw_result['results']
return res if res.empty?