lib/appium_lib/driver.rb in appium_lib-9.16.0 vs lib/appium_lib/driver.rb in appium_lib-9.16.1
- old
+ new
@@ -329,13 +329,12 @@
# If the Appium server is under REQUIRED_VERSION_XCUITEST, then error is raised.
# @return [Boolean]
def check_server_version_xcuitest
if automation_name_is_xcuitest? &&
!@appium_server_status.empty? &&
- (@appium_server_status['build']['version'] < REQUIRED_VERSION_XCUITEST)
+ (Gem::Version.new(@appium_server_status['build']['version']) < Gem::Version.new(REQUIRED_VERSION_XCUITEST))
- raise(Appium::Core::Error::NotSupportedAppiumServer,
- "XCUITest requires Appium version >= #{REQUIRED_VERSION_XCUITEST}")
+ Appium::Logger.warn("XCUITest requires Appium version >= #{REQUIRED_VERSION_XCUITEST}")
end
true
end
# Returns the server's version info