lib/appium_lib/driver.rb in appium_lib-9.15.2 vs lib/appium_lib/driver.rb in appium_lib-9.16.0

- old
+ new

@@ -172,11 +172,11 @@ @appium_wait_interval = @core.wait_interval @listener = @core.listener @appium_device = @core.device @automation_name = @core.automation_name - # override opts[:app] if sauce labs + # Arrange the app capability. This must be after @core = ::Appium::Core.for(opts) set_app_path(opts) # enable debug patch @appium_debug = appium_lib_opts.fetch :debug, !!defined?(Pry) set_sauce_related_values(appium_lib_opts) @@ -395,11 +395,16 @@ raise 'absolute_app_path invoked and app is not set!' if app_path.nil? || app_path.empty? # Sauce storage API. http://saucelabs.com/docs/rest#storage return app_path if app_path.start_with? 'sauce-storage:' return app_path if app_path =~ URI::DEFAULT_PARSER.make_regexp # public URL for Sauce - app_path = File.expand_path app_path - raise "App doesn't exist. #{app_path}" unless File.exist? app_path + absolute_app_path = File.expand_path app_path + app_path = if File.exist? absolute_app_path + absolute_app_path + else + ::Appium::Logger.info("Use #{app_path}") + app_path + end app_path end # Get the server url