appium_lib_core 14.2.0 → 14.3.0
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/CHANGELOG.md +7 -0
- data/lib/appium_lib_core/common/base/search_context.rb +20 -12
- data/lib/appium_lib_core/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: b22d7857835e51a54fd598a45d8f5373ca49def453a51e23893f8c953d36101e
|
|
4
|
+
data.tar.gz: bd512308203315df2010ef8fbc18fcb4995acb875e6622721a10f239a04512ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7593ee9fb885945245c0f1da7f54a57f3b443bf56bfd1ef404da022811b0d6cb51ec24355792dc787680cdb3a8dfd7112ed1bc62f915245397918a96d3c59758
|
|
7
|
+
data.tar.gz: 1e94cf81590be4e97828e762adeab8cbd07a836558e3924c1d2400450121728873a56a969c3defee2582239927471aa6862da3717f2404b6b5ad0b86b71fce92
|
data/CHANGELOG.md
CHANGED
|
@@ -117,6 +117,13 @@ relax the core version constraint. Applications using
|
|
|
117
117
|
`appium_console` or `appium_capybara` through `appium_lib` should upgrade with that
|
|
118
118
|
compatible release. Direct users of `appium_lib_core` can migrate as described above.
|
|
119
119
|
|
|
120
|
+
## [14.3.0](https://github.com/appium/ruby_lib_core/compare/v14.2.0...v14.3.0) (2026-11-26)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### Features
|
|
124
|
+
|
|
125
|
+
* support new android locators ([#747](https://github.com/appium/ruby_lib_core/issues/747)) ([03a649a](https://github.com/appium/ruby_lib_core/commit/03a649afa7565b39ddef71b88a9c9ce54016e8cb))
|
|
126
|
+
|
|
120
127
|
## [14.2.0](https://github.com/appium/ruby_lib_core/compare/v14.1.0...v14.2.0) (2026-11-26)
|
|
121
128
|
|
|
122
129
|
|
|
@@ -19,7 +19,9 @@ module Appium
|
|
|
19
19
|
#
|
|
20
20
|
# Find the first element matching the given arguments
|
|
21
21
|
#
|
|
22
|
-
# - Android
|
|
22
|
+
# - UiAutomator2 supports Android class chain (10.1.0+) and predicate string (10.2.0+) locators.
|
|
23
|
+
# The :uiautomator locator is deprecated. See the
|
|
24
|
+
# {https://appium.github.io/appium-uiautomator2-driver/latest/guides/migrating-from-uiscrollable/ migration guide}.
|
|
23
25
|
# - iOS can find with a {https://developer.apple.com/library/ios/documentation/ToolsLanguages/Reference/UIAWindowClassReference/UIAWindow/UIAWindow.html#//apple_ref/doc/uid/TP40009930 UIAutomation command}.
|
|
24
26
|
# - iOS, only for XCUITest(WebDriverAgent), can find with a {https://github.com/facebook/WebDriverAgent/wiki/Queries class chain}
|
|
25
27
|
#
|
|
@@ -57,8 +59,11 @@ module Appium
|
|
|
57
59
|
# @driver.find_elements :image, Base64.strict_encode64(File.read(file_path))
|
|
58
60
|
#
|
|
59
61
|
# # For Android
|
|
60
|
-
# ## With
|
|
61
|
-
# @driver.find_elements :
|
|
62
|
+
# ## With UiAutomator2
|
|
63
|
+
# @driver.find_elements :android_class_chain, '**/android.widget.Button'
|
|
64
|
+
# @driver.find_elements :android_predicate_string, 'clickable == true'
|
|
65
|
+
# ## With Espresso
|
|
66
|
+
# @driver.find_element :text, 'Animation'
|
|
62
67
|
# ## With viewtag, but only for Espresso
|
|
63
68
|
# ## 'setTag'/'getTag' in https://developer.android.com/reference/android/view/View
|
|
64
69
|
# @driver.find_elements :viewtag, 'new UiSelector().clickable(true)'
|
|
@@ -89,17 +94,20 @@ module Appium
|
|
|
89
94
|
# e.tag_name #=> "XCUIElementTypeStaticText"
|
|
90
95
|
#
|
|
91
96
|
APPIUM_EXTRA_FINDERS = {
|
|
92
|
-
accessibility_id:
|
|
93
|
-
image:
|
|
94
|
-
custom:
|
|
97
|
+
accessibility_id: 'accessibility id',
|
|
98
|
+
image: '-image',
|
|
99
|
+
custom: '-custom',
|
|
95
100
|
# Android
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
101
|
+
android_class_chain: '-android class chain',
|
|
102
|
+
android_predicate_string: '-android predicate string',
|
|
103
|
+
uiautomator: '-android uiautomator', # Deprecated in UiAutomator2
|
|
104
|
+
text: 'text', # Available in Espresso
|
|
105
|
+
viewtag: '-android viewtag', # Available in Espresso
|
|
106
|
+
data_matcher: '-android datamatcher', # Available in Espresso
|
|
107
|
+
view_matcher: '-android viewmatcher', # Available in Espresso
|
|
100
108
|
# iOS
|
|
101
|
-
predicate:
|
|
102
|
-
class_chain:
|
|
109
|
+
predicate: '-ios predicate string',
|
|
110
|
+
class_chain: '-ios class chain'
|
|
103
111
|
}.freeze
|
|
104
112
|
end
|
|
105
113
|
end
|