lib/appium_lib/driver.rb in appium_lib-12.1.0 vs lib/appium_lib/driver.rb in appium_lib-12.1.1

- old
+ new

@@ -99,10 +99,11 @@ # caps: { # platformName: :ios, # app: '/path/to/MyiOS.app' # }, # appium_lib: { + # server_url: 'http://127.0.0.1:4723' # wait_timeout: 30 # } # } # appium_driver = Appium::Driver.new(opts, true) # appium_driver.start_driver @@ -390,19 +391,19 @@ # # @return [String] APP_PATH as an absolute path def self.absolute_app_path(opts) raise 'opts must be a hash' unless opts.is_a? Hash - ::Appium::Logger.warning('[Deprecation] Converting the path to absolute path will be removed. ' \ - 'Please specify the full path which can be accessible from the appium server') - # FIXME: 'caps' and 'app' will be correct caps = opts[:caps] || opts['caps'] || {} app_path = caps[:app] || caps['app'] 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 + + ::Appium::Logger.warn('[Deprecation] Converting the path to absolute path will be removed. ' \ + 'Please specify the full path which can be accessible from the appium server') absolute_app_path = File.expand_path app_path if File.exist? absolute_app_path absolute_app_path else