robotframework-platynui 0.0.1__py3-none-any.whl
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.
- PlatynUI/ButtonKeywords.py +9 -0
- PlatynUI/TextKeywords.py +7 -0
- PlatynUI/__about__.py +4 -0
- PlatynUI/__init__.py +34 -0
- PlatynUI/core/__init__.py +13 -0
- PlatynUI/core/adapter.py +152 -0
- PlatynUI/core/adapterfactory.py +51 -0
- PlatynUI/core/adapterproxy.py +168 -0
- PlatynUI/core/contextbase.py +586 -0
- PlatynUI/core/exceptions.py +77 -0
- PlatynUI/core/internal/__init__.py +0 -0
- PlatynUI/core/internal/decorator.py +148 -0
- PlatynUI/core/locatorbase.py +197 -0
- PlatynUI/core/locatorscope.py +17 -0
- PlatynUI/core/predicate.py +15 -0
- PlatynUI/core/settings.py +63 -0
- PlatynUI/core/strategies/__init__.py +1 -0
- PlatynUI/core/strategies/strategies.py +26 -0
- PlatynUI/core/strategybase.py +8 -0
- PlatynUI/core/strategyimpl.py +102 -0
- PlatynUI/core/technology.py +25 -0
- PlatynUI/core/types.py +421 -0
- PlatynUI/core/wait_for.py +47 -0
- PlatynUI/core/weight_calculator.py +110 -0
- PlatynUI/py.typed +0 -0
- PlatynUI/robot/__init__.py +0 -0
- PlatynUI/robot/reporting.py +74 -0
- PlatynUI/technology/__init__.py +0 -0
- PlatynUI/technology/uiautomation/.gitignore +1 -0
- PlatynUI/technology/uiautomation/__init__.py +4 -0
- PlatynUI/technology/uiautomation/core/adapterfactory.py +88 -0
- PlatynUI/technology/uiautomation/core/displaydevice.py +23 -0
- PlatynUI/technology/uiautomation/core/impls/__init__.py +2 -0
- PlatynUI/technology/uiautomation/core/impls/control.py +31 -0
- PlatynUI/technology/uiautomation/core/impls/window.py +83 -0
- PlatynUI/technology/uiautomation/core/keyboarddevice.py +21 -0
- PlatynUI/technology/uiautomation/core/loader.py +117 -0
- PlatynUI/technology/uiautomation/core/mousedevice.py +29 -0
- PlatynUI/technology/uiautomation/core/technology.py +61 -0
- PlatynUI/technology/uiautomation/core/uiaadapter.py +197 -0
- PlatynUI/technology/uiautomation/core/uiabase.py +19 -0
- PlatynUI/technology/uiautomation/desktop.py +11 -0
- PlatynUI/technology/uiautomation/locator.py +435 -0
- PlatynUI/technology/uiautomation/runtime/Caliburn.Micro.Core.dll +0 -0
- PlatynUI/technology/uiautomation/runtime/Caliburn.Micro.Platform.Core.dll +0 -0
- PlatynUI/technology/uiautomation/runtime/Caliburn.Micro.Platform.dll +0 -0
- PlatynUI/technology/uiautomation/runtime/Microsoft.Xaml.Behaviors.dll +0 -0
- PlatynUI/technology/uiautomation/runtime/PlatynUI.Technology.UiAutomation.Spy.deps.json +266 -0
- PlatynUI/technology/uiautomation/runtime/PlatynUI.Technology.UiAutomation.Spy.dll +0 -0
- PlatynUI/technology/uiautomation/runtime/PlatynUI.Technology.UiAutomation.Spy.exe +0 -0
- PlatynUI/technology/uiautomation/runtime/PlatynUI.Technology.UiAutomation.Spy.runtimeconfig.json +19 -0
- PlatynUI/technology/uiautomation/runtime/PlatynUI.Technology.UiAutomation.dll +0 -0
- PlatynUI/technology/uiautomation/runtime/System.ComponentModel.Composition.dll +0 -0
- PlatynUI/technology/uiautomation/spy/__init__.py +0 -0
- PlatynUI/technology/uiautomation/spy/__main__.py +24 -0
- PlatynUI/ui/__init__.py +65 -0
- PlatynUI/ui/application.py +27 -0
- PlatynUI/ui/buttons.py +82 -0
- PlatynUI/ui/combobox.py +149 -0
- PlatynUI/ui/container.py +9 -0
- PlatynUI/ui/control.py +49 -0
- PlatynUI/ui/core/__init__.py +3 -0
- PlatynUI/ui/core/devices/__init__.py +6 -0
- PlatynUI/ui/core/devices/basedisplaydevice.py +25 -0
- PlatynUI/ui/core/devices/basekeyboarddevice.py +64 -0
- PlatynUI/ui/core/devices/basemousedevice.py +30 -0
- PlatynUI/ui/core/devices/basescreendevice.py +16 -0
- PlatynUI/ui/core/devices/displaydevice.py +113 -0
- PlatynUI/ui/core/devices/inputdevice.py +24 -0
- PlatynUI/ui/core/devices/keyboarddevice.py +279 -0
- PlatynUI/ui/core/devices/keyboardproxy.py +69 -0
- PlatynUI/ui/core/devices/mousebutton.py +11 -0
- PlatynUI/ui/core/devices/mousedevice.py +279 -0
- PlatynUI/ui/core/devices/mouseproxy.py +178 -0
- PlatynUI/ui/core/ui_technology.py +31 -0
- PlatynUI/ui/core/window_manager.py +59 -0
- PlatynUI/ui/desktopbase.py +56 -0
- PlatynUI/ui/dialog.py +10 -0
- PlatynUI/ui/edit.py +48 -0
- PlatynUI/ui/element.py +265 -0
- PlatynUI/ui/graphic.py +14 -0
- PlatynUI/ui/header.py +33 -0
- PlatynUI/ui/item.py +100 -0
- PlatynUI/ui/lists.py +37 -0
- PlatynUI/ui/menus.py +42 -0
- PlatynUI/ui/orientation.py +9 -0
- PlatynUI/ui/pane.py +14 -0
- PlatynUI/ui/proxies/__init__.py +4 -0
- PlatynUI/ui/proxies/standardproxies.py +391 -0
- PlatynUI/ui/scrollbar.py +9 -0
- PlatynUI/ui/strategies/__init__.py +19 -0
- PlatynUI/ui/strategies/activatable.py +27 -0
- PlatynUI/ui/strategies/application.py +28 -0
- PlatynUI/ui/strategies/closeable.py +22 -0
- PlatynUI/ui/strategies/control.py +16 -0
- PlatynUI/ui/strategies/editable.py +13 -0
- PlatynUI/ui/strategies/element.py +65 -0
- PlatynUI/ui/strategies/expandable.py +27 -0
- PlatynUI/ui/strategies/hasnativewindowhandle.py +14 -0
- PlatynUI/ui/strategies/hasorientation.py +15 -0
- PlatynUI/ui/strategies/maximizeable.py +27 -0
- PlatynUI/ui/strategies/minimizeable.py +27 -0
- PlatynUI/ui/strategies/movable.py +14 -0
- PlatynUI/ui/strategies/resizable.py +13 -0
- PlatynUI/ui/strategies/restorable.py +13 -0
- PlatynUI/ui/strategies/selectable.py +27 -0
- PlatynUI/ui/strategies/text.py +55 -0
- PlatynUI/ui/strategies/title.py +14 -0
- PlatynUI/ui/strategies/toggleable.py +23 -0
- PlatynUI/ui/strategies/value.py +15 -0
- PlatynUI/ui/table.py +56 -0
- PlatynUI/ui/tabs.py +28 -0
- PlatynUI/ui/text.py +14 -0
- PlatynUI/ui/togglestate.py +12 -0
- PlatynUI/ui/tree.py +99 -0
- PlatynUI/ui/unknown.py +9 -0
- PlatynUI/ui/window.py +177 -0
- robotframework_platynui-0.0.1.dist-info/METADATA +49 -0
- robotframework_platynui-0.0.1.dist-info/RECORD +122 -0
- robotframework_platynui-0.0.1.dist-info/WHEEL +4 -0
- robotframework_platynui-0.0.1.dist-info/entry_points.txt +2 -0
- robotframework_platynui-0.0.1.dist-info/licenses/LICENSE.txt +73 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runtimeTarget": {
|
|
3
|
+
"name": ".NETCoreApp,Version=v8.0",
|
|
4
|
+
"signature": ""
|
|
5
|
+
},
|
|
6
|
+
"compilationOptions": {},
|
|
7
|
+
"targets": {
|
|
8
|
+
".NETCoreApp,Version=v8.0": {
|
|
9
|
+
"PlatynUI.Technology.UiAutomation.Spy/1.0.0": {
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"Caliburn.Micro": "4.0.212",
|
|
12
|
+
"PlatynUI.Technology.UiAutomation": "1.0.0",
|
|
13
|
+
"System.ComponentModel.Composition": "8.0.0"
|
|
14
|
+
},
|
|
15
|
+
"runtime": {
|
|
16
|
+
"PlatynUI.Technology.UiAutomation.Spy.dll": {}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"Caliburn.Micro/4.0.212": {
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"Caliburn.Micro.Core": "4.0.212",
|
|
22
|
+
"Microsoft.Xaml.Behaviors.Wpf": "1.1.37"
|
|
23
|
+
},
|
|
24
|
+
"runtime": {
|
|
25
|
+
"lib/net6.0-windows7.0/Caliburn.Micro.Platform.Core.dll": {
|
|
26
|
+
"assemblyVersion": "4.0.0.0",
|
|
27
|
+
"fileVersion": "4.0.212.20088"
|
|
28
|
+
},
|
|
29
|
+
"lib/net6.0-windows7.0/Caliburn.Micro.Platform.dll": {
|
|
30
|
+
"assemblyVersion": "4.0.0.0",
|
|
31
|
+
"fileVersion": "4.0.212.20088"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"Caliburn.Micro.Core/4.0.212": {
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"System.Runtime.Serialization.Primitives": "4.3.0"
|
|
38
|
+
},
|
|
39
|
+
"runtime": {
|
|
40
|
+
"lib/netstandard2.0/Caliburn.Micro.Core.dll": {
|
|
41
|
+
"assemblyVersion": "4.0.0.0",
|
|
42
|
+
"fileVersion": "4.0.212.20088"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"Microsoft.NETCore.Platforms/1.1.0": {},
|
|
47
|
+
"Microsoft.NETCore.Targets/1.1.0": {},
|
|
48
|
+
"Microsoft.Xaml.Behaviors.Wpf/1.1.37": {
|
|
49
|
+
"runtime": {
|
|
50
|
+
"lib/net5.0-windows7.0/Microsoft.Xaml.Behaviors.dll": {
|
|
51
|
+
"assemblyVersion": "1.1.0.0",
|
|
52
|
+
"fileVersion": "1.1.37.31167"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"System.ComponentModel.Composition/8.0.0": {
|
|
57
|
+
"runtime": {
|
|
58
|
+
"lib/net8.0/System.ComponentModel.Composition.dll": {
|
|
59
|
+
"assemblyVersion": "8.0.0.0",
|
|
60
|
+
"fileVersion": "8.0.23.53103"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"System.Globalization/4.3.0": {
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"Microsoft.NETCore.Platforms": "1.1.0",
|
|
67
|
+
"Microsoft.NETCore.Targets": "1.1.0",
|
|
68
|
+
"System.Runtime": "4.3.0"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"System.IO/4.3.0": {
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"Microsoft.NETCore.Platforms": "1.1.0",
|
|
74
|
+
"Microsoft.NETCore.Targets": "1.1.0",
|
|
75
|
+
"System.Runtime": "4.3.0",
|
|
76
|
+
"System.Text.Encoding": "4.3.0",
|
|
77
|
+
"System.Threading.Tasks": "4.3.0"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"System.Memory/4.5.5": {},
|
|
81
|
+
"System.Reflection/4.3.0": {
|
|
82
|
+
"dependencies": {
|
|
83
|
+
"Microsoft.NETCore.Platforms": "1.1.0",
|
|
84
|
+
"Microsoft.NETCore.Targets": "1.1.0",
|
|
85
|
+
"System.IO": "4.3.0",
|
|
86
|
+
"System.Reflection.Primitives": "4.3.0",
|
|
87
|
+
"System.Runtime": "4.3.0"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"System.Reflection.Primitives/4.3.0": {
|
|
91
|
+
"dependencies": {
|
|
92
|
+
"Microsoft.NETCore.Platforms": "1.1.0",
|
|
93
|
+
"Microsoft.NETCore.Targets": "1.1.0",
|
|
94
|
+
"System.Runtime": "4.3.0"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"System.Resources.ResourceManager/4.3.0": {
|
|
98
|
+
"dependencies": {
|
|
99
|
+
"Microsoft.NETCore.Platforms": "1.1.0",
|
|
100
|
+
"Microsoft.NETCore.Targets": "1.1.0",
|
|
101
|
+
"System.Globalization": "4.3.0",
|
|
102
|
+
"System.Reflection": "4.3.0",
|
|
103
|
+
"System.Runtime": "4.3.0"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"System.Runtime/4.3.0": {
|
|
107
|
+
"dependencies": {
|
|
108
|
+
"Microsoft.NETCore.Platforms": "1.1.0",
|
|
109
|
+
"Microsoft.NETCore.Targets": "1.1.0"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"System.Runtime.Serialization.Primitives/4.3.0": {
|
|
113
|
+
"dependencies": {
|
|
114
|
+
"System.Resources.ResourceManager": "4.3.0",
|
|
115
|
+
"System.Runtime": "4.3.0"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"System.Text.Encoding/4.3.0": {
|
|
119
|
+
"dependencies": {
|
|
120
|
+
"Microsoft.NETCore.Platforms": "1.1.0",
|
|
121
|
+
"Microsoft.NETCore.Targets": "1.1.0",
|
|
122
|
+
"System.Runtime": "4.3.0"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"System.Threading.Tasks/4.3.0": {
|
|
126
|
+
"dependencies": {
|
|
127
|
+
"Microsoft.NETCore.Platforms": "1.1.0",
|
|
128
|
+
"Microsoft.NETCore.Targets": "1.1.0",
|
|
129
|
+
"System.Runtime": "4.3.0"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"PlatynUI.Technology.UiAutomation/1.0.0": {
|
|
133
|
+
"dependencies": {
|
|
134
|
+
"System.Memory": "4.5.5"
|
|
135
|
+
},
|
|
136
|
+
"runtime": {
|
|
137
|
+
"PlatynUI.Technology.UiAutomation.dll": {}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"libraries": {
|
|
143
|
+
"PlatynUI.Technology.UiAutomation.Spy/1.0.0": {
|
|
144
|
+
"type": "project",
|
|
145
|
+
"serviceable": false,
|
|
146
|
+
"sha512": ""
|
|
147
|
+
},
|
|
148
|
+
"Caliburn.Micro/4.0.212": {
|
|
149
|
+
"type": "package",
|
|
150
|
+
"serviceable": true,
|
|
151
|
+
"sha512": "sha512-cES6hx45uriyhSiyXo4usjrYmGnFpPosuVnq9X5N/MeyuZZLBB1S429cNL7c1xc2eunMsqCQPJDFjD2NDm7G6A==",
|
|
152
|
+
"path": "caliburn.micro/4.0.212",
|
|
153
|
+
"hashPath": "caliburn.micro.4.0.212.nupkg.sha512"
|
|
154
|
+
},
|
|
155
|
+
"Caliburn.Micro.Core/4.0.212": {
|
|
156
|
+
"type": "package",
|
|
157
|
+
"serviceable": true,
|
|
158
|
+
"sha512": "sha512-A/17oTTu/oYFSrahT9S6BxDnel/AIhOMSqEOG6MsG/MfchwuOrf144+2IIttu0k2UuSPFjIDKlPoSL5DTniwiw==",
|
|
159
|
+
"path": "caliburn.micro.core/4.0.212",
|
|
160
|
+
"hashPath": "caliburn.micro.core.4.0.212.nupkg.sha512"
|
|
161
|
+
},
|
|
162
|
+
"Microsoft.NETCore.Platforms/1.1.0": {
|
|
163
|
+
"type": "package",
|
|
164
|
+
"serviceable": true,
|
|
165
|
+
"sha512": "sha512-kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==",
|
|
166
|
+
"path": "microsoft.netcore.platforms/1.1.0",
|
|
167
|
+
"hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512"
|
|
168
|
+
},
|
|
169
|
+
"Microsoft.NETCore.Targets/1.1.0": {
|
|
170
|
+
"type": "package",
|
|
171
|
+
"serviceable": true,
|
|
172
|
+
"sha512": "sha512-aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==",
|
|
173
|
+
"path": "microsoft.netcore.targets/1.1.0",
|
|
174
|
+
"hashPath": "microsoft.netcore.targets.1.1.0.nupkg.sha512"
|
|
175
|
+
},
|
|
176
|
+
"Microsoft.Xaml.Behaviors.Wpf/1.1.37": {
|
|
177
|
+
"type": "package",
|
|
178
|
+
"serviceable": true,
|
|
179
|
+
"sha512": "sha512-TxH7g5I/4UzOHfs0GqD1W4evdl7DIHOQCr/KWc4G4BkgtsAhaHHXAW5JbKrkB7cqClN0JYOX6j9/4v4emCjFIA==",
|
|
180
|
+
"path": "microsoft.xaml.behaviors.wpf/1.1.37",
|
|
181
|
+
"hashPath": "microsoft.xaml.behaviors.wpf.1.1.37.nupkg.sha512"
|
|
182
|
+
},
|
|
183
|
+
"System.ComponentModel.Composition/8.0.0": {
|
|
184
|
+
"type": "package",
|
|
185
|
+
"serviceable": true,
|
|
186
|
+
"sha512": "sha512-bGhUX5BTivJ9Wax0qnJy7uGq7dn/TQkEpJ2Fpu1etg8dbPwyDkUzNPc1d3I2/jUr9y4wDI3a1dkSmi8X21Pzbw==",
|
|
187
|
+
"path": "system.componentmodel.composition/8.0.0",
|
|
188
|
+
"hashPath": "system.componentmodel.composition.8.0.0.nupkg.sha512"
|
|
189
|
+
},
|
|
190
|
+
"System.Globalization/4.3.0": {
|
|
191
|
+
"type": "package",
|
|
192
|
+
"serviceable": true,
|
|
193
|
+
"sha512": "sha512-kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==",
|
|
194
|
+
"path": "system.globalization/4.3.0",
|
|
195
|
+
"hashPath": "system.globalization.4.3.0.nupkg.sha512"
|
|
196
|
+
},
|
|
197
|
+
"System.IO/4.3.0": {
|
|
198
|
+
"type": "package",
|
|
199
|
+
"serviceable": true,
|
|
200
|
+
"sha512": "sha512-3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==",
|
|
201
|
+
"path": "system.io/4.3.0",
|
|
202
|
+
"hashPath": "system.io.4.3.0.nupkg.sha512"
|
|
203
|
+
},
|
|
204
|
+
"System.Memory/4.5.5": {
|
|
205
|
+
"type": "package",
|
|
206
|
+
"serviceable": true,
|
|
207
|
+
"sha512": "sha512-XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==",
|
|
208
|
+
"path": "system.memory/4.5.5",
|
|
209
|
+
"hashPath": "system.memory.4.5.5.nupkg.sha512"
|
|
210
|
+
},
|
|
211
|
+
"System.Reflection/4.3.0": {
|
|
212
|
+
"type": "package",
|
|
213
|
+
"serviceable": true,
|
|
214
|
+
"sha512": "sha512-KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==",
|
|
215
|
+
"path": "system.reflection/4.3.0",
|
|
216
|
+
"hashPath": "system.reflection.4.3.0.nupkg.sha512"
|
|
217
|
+
},
|
|
218
|
+
"System.Reflection.Primitives/4.3.0": {
|
|
219
|
+
"type": "package",
|
|
220
|
+
"serviceable": true,
|
|
221
|
+
"sha512": "sha512-5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==",
|
|
222
|
+
"path": "system.reflection.primitives/4.3.0",
|
|
223
|
+
"hashPath": "system.reflection.primitives.4.3.0.nupkg.sha512"
|
|
224
|
+
},
|
|
225
|
+
"System.Resources.ResourceManager/4.3.0": {
|
|
226
|
+
"type": "package",
|
|
227
|
+
"serviceable": true,
|
|
228
|
+
"sha512": "sha512-/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==",
|
|
229
|
+
"path": "system.resources.resourcemanager/4.3.0",
|
|
230
|
+
"hashPath": "system.resources.resourcemanager.4.3.0.nupkg.sha512"
|
|
231
|
+
},
|
|
232
|
+
"System.Runtime/4.3.0": {
|
|
233
|
+
"type": "package",
|
|
234
|
+
"serviceable": true,
|
|
235
|
+
"sha512": "sha512-JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==",
|
|
236
|
+
"path": "system.runtime/4.3.0",
|
|
237
|
+
"hashPath": "system.runtime.4.3.0.nupkg.sha512"
|
|
238
|
+
},
|
|
239
|
+
"System.Runtime.Serialization.Primitives/4.3.0": {
|
|
240
|
+
"type": "package",
|
|
241
|
+
"serviceable": true,
|
|
242
|
+
"sha512": "sha512-Wz+0KOukJGAlXjtKr+5Xpuxf8+c8739RI1C+A2BoQZT+wMCCoMDDdO8/4IRHfaVINqL78GO8dW8G2lW/e45Mcw==",
|
|
243
|
+
"path": "system.runtime.serialization.primitives/4.3.0",
|
|
244
|
+
"hashPath": "system.runtime.serialization.primitives.4.3.0.nupkg.sha512"
|
|
245
|
+
},
|
|
246
|
+
"System.Text.Encoding/4.3.0": {
|
|
247
|
+
"type": "package",
|
|
248
|
+
"serviceable": true,
|
|
249
|
+
"sha512": "sha512-BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==",
|
|
250
|
+
"path": "system.text.encoding/4.3.0",
|
|
251
|
+
"hashPath": "system.text.encoding.4.3.0.nupkg.sha512"
|
|
252
|
+
},
|
|
253
|
+
"System.Threading.Tasks/4.3.0": {
|
|
254
|
+
"type": "package",
|
|
255
|
+
"serviceable": true,
|
|
256
|
+
"sha512": "sha512-LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==",
|
|
257
|
+
"path": "system.threading.tasks/4.3.0",
|
|
258
|
+
"hashPath": "system.threading.tasks.4.3.0.nupkg.sha512"
|
|
259
|
+
},
|
|
260
|
+
"PlatynUI.Technology.UiAutomation/1.0.0": {
|
|
261
|
+
"type": "project",
|
|
262
|
+
"serviceable": false,
|
|
263
|
+
"sha512": ""
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
PlatynUI/technology/uiautomation/runtime/PlatynUI.Technology.UiAutomation.Spy.runtimeconfig.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runtimeOptions": {
|
|
3
|
+
"tfm": "net8.0",
|
|
4
|
+
"frameworks": [
|
|
5
|
+
{
|
|
6
|
+
"name": "Microsoft.NETCore.App",
|
|
7
|
+
"version": "8.0.0"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"name": "Microsoft.WindowsDesktop.App",
|
|
11
|
+
"version": "8.0.0"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"configProperties": {
|
|
15
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
|
|
16
|
+
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": true
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def main() -> None:
|
|
6
|
+
exe_name = "PlatynUI.Technology.UiAutomation.Spy.exe"
|
|
7
|
+
debug_path = (
|
|
8
|
+
Path(__file__).parent
|
|
9
|
+
/ f"../../../../PlatynUI.Technology.UiAutomation.Spy/bin/Debug/net8.0-windows/{exe_name}"
|
|
10
|
+
# Path(__file__).parent
|
|
11
|
+
# / f"../../../../PlatynUI.Technology.UiAutomation.Spy/bin/Debug/net481/{ASSEMBLY_NAME}"
|
|
12
|
+
)
|
|
13
|
+
runtime_path = Path(__file__).parent.parent / f"runtime/{exe_name}"
|
|
14
|
+
|
|
15
|
+
if debug_path.exists():
|
|
16
|
+
os.startfile(str(debug_path))
|
|
17
|
+
elif runtime_path.exists():
|
|
18
|
+
os.startfile(str(runtime_path))
|
|
19
|
+
else:
|
|
20
|
+
print(f"Can't find the executable {exe_name} in the debug or runtime folder.")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
if __name__ == "__main__":
|
|
24
|
+
main()
|
PlatynUI/ui/__init__.py
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
from .application import *
|
|
2
|
+
from .buttons import *
|
|
3
|
+
from .combobox import *
|
|
4
|
+
from .container import *
|
|
5
|
+
from .control import *
|
|
6
|
+
from .desktopbase import *
|
|
7
|
+
from .dialog import *
|
|
8
|
+
from .edit import *
|
|
9
|
+
from .element import *
|
|
10
|
+
from .graphic import *
|
|
11
|
+
from .header import *
|
|
12
|
+
from .item import *
|
|
13
|
+
from .lists import *
|
|
14
|
+
from .menus import *
|
|
15
|
+
from .pane import *
|
|
16
|
+
from .proxies import *
|
|
17
|
+
from .scrollbar import *
|
|
18
|
+
from .table import *
|
|
19
|
+
from .tabs import *
|
|
20
|
+
from .text import *
|
|
21
|
+
from .togglestate import *
|
|
22
|
+
from .tree import *
|
|
23
|
+
from .unknown import *
|
|
24
|
+
from .window import *
|
|
25
|
+
|
|
26
|
+
__all__ = [
|
|
27
|
+
"Application",
|
|
28
|
+
"Control",
|
|
29
|
+
"CustomControl",
|
|
30
|
+
"AbstractButton",
|
|
31
|
+
"Button",
|
|
32
|
+
"Link",
|
|
33
|
+
"ToggleState",
|
|
34
|
+
"CheckBox",
|
|
35
|
+
"RadioButton",
|
|
36
|
+
"Element",
|
|
37
|
+
"Container",
|
|
38
|
+
"DesktopBase",
|
|
39
|
+
"Dialog",
|
|
40
|
+
"Text",
|
|
41
|
+
"Edit",
|
|
42
|
+
"Item",
|
|
43
|
+
"Header",
|
|
44
|
+
"HeaderItem",
|
|
45
|
+
"Orientation",
|
|
46
|
+
"List",
|
|
47
|
+
"ListItem",
|
|
48
|
+
"ComboBox",
|
|
49
|
+
"Menu",
|
|
50
|
+
"MenuBar",
|
|
51
|
+
"MenuItem",
|
|
52
|
+
"Table",
|
|
53
|
+
"Cell",
|
|
54
|
+
"Row",
|
|
55
|
+
"TabList",
|
|
56
|
+
"TabItem",
|
|
57
|
+
"ToggleState",
|
|
58
|
+
"Tree",
|
|
59
|
+
"TreeItem",
|
|
60
|
+
"Unknown",
|
|
61
|
+
"Window",
|
|
62
|
+
"ScrollBar",
|
|
63
|
+
"Graphic",
|
|
64
|
+
"Pane",
|
|
65
|
+
]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from ..core import ContextBase, context
|
|
2
|
+
from . import strategies
|
|
3
|
+
|
|
4
|
+
__all__ = ["Application"]
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@context
|
|
8
|
+
class Application(ContextBase):
|
|
9
|
+
default_prefix = "app"
|
|
10
|
+
|
|
11
|
+
@property
|
|
12
|
+
def application_name(self) -> str:
|
|
13
|
+
return self.adapter.get_strategy(strategies.Application).application_name
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def id(self) -> str:
|
|
17
|
+
return self.adapter.get_strategy(strategies.Application).process_id
|
|
18
|
+
|
|
19
|
+
@property
|
|
20
|
+
def version(self) -> str:
|
|
21
|
+
return self.adapter.get_strategy(strategies.Application).version
|
|
22
|
+
|
|
23
|
+
def exit(self) -> None:
|
|
24
|
+
try:
|
|
25
|
+
return self.adapter.get_strategy(strategies.Application).exit()
|
|
26
|
+
finally:
|
|
27
|
+
self.invalidate()
|
PlatynUI/ui/buttons.py
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
from ..core import context
|
|
2
|
+
from . import strategies
|
|
3
|
+
from .control import Control
|
|
4
|
+
from .togglestate import ToggleState
|
|
5
|
+
|
|
6
|
+
__all__ = ["AbstractButton", "Button", "Link", "ToggleState", "CheckBox", "RadioButton"]
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AbstractButton(Control):
|
|
10
|
+
@property
|
|
11
|
+
def text(self) -> str:
|
|
12
|
+
self.ensure_that(self._application_is_ready)
|
|
13
|
+
|
|
14
|
+
return self.adapter.get_strategy(strategies.Text).text
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@context
|
|
18
|
+
class Button(AbstractButton):
|
|
19
|
+
def activate(self) -> None:
|
|
20
|
+
self.ensure_that(self._toplevel_parent_is_active, self._element_is_in_view, self._element_is_enabled)
|
|
21
|
+
|
|
22
|
+
self.adapter.get_strategy(strategies.Activatable).activate()
|
|
23
|
+
|
|
24
|
+
self.ensure_that(self._application_is_ready, raise_exception=False)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@context
|
|
28
|
+
class Link(Button):
|
|
29
|
+
pass
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@context
|
|
33
|
+
class CheckBox(AbstractButton):
|
|
34
|
+
@property
|
|
35
|
+
def state(self) -> ToggleState:
|
|
36
|
+
self.ensure_that(self._application_is_ready)
|
|
37
|
+
|
|
38
|
+
return self.adapter.get_strategy(strategies.HasToggleState).state
|
|
39
|
+
|
|
40
|
+
@state.setter
|
|
41
|
+
def state(self, value: ToggleState) -> None:
|
|
42
|
+
self.set_state(value)
|
|
43
|
+
|
|
44
|
+
def set_state(self, state: ToggleState) -> None:
|
|
45
|
+
for _ in ToggleState:
|
|
46
|
+
if self.state == state:
|
|
47
|
+
break
|
|
48
|
+
self.toggle()
|
|
49
|
+
|
|
50
|
+
def activate(self) -> None:
|
|
51
|
+
self.set_state(ToggleState.Checked)
|
|
52
|
+
|
|
53
|
+
def check(self) -> None:
|
|
54
|
+
self.set_state(ToggleState.Checked)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def is_checked(self) -> bool:
|
|
58
|
+
return self.state == ToggleState.Checked
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def is_unchecked(self) -> bool:
|
|
62
|
+
return self.state == ToggleState.Unchecked
|
|
63
|
+
|
|
64
|
+
def uncheck(self) -> None:
|
|
65
|
+
self.set_state(ToggleState.Unchecked)
|
|
66
|
+
|
|
67
|
+
def toggle(self) -> None:
|
|
68
|
+
self.ensure_that(
|
|
69
|
+
self._toplevel_parent_is_active,
|
|
70
|
+
self._element_is_in_view,
|
|
71
|
+
self._element_is_enabled,
|
|
72
|
+
self._element_is_not_readonly,
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
self.adapter.get_strategy(strategies.Toggleable).toggle()
|
|
76
|
+
|
|
77
|
+
self.ensure_that(self._application_is_ready, raise_exception=False)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
@context
|
|
81
|
+
class RadioButton(AbstractButton):
|
|
82
|
+
pass
|
PlatynUI/ui/combobox.py
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import typing
|
|
2
|
+
|
|
3
|
+
from ..core import LocatorScope, context
|
|
4
|
+
from ..core.predicate import predicate
|
|
5
|
+
from . import strategies
|
|
6
|
+
from .control import Control
|
|
7
|
+
from .lists import ListItem
|
|
8
|
+
|
|
9
|
+
__all__ = ["ComboBox"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@context
|
|
13
|
+
class ComboBox(Control):
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def can_expand(self) -> bool:
|
|
17
|
+
self.ensure_that(self._application_is_ready)
|
|
18
|
+
|
|
19
|
+
return self.adapter.get_strategy(strategies.HasExpanded).can_expand
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def is_expanded(self) -> bool:
|
|
23
|
+
self.ensure_that(self._application_is_ready)
|
|
24
|
+
|
|
25
|
+
return self.adapter.get_strategy(strategies.HasExpanded).is_expanded
|
|
26
|
+
|
|
27
|
+
@predicate("combobox {0} is expanded")
|
|
28
|
+
def _combobox_is_expanded(self) -> bool:
|
|
29
|
+
if not self.is_expanded:
|
|
30
|
+
self.expand()
|
|
31
|
+
return False
|
|
32
|
+
|
|
33
|
+
return self.is_expanded
|
|
34
|
+
|
|
35
|
+
@predicate("combobox {0} is collapsed")
|
|
36
|
+
def _combobox_is_collapsed(self) -> bool:
|
|
37
|
+
if self.is_expanded:
|
|
38
|
+
self.collapse()
|
|
39
|
+
return False
|
|
40
|
+
|
|
41
|
+
return not self.is_expanded
|
|
42
|
+
|
|
43
|
+
@predicate("combobox {0} can expand")
|
|
44
|
+
def _combobox_can_expand(self) -> bool:
|
|
45
|
+
return self.can_expand
|
|
46
|
+
|
|
47
|
+
def expand(self) -> bool:
|
|
48
|
+
if self.is_expanded:
|
|
49
|
+
return False
|
|
50
|
+
|
|
51
|
+
self.ensure_that(
|
|
52
|
+
self._combobox_can_expand, self._toplevel_parent_is_active, self._element_is_in_view, self._control_has_focus
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
self.adapter.get_strategy(strategies.Expandable).expand()
|
|
56
|
+
|
|
57
|
+
self.ensure_that(self._application_is_ready, raise_exception=False)
|
|
58
|
+
|
|
59
|
+
return True
|
|
60
|
+
|
|
61
|
+
def collapse(self) -> bool:
|
|
62
|
+
if not self.is_expanded:
|
|
63
|
+
return False
|
|
64
|
+
|
|
65
|
+
self.ensure_that(
|
|
66
|
+
self._combobox_can_expand, self._toplevel_parent_is_active, self._element_is_in_view, self._control_has_focus
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
self.adapter.get_strategy(strategies.Expandable).collapse()
|
|
70
|
+
|
|
71
|
+
self.ensure_that(self._application_is_ready, raise_exception=False)
|
|
72
|
+
|
|
73
|
+
return True
|
|
74
|
+
|
|
75
|
+
def get_items(self, *args, **kwargs) -> typing.List[ListItem]:
|
|
76
|
+
expanded = self.expand()
|
|
77
|
+
try:
|
|
78
|
+
self.ensure_that(self._combobox_is_expanded)
|
|
79
|
+
return self.get_all(ListItem, scope=LocatorScope.Descendants, *args, **kwargs)
|
|
80
|
+
finally:
|
|
81
|
+
if expanded:
|
|
82
|
+
self.collapse()
|
|
83
|
+
|
|
84
|
+
def iter_items(self, *args, **kwargs) -> typing.Iterator[ListItem]:
|
|
85
|
+
expanded = self.expand()
|
|
86
|
+
try:
|
|
87
|
+
self.ensure_that(self._combobox_is_expanded)
|
|
88
|
+
return self.iter_all(ListItem, scope=LocatorScope.Descendants, *args, **kwargs)
|
|
89
|
+
finally:
|
|
90
|
+
if expanded:
|
|
91
|
+
self.collapse()
|
|
92
|
+
|
|
93
|
+
def get_item(self, *args, **kwargs) -> ListItem:
|
|
94
|
+
expanded = self.expand()
|
|
95
|
+
try:
|
|
96
|
+
self.ensure_that(self._combobox_is_expanded)
|
|
97
|
+
return self.get(ListItem, scope=LocatorScope.Descendants, *args, **kwargs)
|
|
98
|
+
finally:
|
|
99
|
+
if expanded:
|
|
100
|
+
self.collapse()
|
|
101
|
+
|
|
102
|
+
def select(self, *args, **kwargs) -> ListItem:
|
|
103
|
+
expanded = self.expand()
|
|
104
|
+
try:
|
|
105
|
+
self.ensure_that(self._combobox_is_expanded)
|
|
106
|
+
result = self.get_item(*args, **kwargs)
|
|
107
|
+
result.select(False)
|
|
108
|
+
return result
|
|
109
|
+
finally:
|
|
110
|
+
if expanded:
|
|
111
|
+
self.collapse()
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def selected(self) -> typing.Optional[ListItem]:
|
|
115
|
+
return self.get_item(IsSelected=True)
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def text(self) -> str:
|
|
119
|
+
self.ensure_that(self._application_is_ready)
|
|
120
|
+
|
|
121
|
+
return self.adapter.get_strategy(strategies.Text).text
|
|
122
|
+
|
|
123
|
+
@text.setter
|
|
124
|
+
def text(self, value: str):
|
|
125
|
+
self.set_text(value)
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def is_editable(self) -> bool:
|
|
129
|
+
self.ensure_that(self._application_is_ready)
|
|
130
|
+
|
|
131
|
+
return self.adapter.get_strategy(strategies.Editable).is_editable
|
|
132
|
+
|
|
133
|
+
@predicate("combobox {0} is editable")
|
|
134
|
+
def _combobox_is_editable(self) -> bool:
|
|
135
|
+
return self.is_editable
|
|
136
|
+
|
|
137
|
+
def set_text(self, value):
|
|
138
|
+
self.ensure_that(
|
|
139
|
+
self._toplevel_parent_is_active,
|
|
140
|
+
self._element_is_in_view,
|
|
141
|
+
self._element_is_enabled,
|
|
142
|
+
self._element_is_not_readonly,
|
|
143
|
+
self._combobox_is_editable,
|
|
144
|
+
self._control_has_focus,
|
|
145
|
+
)
|
|
146
|
+
try:
|
|
147
|
+
self.adapter.get_strategy(strategies.EditableText).set_text(value)
|
|
148
|
+
finally:
|
|
149
|
+
self.ensure_that(self._application_is_ready, raise_exception=False)
|