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 +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +6 -0
- data/lib/appium_lib_core/common/base/search_context.rb +3 -1
- data/lib/appium_lib_core/common/device/screen_record.rb +1 -1
- data/lib/appium_lib_core/version.rb +1 -1
- data/lib/appium_lib_core/windows/device/screen.rb +17 -5
- data/lib/appium_lib_core/windows/device.rb +1 -0
- data/sig/lib/appium_lib_core/windows/device/screen.rbs +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: edc73751477e4bcaebfbc9b61cc8e2e53a6d16f1d401e86bd1066bb4e935b022
|
|
4
|
+
data.tar.gz: 9ff8808b4658e30a4cde64afbcf9fa328323ca797328e9192ec15082789779b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 =
|
|
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
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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.
|