appium_lib 9.16.1 → 9.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/appium_lib.gemspec +3 -3
- data/docs/android_docs.md +198 -194
- data/docs/ios_docs.md +258 -254
- data/lib/appium_lib/common/touch_actions.rb +0 -9
- data/lib/appium_lib/driver.rb +17 -13
- data/lib/appium_lib/version.rb +2 -2
- data/release_notes.md +8 -0
- metadata +2 -2
@@ -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
|
data/lib/appium_lib/driver.rb
CHANGED
@@ -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
|
-
#
|
329
|
-
#
|
330
|
-
#
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
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
|
data/lib/appium_lib/version.rb
CHANGED
@@ -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.
|
4
|
-
DATE = '2018-
|
3
|
+
VERSION = '9.17.0'.freeze unless defined? ::Appium::VERSION
|
4
|
+
DATE = '2018-12-15'.freeze unless defined? ::Appium::DATE
|
5
5
|
end
|
data/release_notes.md
CHANGED
@@ -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.
|
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-
|
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
|