appium_failure_helper 1.1.3 → 1.1.4
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 +4 -4
- data/lib/appium_failure_helper/analyzer.rb +13 -7
- data/lib/appium_failure_helper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 422c6af375ea6308ceaadf40036c7e1ff5187ed660830c4a403abcea94553551
|
4
|
+
data.tar.gz: 19ffb9d6d32d70274087584bce03005694fc75c6ea17d1abf2cc4c938c448d25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0ed3e523bcf4ee55edf522c4a93dbca4d1c60be1654ab87fbb625bce741dbb9df9eadd2458f33d6b9df8405cf9a8a775431982d46bb1a8d45b40983b995657b
|
7
|
+
data.tar.gz: b903344bf3dbc2176f3cf21c217082e8c5a739bd7e2ff8cd9a7dda4a7b066a0a75cd74ead27e7a4a4b7a6fe557ba86f02aa6e8fdd1fd633af8b2e31396b45999
|
@@ -29,15 +29,21 @@ module AppiumFailureHelper
|
|
29
29
|
/element with locator ['"]?(#?\w+)['"]?/i,
|
30
30
|
/(?:could not be found|cannot find element) using (.+?)=['"]?([^'"]+)['"]?/i,
|
31
31
|
/no such element: Unable to locate element: {"method":"([^"]+)","selector":"([^"]+)"}/i,
|
32
|
-
/(?:with the resource-id|with the accessibility-id) ['"]?(.+?)['"]?/i
|
32
|
+
/(?:with the resource-id|with the accessibility-id) ['"]?(.+?)['"]?/i,
|
33
|
+
/using "([^"]+)" with value "([^"]+)"/
|
33
34
|
]
|
34
35
|
patterns.each do |pattern|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
36
|
+
match = message.match(pattern)
|
37
|
+
if match
|
38
|
+
if match.captures.size == 2
|
39
|
+
info[:selector_type] = match.captures[0].strip.gsub(/['"]/, '')
|
40
|
+
info[:selector_value] = match.captures[1].strip.gsub(/['"]/, '')
|
41
|
+
else
|
42
|
+
info[:selector_value] = match.captures.last.strip.gsub(/['"]/, '')
|
43
|
+
info[:selector_type] = 'id' # Padrão para regex com 1 captura
|
44
|
+
end
|
45
|
+
return info
|
46
|
+
end
|
41
47
|
end
|
42
48
|
info
|
43
49
|
end
|