lib/appium_lib/driver.rb in appium_lib-14.0.0 vs lib/appium_lib/driver.rb in appium_lib-15.0.0
- old
+ new
@@ -319,11 +319,11 @@
end
# An entry point to chain W3C actions
# Read https://www.rubydoc.info/github/appium/ruby_lib_core/Appium/Core/Base/Bridge/W3C#action-instance_method
#
- # @return [TouchAction|Selenium::WebDriver::PointerActions]
+ # @return [Selenium::WebDriver::PointerActions]
#
# @example
#
# element = find_element(:id, "some id")
# action.click(element).perform # The `click` is a part of `PointerActions`
@@ -356,11 +356,11 @@
# Return the platform version as an array of integers
# @return [Array<Integer>]
def platform_version
return [] if @driver.nil?
- p_version = @driver.capabilities['platformVersion'] || @driver.session_capabilities['platformVersion']
+ p_version = @driver.capabilities['platformVersion']
p_version.split('.').map(&:to_i)
end
# Returns the client's version info
#
@@ -777,11 +777,10 @@
@driver.set_location(latitude, longitude, altitude)
end
# @since Appium 1.16.0
#
- # Logs a custom event. The event is available via {::Appium::Core::Events#get} or
- # <code>driver.session_capabilities['events']</code> with <code>eventTimings</code> capabilities.
+ # Logs a custom event. The event is available via {::Appium::Core::Events#get}.
#
# @param [String] vendor The vendor prefix for the event
# @param [String] event The name of event
# @return [nil]
#