lib/appium_lib/driver.rb in appium_lib-9.3.3 vs lib/appium_lib/driver.rb in appium_lib-9.3.4
- old
+ new
@@ -297,11 +297,11 @@
attr_accessor :appium_device
# Automation name sent to appium server or received from server
# If automation_name is nil, it is not set both client side and server side.
attr_reader :automation_name
# Appium's server version
- attr_reader :appium_server_version
+ attr_reader :appium_server_status
# Boolean debug mode for the Appium Ruby bindings
attr_accessor :appium_debug
# instance of AbstractEventListener for logging support
attr_accessor :listener
# Returns the driver
@@ -474,11 +474,11 @@
# Return true if the target Appium server is over REQUIRED_VERSION_XCUITEST.
# 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_version['build']['version'] < REQUIRED_VERSION_XCUITEST)
+ if automation_name_is_xcuitest? && (@appium_server_status['build']['version'] < REQUIRED_VERSION_XCUITEST)
raise Appium::Error::NotSupportedAppiumServer, "XCUITest requires Appium version >= #{REQUIRED_VERSION_XCUITEST}"
end
true
end
@@ -616,10 +616,10 @@
end
rescue Errno::ECONNREFUSED
raise "ERROR: Unable to connect to Appium. Is the server running on #{server_url}?"
end
- @appium_server_version = appium_server_version
+ @appium_server_status = appium_server_version
check_server_version_xcuitest
set_automation_name_if_nil
@driver.manage.timeouts.implicit_wait = @default_wait