testa_appium_driver 0.1.22 → 0.1.25
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b29b2698137e80b650a08f6fc0069137d6244b65c65b5a44718c3e69c9457c04
|
4
|
+
data.tar.gz: 763f9c945a09df4cc1276752a2f93eec2b6130c46fd8ecda8b7010d58ea5cbd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aa78313a9b30df1b95e283b094dc36eab8336e48e8b10c30f4557388bae55e4c586c3f120de9507fc452dde783639a25b1200b08cf1d404b37c23f9804d3fb4
|
7
|
+
data.tar.gz: 92e1e7c85f897af2efa09c70c4a3575575468f34b8a583d71688814fbab8d218752b98257e64c64b1187675d64ec985a19562c4edbbe2e4799c85874df9dc9cc
|
data/Gemfile.lock
CHANGED
@@ -26,6 +26,7 @@ module ::TestaAppiumDriver
|
|
26
26
|
end
|
27
27
|
|
28
28
|
if @driver.ios?
|
29
|
+
# if true
|
29
30
|
w3c_scroll_each_ios(direction, align_with, &block)
|
30
31
|
else
|
31
32
|
w3c_scroll_each_android(direction, align_with, &block)
|
@@ -182,10 +183,18 @@ module ::TestaAppiumDriver
|
|
182
183
|
max_attempts = 3 if max_attempts.nil? || max_attempts <= 0
|
183
184
|
# $ctx.puts("Is aligned: #{is_aligned?(with, element)}")
|
184
185
|
timeout = 0
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
186
|
+
stale_retries = 0
|
187
|
+
begin
|
188
|
+
until is_aligned?(with, element) || timeout == max_attempts
|
189
|
+
# $ctx.puts("align roudn: #{timeout}")
|
190
|
+
w3c_attempt_align(with, speed_coef)
|
191
|
+
timeout += 1
|
192
|
+
end
|
193
|
+
rescue Selenium::WebDriver::Error::StaleElementReferenceError
|
194
|
+
# if boundElementsByIndex is enabled, we can get stale element reference while doing scroll each
|
195
|
+
stale_retries += 1
|
196
|
+
element = @locator.execute if @locator.instance_of?(TestaAppiumDriver::Locator)
|
197
|
+
retry if stale_retries < 2
|
189
198
|
end
|
190
199
|
# $ctx.puts("end align")
|
191
200
|
end
|
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.25
|
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-
|
11
|
+
date: 2023-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appium_lib_core
|