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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7ae5f85685e3c0d36e111b188590f6393c1a6f98623858dc90cfff728e962c0
4
- data.tar.gz: 7b33cf72cdf1c461f222cc5d57f8969670009f909b5ec9b875bd35e9384941d3
3
+ metadata.gz: b22d7857835e51a54fd598a45d8f5373ca49def453a51e23893f8c953d36101e
4
+ data.tar.gz: bd512308203315df2010ef8fbc18fcb4995acb875e6622721a10f239a04512ba
5
5
  SHA512:
6
- metadata.gz: 73f19222727e08b71323a056c04c4e9679eb2a4c6a464e1473ed9cb5f5f6246d69832a4d24837fe6e71a09f20498272e2116c1eb15a6392faef06ec2168bffaa
7
- data.tar.gz: 7e7b2b442894d35d29fb8974d5e4b201a9507d9fa3f6e4a59a3b287ce2c0140fe2019e01e5f2180869aa4af92e5c26b89aaf4ee0c8df676f16eed88cc7d2d853
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 can find with uiautomator like a {http://developer.android.com/tools/help/uiautomator/UiSelector.html UISelector}.
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 uiautomator
61
- # @driver.find_elements :uiautomator, 'new UiSelector().clickable(true)'
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: 'accessibility id',
93
- image: '-image',
94
- custom: '-custom',
97
+ accessibility_id: 'accessibility id',
98
+ image: '-image',
99
+ custom: '-custom',
95
100
  # Android
96
- uiautomator: '-android uiautomator', # Unavailable in Espresso
97
- viewtag: '-android viewtag', # Available in Espresso
98
- data_matcher: '-android datamatcher', # Available in Espresso
99
- view_matcher: '-android viewmatcher', # Available in Espresso
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: '-ios predicate string',
102
- class_chain: '-ios class chain'
109
+ predicate: '-ios predicate string',
110
+ class_chain: '-ios class chain'
103
111
  }.freeze
104
112
  end
105
113
  end
@@ -14,7 +14,7 @@
14
14
 
15
15
  module Appium
16
16
  module Core
17
- VERSION = '14.2.0' unless defined? ::Appium::Core::VERSION
17
+ VERSION = '14.3.0' unless defined? ::Appium::Core::VERSION
18
18
  DATE = '2026-11-26' unless defined? ::Appium::Core::DATE # x-release-please-date
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.2.0
4
+ version: 14.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO