appium_lib 9.16.1 → 9.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56,15 +56,6 @@ module Appium
56
56
  end_y = opts.fetch :end_y, 0
57
57
  duration = opts.fetch :duration, 200
58
58
 
59
- if opts[:offset_x]
60
- ::Appium::Logger.warn('[DEPRECATED] :offset_x was renamed to :end_x to indicate as an absolute point.')
61
- end_x = opts.fetch :offset_x, 0
62
- end
63
- if opts[:offset_y]
64
- ::Appium::Logger.warn('[DEPRECATED] :offset_y was renamed to :end_y to indicate as an absolute point.')
65
- end_y = opts.fetch :offset_y, 0
66
- end
67
-
68
59
  super(start_x: start_x, start_y: start_y, end_x: end_x, end_y: end_y, duration: duration)
69
60
  end
70
61
  end # class TouchAction
@@ -25,8 +25,6 @@ require 'appium_lib_core'
25
25
  require 'uri'
26
26
 
27
27
  module Appium
28
- REQUIRED_VERSION_XCUITEST = '1.6.0'.freeze
29
-
30
28
  class Driver
31
29
  # attr readers are promoted to global scope. To avoid clobbering, they're
32
30
  # made available via the driver_attributes method
@@ -325,17 +323,24 @@ module Appium
325
323
  @driver.dialect
326
324
  end
327
325
 
328
- # Return true if the target Appium server is over REQUIRED_VERSION_XCUITEST.
329
- # If the Appium server is under REQUIRED_VERSION_XCUITEST, then error is raised.
330
- # @return [Boolean]
331
- def check_server_version_xcuitest
332
- if automation_name_is_xcuitest? &&
333
- !@appium_server_status.empty? &&
334
- (Gem::Version.new(@appium_server_status['build']['version']) < Gem::Version.new(REQUIRED_VERSION_XCUITEST))
335
-
336
- Appium::Logger.warn("XCUITest requires Appium version >= #{REQUIRED_VERSION_XCUITEST}")
326
+ # An entry point to chain W3C actions. Returns `TouchAction.new` if it works as MJSONWP instead of W3C action.
327
+ # Read https://www.rubydoc.info/github/appium/ruby_lib_core/Appium/Core/Base/Bridge/W3C#action-instance_method
328
+ #
329
+ # @param [bool] async Run actions async
330
+ # @return [TouchAction|Selenium::WebDriver::PointerActions]
331
+ #
332
+ # @example
333
+ #
334
+ # element = find_element(:id, "some id")
335
+ # action.click(element).perform # The `click` is a part of `PointerActions`
336
+ #
337
+ def action(async = false)
338
+ if @driver.dialect != :w3c
339
+ ::Appium::Logger.info('Calls TouchAction instead of W3C actions for MJSONWP module')
340
+ TouchAction.new($driver || @driver)
341
+ else
342
+ @driver.action async
337
343
  end
338
- true
339
344
  end
340
345
 
341
346
  # Returns the server's version info
@@ -515,7 +520,6 @@ module Appium
515
520
  extend_for(device: @core.device, automation_name: @core.automation_name) if automation_name.nil?
516
521
 
517
522
  @appium_server_status = appium_server_version
518
- check_server_version_xcuitest
519
523
 
520
524
  @driver
521
525
  end
@@ -1,5 +1,5 @@
1
1
  module Appium
2
2
  # Version and Date are defined on the 'Appium' module, not 'Appium::Common'
3
- VERSION = '9.16.1'.freeze unless defined? ::Appium::VERSION
4
- DATE = '2018-11-28'.freeze unless defined? ::Appium::DATE
3
+ VERSION = '9.17.0'.freeze unless defined? ::Appium::VERSION
4
+ DATE = '2018-12-15'.freeze unless defined? ::Appium::DATE
5
5
  end
@@ -1,3 +1,11 @@
1
+ #### v9.17.0 2018-12-15
2
+
3
+ - [84f71e4](https://github.com/appium/ruby_lib/commit/84f71e47b86a2f7a1de71c13888adce68622a35b) Release 9.17.0
4
+ - [13f9551](https://github.com/appium/ruby_lib/commit/13f9551f8273cbf1ef959dfd79dc0c53a2c2e0d0) Can call w3c action (#842)
5
+ - [908c3f0](https://github.com/appium/ruby_lib/commit/908c3f08cfea7895a2128b606f6b258c60b894dd) tweak android test code (#841)
6
+ - [af27d01](https://github.com/appium/ruby_lib/commit/af27d011862163653c73aab037d16bcfb3abd28a) remove deprecation or unnecessary code (#839)
7
+
8
+
1
9
  #### v9.16.1 2018-11-28
2
10
 
3
11
  - [fa8d4ed](https://github.com/appium/ruby_lib/commit/fa8d4ed2aaa5259a1fa744be955555cf775ead3e) Release 9.16.1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.16.1
4
+ version: 9.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-11-28 00:00:00.000000000 Z
12
+ date: 2018-12-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: appium_lib_core