appium_lib_core 14.3.0 → 14.4.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: b22d7857835e51a54fd598a45d8f5373ca49def453a51e23893f8c953d36101e
4
- data.tar.gz: bd512308203315df2010ef8fbc18fcb4995acb875e6622721a10f239a04512ba
3
+ metadata.gz: edc73751477e4bcaebfbc9b61cc8e2e53a6d16f1d401e86bd1066bb4e935b022
4
+ data.tar.gz: 9ff8808b4658e30a4cde64afbcf9fa328323ca797328e9192ec15082789779b5
5
5
  SHA512:
6
- metadata.gz: 7593ee9fb885945245c0f1da7f54a57f3b443bf56bfd1ef404da022811b0d6cb51ec24355792dc787680cdb3a8dfd7112ed1bc62f915245397918a96d3c59758
7
- data.tar.gz: 1e94cf81590be4e97828e762adeab8cbd07a836558e3924c1d2400450121728873a56a969c3defee2582239927471aa6862da3717f2404b6b5ad0b86b71fce92
6
+ metadata.gz: 7cf0ceb0d43930b3e5354e86089f73b6a19485b1d697dc90ae0d79ae53ad5a92c910f55b3a645a4309fdb9a7287d0b9fe00b2ba564e118bbe9385ba29720154d
7
+ data.tar.gz: 6ad909da68d5118bbab0b5ed35c4c091abec5e225b50aee2261ca776812f00acb2d1d3b4fbe433e4ae7c2b9200509566da0e5920a9d7f0d5749d12d259de414f
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.4.0](https://github.com/appium/ruby_lib_core/compare/v14.3.0...v14.4.0) (2026-11-26)
121
+
122
+
123
+ ### Features
124
+
125
+ * wincore support ([#749](https://github.com/appium/ruby_lib_core/issues/749)) ([e8385ba](https://github.com/appium/ruby_lib_core/commit/e8385ba45f1e5744e34a0d7d8bae6bc7c88b34c1))
126
+
120
127
  ## [14.3.0](https://github.com/appium/ruby_lib_core/compare/v14.2.0...v14.3.0) (2026-11-26)
121
128
 
122
129
 
data/README.md CHANGED
@@ -68,6 +68,12 @@ $ appium --relaxed-security # To run all tests in local
68
68
  With Appium 4, use the WinCore driver (`appium driver install wincore`) for Windows sessions.
69
69
  Set `automationName` to `Wincore`. Event timings are available through `driver.logs.events`.
70
70
 
71
+ Use `:windows_uiautomation` to find an element by a WinCore UI Automation condition.
72
+
73
+ ```ruby
74
+ driver.find_element(:windows_uiautomation, "new PropertyCondition(AutomationElement.NameProperty, 'OK')")
75
+ ```
76
+
71
77
  - Conduct tests
72
78
  ```bash
73
79
  $ bundle install
@@ -107,7 +107,9 @@ module Appium
107
107
  view_matcher: '-android viewmatcher', # Available in Espresso
108
108
  # iOS
109
109
  predicate: '-ios predicate string',
110
- class_chain: '-ios class chain'
110
+ class_chain: '-ios class chain',
111
+ # Windows (WinCore)
112
+ windows_uiautomation: '-windows uiautomation'
111
113
  }.freeze
112
114
  end
113
115
  end
@@ -70,7 +70,7 @@ module Appium
70
70
  end
71
71
 
72
72
  def stop_and_save_recording_screen(file_path)
73
- base64data = execute(:stop_recording_screen, {}, {})
73
+ base64data = stop_recording_screen
74
74
  File.open(file_path, 'wb') { |f| f << Base64.decode64(base64data) }
75
75
  end
76
76
  end # module Command
@@ -14,7 +14,7 @@
14
14
 
15
15
  module Appium
16
16
  module Core
17
- VERSION = '14.3.0' unless defined? ::Appium::Core::VERSION
17
+ VERSION = '14.4.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
@@ -18,21 +18,33 @@ module Appium
18
18
  module Device
19
19
  module Screen
20
20
  def self.add_methods(target)
21
+ wincore = target.automation_name == :wincore
21
22
  ::Appium::Core::Device.add_endpoint_method(:start_recording_screen, bridge: target.bridge_extensions) do
22
- def start_recording_screen(force_restart: nil, time_limit: nil,
23
- fps: nil, preset: nil, video_filter: nil,
24
- capture_clicks: nil, capture_cursor: nil, audio_input: nil)
23
+ define_method(:start_recording_screen) do |force_restart: nil, time_limit: nil, fps: nil, preset: nil, video_filter: nil, capture_clicks: nil, capture_cursor: nil, audio_input: nil|
25
24
  option = {}
26
25
  option[:forceRestart] = force_restart unless force_restart.nil?
27
26
  option[:timeLimit] = time_limit unless time_limit.nil?
28
- option[:fps] = fps unless fps.nil?
27
+ option[wincore ? :videoFps : :fps] = fps unless fps.nil?
29
28
  option[:preset] = preset unless preset.nil?
30
29
  option[:videoFilter] = video_filter unless video_filter.nil?
31
30
  option[:captureClicks] = capture_clicks unless capture_clicks.nil?
32
31
  option[:captureCursor] = capture_cursor unless capture_cursor.nil?
33
32
  option[:audioInput] = audio_input unless audio_input.nil?
34
33
 
35
- execute(:start_recording_screen, {}, { options: option })
34
+ if wincore
35
+ execute_script('windows: startRecordingScreen', option)
36
+ else
37
+ execute(:start_recording_screen, {}, { options: option })
38
+ end
39
+ end
40
+ end
41
+
42
+ return unless wincore
43
+
44
+ ::Appium::Core::Device.add_endpoint_method(:stop_recording_screen, bridge: target.bridge_extensions) do
45
+ def stop_recording_screen(**kwargs)
46
+ options = ::Appium::Core::Base::Device::ScreenRecord.new(**kwargs).upload_option
47
+ execute_script('windows: stopRecordingScreen', options)
36
48
  end
37
49
  end
38
50
  end
@@ -54,6 +54,7 @@ module Appium
54
54
  # Disabled by default.
55
55
  # @param [Bool] capture_clicks Whether to capture the click gestures while recording the screen.
56
56
  # Disabled by default.
57
+ # With WinCore, leave both capture_clicks and capture_cursor unset.
57
58
  # @param [String] audio_input If provided then the given audio input will be used to record the computer audio
58
59
  # along with the desktop video. The list of available devices could be retrieved using
59
60
  # +ffmpeg -list_devices true -f dshow -i dummy+ command.
@@ -3,7 +3,7 @@ module Appium
3
3
  module Windows
4
4
  module Device
5
5
  module Screen
6
- def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
6
+ include _Bridge
7
7
 
8
8
  def self.add_methods: (untyped target) -> untyped
9
9
  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.3.0
4
+ version: 14.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO