appium_lib_core 5.0.0.rc6 → 5.0.0.rc7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/appium_lib_core/common/base/driver.rb +4 -13
- data/lib/appium_lib_core/common/command.rb +0 -2
- data/lib/appium_lib_core/common/device/touch_actions.rb +2 -0
- data/lib/appium_lib_core/common/touch_action/multi_touch.rb +7 -0
- data/lib/appium_lib_core/common/touch_action/touch_actions.rb +8 -1
- data/lib/appium_lib_core/common/wait.rb +4 -4
- data/lib/appium_lib_core/driver.rb +3 -1
- data/lib/appium_lib_core/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86c326e32b6a255221e4eeb9c4636a2ad9862e33c536099fd926b5f75aa722ca
|
4
|
+
data.tar.gz: 42badc486fa895ccad392a404778cf59fc6bdf3ef8cd084e67375b757a6066ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e7d2d0a230bc1de4396276a7eebf7963e71253214d2f57910f3ff25f1f7ee6979f59c22d5d63874bf4dc6f4f68417710454b1fb8870060a0ad20db2b9c65048
|
7
|
+
data.tar.gz: e3bdca124e8d17d4452f1a9bfc98c7246c4de6ff8593c579a21849593715e112545bf8a934f4babd8da9332a53aba904f22ec4b20ffc320d6e8b5ca86e256858
|
data/CHANGELOG.md
CHANGED
@@ -28,6 +28,16 @@ Read `release_notes.md` for commit level details.
|
|
28
28
|
- Add `driver#wait`, `driver#wait_until`, `driver#wait_true`, `driver#wait_until_true` syntaxes
|
29
29
|
- Can give `driver` instance as its block variable
|
30
30
|
|
31
|
+
### Deprecations
|
32
|
+
- `Appium::Core::TouchAction` and `Appium::Core::MultiTouch` are deprecated
|
33
|
+
- Please use W3C actions instead http://appium.io/docs/en/commands/interactions/actions/
|
34
|
+
- More working examples:
|
35
|
+
- test/functional/android/webdriver/w3c_actions_test.rb
|
36
|
+
- test/functional/ios/webdriver/w3c_actions_test.rb
|
37
|
+
- test/functional/common_w3c_actions.rb
|
38
|
+
- https://www.selenium.dev/documentation/support_packages/mouse_and_keyboard_actions_in_detail/
|
39
|
+
- Removed Selendroid related methods
|
40
|
+
|
31
41
|
## [4.7.1] - 2021-09-26
|
32
42
|
|
33
43
|
### Enhancements
|
@@ -48,6 +48,10 @@ module Appium
|
|
48
48
|
attr_reader :bridge
|
49
49
|
|
50
50
|
def initialize(bridge: nil, listener: nil, **opts)
|
51
|
+
# For ::Appium::Core::Waitable
|
52
|
+
@wait_timeout = opts.delete(:wait_timeout)
|
53
|
+
@wait_interval = opts.delete(:wait_interval)
|
54
|
+
|
51
55
|
super
|
52
56
|
end
|
53
57
|
|
@@ -508,19 +512,6 @@ module Appium
|
|
508
512
|
@bridge.pull_folder(path)
|
509
513
|
end
|
510
514
|
|
511
|
-
# Send keyevent on the device.(Only for Selendroid)
|
512
|
-
# http://developer.android.com/reference/android/view/KeyEvent.html
|
513
|
-
# @param [integer] key The key to press.
|
514
|
-
# @param [String] metastate The state the metakeys should be in when pressing the key.
|
515
|
-
#
|
516
|
-
# @example
|
517
|
-
#
|
518
|
-
# @driver.keyevent 82
|
519
|
-
#
|
520
|
-
def keyevent(key, metastate = nil)
|
521
|
-
@bridge.keyevent(key, metastate)
|
522
|
-
end
|
523
|
-
|
524
515
|
# Press keycode on the device.
|
525
516
|
# http://developer.android.com/reference/android/view/KeyEvent.html
|
526
517
|
# @param [Integer] key The key to press. The values which have +KEYCODE_+ prefix in http://developer.android.com/reference/android/view/KeyEvent.html
|
@@ -213,8 +213,6 @@ module Appium
|
|
213
213
|
hide_keyboard: [:post, 'session/:session_id/appium/device/hide_keyboard'],
|
214
214
|
press_keycode: [:post, 'session/:session_id/appium/device/press_keycode'],
|
215
215
|
long_press_keycode: [:post, 'session/:session_id/appium/device/long_press_keycode'],
|
216
|
-
# keyevent is only for Selendroid
|
217
|
-
keyevent: [:post, 'session/:session_id/appium/device/keyevent'],
|
218
216
|
push_file: [:post, 'session/:session_id/appium/device/push_file'],
|
219
217
|
pull_file: [:post, 'session/:session_id/appium/device/pull_file'],
|
220
218
|
pull_folder: [:post, 'session/:session_id/appium/device/pull_folder'],
|
@@ -20,11 +20,13 @@ module Appium
|
|
20
20
|
class Base
|
21
21
|
module Device
|
22
22
|
module TouchActions
|
23
|
+
# @deprecated Use W3C actions instead
|
23
24
|
def touch_actions(actions)
|
24
25
|
actions = { actions: [actions].flatten }
|
25
26
|
execute :touch_actions, {}, actions
|
26
27
|
end
|
27
28
|
|
29
|
+
# @deprecated Use W3C actions instead
|
28
30
|
def multi_touch(actions)
|
29
31
|
execute :multi_touch, {}, actions: actions
|
30
32
|
end
|
@@ -14,6 +14,9 @@
|
|
14
14
|
|
15
15
|
module Appium
|
16
16
|
module Core
|
17
|
+
#
|
18
|
+
# @deprecated Use W3C actions instead
|
19
|
+
#
|
17
20
|
# MultiTouch actions allow for multiple touches to happen at the same time,
|
18
21
|
# for instance, to simulate multiple finger swipes.
|
19
22
|
#
|
@@ -36,6 +39,10 @@ module Appium
|
|
36
39
|
attr_reader :driver
|
37
40
|
|
38
41
|
def initialize(driver)
|
42
|
+
::Appium::Logger.warn(
|
43
|
+
'[DEPRECATION] Appium::Core::MultiTouch is deprecated in W3C spec. Use W3C actions instead'
|
44
|
+
)
|
45
|
+
|
39
46
|
@actions = []
|
40
47
|
@driver = driver
|
41
48
|
end
|
@@ -14,13 +14,16 @@
|
|
14
14
|
|
15
15
|
module Appium
|
16
16
|
module Core
|
17
|
+
#
|
18
|
+
# @deprecated Use W3C actions instead
|
19
|
+
#
|
17
20
|
# Perform a series of gestures, one after another. Gestures are chained
|
18
21
|
# together and only performed when +perform()+ is called. Default is conducted by global driver.
|
19
22
|
#
|
20
23
|
# Each method returns the object itself, so calls can be chained.
|
21
24
|
#
|
22
25
|
# Consider to use W3C spec touch action like the followings.
|
23
|
-
# https://
|
26
|
+
# https://www.selenium.dev/selenium/docs/api/rb/Selenium/WebDriver/PointerActions.html
|
24
27
|
# https://github.com/appium/ruby_lib_core/blob/master/test/functional/android/webdriver/w3c_actions_test.rb
|
25
28
|
# https://github.com/appium/ruby_lib_core/blob/master/test/functional/ios/webdriver/w3c_actions_test.rb
|
26
29
|
#
|
@@ -39,6 +42,10 @@ module Appium
|
|
39
42
|
attr_reader :actions, :driver
|
40
43
|
|
41
44
|
def initialize(driver)
|
45
|
+
::Appium::Logger.warn(
|
46
|
+
'[DEPRECATION] Appium::Core::TouchAction is deprecated in W3C spec. Use W3C actions instead'
|
47
|
+
)
|
48
|
+
|
42
49
|
@actions = []
|
43
50
|
@driver = driver
|
44
51
|
end
|
@@ -154,8 +154,8 @@ module Appium
|
|
154
154
|
# @driver.wait_until_true(timeout: 30, interval: 2) { |d| driver.find_element :accessibility_id, 'something' }
|
155
155
|
#
|
156
156
|
def wait_until_true(timeout: nil, interval: nil, message: nil, ignored: nil, &block)
|
157
|
-
Wait.until_true(timeout: timeout || @wait_timeout
|
158
|
-
interval: interval || @wait_interval
|
157
|
+
Wait.until_true(timeout: timeout || @wait_timeout,
|
158
|
+
interval: interval || @wait_interval,
|
159
159
|
message: message,
|
160
160
|
ignored: ignored,
|
161
161
|
object: self,
|
@@ -190,8 +190,8 @@ module Appium
|
|
190
190
|
# @driver.wait_until(timeout: 30, interval: 2) { |d| d.find_element :accessibility_id, 'something' }
|
191
191
|
#
|
192
192
|
def wait_until(timeout: nil, interval: nil, message: nil, ignored: nil, &block)
|
193
|
-
Wait.until(timeout: timeout || @wait_timeout
|
194
|
-
interval: interval || @wait_interval
|
193
|
+
Wait.until(timeout: timeout || @wait_timeout,
|
194
|
+
interval: interval || @wait_interval,
|
195
195
|
message: message,
|
196
196
|
ignored: ignored,
|
197
197
|
object: self,
|
@@ -364,7 +364,9 @@ module Appium
|
|
364
364
|
@driver = ::Appium::Core::Base::Driver.new(listener: @listener,
|
365
365
|
http_client: @http_client,
|
366
366
|
capabilities: @caps, # ::Selenium::WebDriver::Remote::Capabilities
|
367
|
-
url: @custom_url
|
367
|
+
url: @custom_url,
|
368
|
+
wait_timeout: @wait_timeout,
|
369
|
+
wait_interval: @wait_interval)
|
368
370
|
|
369
371
|
if @direct_connect
|
370
372
|
d_c = DirectConnections.new(@driver.capabilities)
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
module Appium
|
16
16
|
module Core
|
17
|
-
VERSION = '5.0.0.
|
18
|
-
DATE = '2021-10-
|
17
|
+
VERSION = '5.0.0.rc7' unless defined? ::Appium::Core::VERSION
|
18
|
+
DATE = '2021-10-26' unless defined? ::Appium::Core::DATE
|
19
19
|
end
|
20
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_lib_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0.
|
4
|
+
version: 5.0.0.rc7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuaki MATSUO
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|