testa_appium_driver 0.1.26 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bc06e0aef591d744a31c3c2a85860bb19cd1571039a358f9b00be5f56beef20
|
4
|
+
data.tar.gz: 36ed9ac6468df4b6103bc7665197633c32456aa9d682fa593879912280e7fa43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 915476c1654bc5cd33d1f80603260d8aa966822a19d0214a5f23c50cb796dea62ca2c534e30bb124158e7226426a609471121fbb92e8e1b402eacfcbd6394a6b
|
7
|
+
data.tar.gz: 541f7b4399755f211ee781598d4abf8815192dcac36ab66326a2ed0535ad178ed87bf0586f04c7c9c7381a6b3f8f1ca76fd85400e59ce448dae65d9deec89ddb
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
testa_appium_driver (0.1.
|
4
|
+
testa_appium_driver (0.1.28)
|
5
5
|
appium_lib_core
|
6
6
|
json (~> 2.3)
|
7
7
|
|
@@ -15,10 +15,10 @@ GEM
|
|
15
15
|
childprocess (4.1.0)
|
16
16
|
diff-lcs (1.5.0)
|
17
17
|
eventmachine (1.2.7)
|
18
|
-
faye-websocket (0.11.
|
18
|
+
faye-websocket (0.11.2)
|
19
19
|
eventmachine (>= 0.12.0)
|
20
20
|
websocket-driver (>= 0.5.1)
|
21
|
-
json (2.6.
|
21
|
+
json (2.6.3)
|
22
22
|
parallel (1.22.1)
|
23
23
|
parser (3.1.2.0)
|
24
24
|
ast (~> 2.4.1)
|
@@ -25,15 +25,11 @@ module ::TestaAppiumDriver
|
|
25
25
|
align_with = :top
|
26
26
|
end
|
27
27
|
|
28
|
-
|
29
|
-
# if true
|
30
|
-
w3c_scroll_each_ios(direction, align_with, &block)
|
31
|
-
else
|
32
|
-
w3c_scroll_each_android(direction, align_with, &block)
|
33
|
-
end
|
28
|
+
w3c_scroll_each_v2(direction, align_with, &block)
|
34
29
|
end
|
35
30
|
|
36
|
-
|
31
|
+
# @deprecated
|
32
|
+
def w3c_scroll_each_v1(direction, align_with, &block)
|
37
33
|
elements = []
|
38
34
|
begin
|
39
35
|
|
@@ -42,14 +38,14 @@ module ::TestaAppiumDriver
|
|
42
38
|
previous_element = nil
|
43
39
|
|
44
40
|
until is_end_of_scroll?
|
45
|
-
#
|
46
|
-
#
|
41
|
+
# $__.puts "-- new iteration"
|
42
|
+
# $__.puts "-------------"
|
47
43
|
aligned_items = 0
|
48
44
|
new_ignore_element_ids = []
|
49
45
|
matches = @locator.execute(skip_cache: true)
|
50
46
|
matches.each_with_index do |m, index|
|
51
|
-
#
|
52
|
-
#
|
47
|
+
# $__.puts "Matches: #{matches.count}"
|
48
|
+
# $__.puts "M: #{m.id}"
|
53
49
|
if ignore_element_ids.include?(m.id)
|
54
50
|
previous_element = m
|
55
51
|
next
|
@@ -95,7 +91,7 @@ module ::TestaAppiumDriver
|
|
95
91
|
elements
|
96
92
|
end
|
97
93
|
|
98
|
-
def
|
94
|
+
def w3c_scroll_each_v2(direction, align_with, &block)
|
99
95
|
elements = []
|
100
96
|
elements_in_current_iteration = []
|
101
97
|
stale_retries = 0
|
@@ -162,7 +158,7 @@ module ::TestaAppiumDriver
|
|
162
158
|
end
|
163
159
|
rescue Selenium::WebDriver::Error::StaleElementReferenceError
|
164
160
|
# if boundElementsByIndex is enabled, we can get stale element reference while doing scroll each
|
165
|
-
|
161
|
+
stale_retries += 1
|
166
162
|
sleep 0.2
|
167
163
|
retry if stale_retries < 4
|
168
164
|
raise
|
data/testa_appium_driver.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testa_appium_driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- karlo.razumovic
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appium_lib_core
|