lib/calabash-cucumber/ios7_operations.rb in calabash-cucumber-0.9.153 vs lib/calabash-cucumber/ios7_operations.rb in calabash-cucumber-0.9.154
- old
+ new
@@ -7,10 +7,10 @@
module IOS7Operations
include Calabash::Cucumber::UIA
def ios7?
launcher = @calabash_launcher || Calabash::Cucumber::Launcher.launcher_if_used
- ENV['OS']=='ios7' || (launcher && launcher.device.ios7?)
+ ENV['OS']=='ios7' || (launcher && launcher.device && launcher.device.ios7?)
end
def touch_ios7(options)
ui_query = options[:query]
offset = options[:offset]