appium-novawindows2-driver 0.2.1 → 0.2.3

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.
Files changed (47) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +554 -530
  3. package/build/lib/commands/app.d.ts.map +1 -1
  4. package/build/lib/commands/app.js +35 -31
  5. package/build/lib/commands/app.js.map +1 -1
  6. package/build/lib/commands/element.d.ts.map +1 -1
  7. package/build/lib/commands/element.js +17 -0
  8. package/build/lib/commands/element.js.map +1 -1
  9. package/build/lib/commands/extension.d.ts +3 -0
  10. package/build/lib/commands/extension.d.ts.map +1 -1
  11. package/build/lib/commands/extension.js +47 -26
  12. package/build/lib/commands/extension.js.map +1 -1
  13. package/build/lib/commands/file.js +22 -22
  14. package/build/lib/commands/functions.d.ts.map +1 -1
  15. package/build/lib/commands/functions.js +215 -189
  16. package/build/lib/commands/functions.js.map +1 -1
  17. package/build/lib/commands/index.d.ts +6 -3
  18. package/build/lib/commands/index.d.ts.map +1 -1
  19. package/build/lib/commands/powershell.d.ts.map +1 -1
  20. package/build/lib/commands/powershell.js +163 -197
  21. package/build/lib/commands/powershell.js.map +1 -1
  22. package/build/lib/constraints.d.ts +3 -0
  23. package/build/lib/constraints.d.ts.map +1 -1
  24. package/build/lib/constraints.js +3 -0
  25. package/build/lib/constraints.js.map +1 -1
  26. package/build/lib/driver.d.ts +1 -1
  27. package/build/lib/driver.d.ts.map +1 -1
  28. package/build/lib/driver.js +8 -3
  29. package/build/lib/driver.js.map +1 -1
  30. package/build/lib/powershell/elements.d.ts.map +1 -1
  31. package/build/lib/powershell/elements.js +768 -740
  32. package/build/lib/powershell/elements.js.map +1 -1
  33. package/build/lib/powershell/msaa.d.ts +10 -0
  34. package/build/lib/powershell/msaa.d.ts.map +1 -0
  35. package/build/lib/powershell/msaa.js +188 -0
  36. package/build/lib/powershell/msaa.js.map +1 -0
  37. package/build/lib/temp/MSAAHelper.dll +0 -0
  38. package/build/lib/winapi/uia.d.ts +163 -0
  39. package/build/lib/winapi/uia.d.ts.map +1 -0
  40. package/build/lib/winapi/uia.js +677 -0
  41. package/build/lib/winapi/uia.js.map +1 -0
  42. package/build/lib/xpath/native.d.ts +14 -0
  43. package/build/lib/xpath/native.d.ts.map +1 -0
  44. package/build/lib/xpath/native.js +329 -0
  45. package/build/lib/xpath/native.js.map +1 -0
  46. package/build/tsconfig.tsbuildinfo +1 -1
  47. package/package.json +63 -63
@@ -2,195 +2,221 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PAGE_SOURCE = exports.FIND_CHILDREN_RECURSIVELY = void 0;
4
4
  const powershell_1 = require("../powershell");
5
- exports.FIND_CHILDREN_RECURSIVELY = (0, powershell_1.pwsh /* ps1 */) `
6
- function Find-ChildrenRecursively {
7
- param (
8
- [Parameter(Mandatory=$true)]
9
- [AutomationElement]$element,
10
- [Parameter(Mandatory=$true)]
11
- [Condition]$condition,
12
- [Parameter(Mandatory=$false)]
13
- [bool]$includeSelf = $false
14
- )
15
-
16
- $scope = if ($includeSelf) {
17
- [TreeScope]::Element -bor [TreeScope]::Children
18
- } else {
19
- [TreeScope]::Children
20
- }
21
-
22
- $validChild = $element.FindFirst($scope, $condition)
23
-
24
- if ($validChild -ne $null) {
25
- return $validChild
26
- }
27
-
28
- $children = $element.FindAll([TreeScope]::Children, [Condition]::TrueCondition)
29
- foreach ($child in $children) {
30
- $result = Find-AllChildrenRecursively -element $child -condition $condition -returnFirstResult $true
31
- if ($result -ne $null) {
32
- return $result[0]
33
- }
34
- }
35
-
36
- return $null
37
- }
38
-
39
- function Find-AllChildrenRecursively {
40
- param (
41
- [Parameter(Mandatory=$true)]
42
- [AutomationElement]$element,
43
- [Parameter(Mandatory=$true)]
44
- [Condition]$condition,
45
- [bool]$returnFirstResult = $false,
46
- [Parameter(Mandatory=$false)]
47
- [bool]$includeSelf = $false
48
- )
49
-
50
- $children = $element.FindAll([TreeScope]::Children, [Condition]::TrueCondition)
51
- $validChildren = @($children | Where-Object { $_.FindFirst([TreeScope]::Element, $condition) -ne $null })
52
-
53
- if ($includeSelf) {
54
- $self = $element.FindFirst([TreeScope]::Element, $condition)
55
- }
56
-
57
- if ($null -ne $self) {
58
- $validChildren += $self
59
- }
60
-
61
- foreach ($child in $children) {
62
- $Allresults = Find-AllChildrenRecursively -element $child -condition $condition
63
- if ($returnFirstResult -and $Allresults.Count -gt 0) {
64
- return $Allresults
65
- }
66
-
67
- foreach ($result in $Allresults) {
68
- $validChildren += ($result | Where-Object { $_.FindFirst([TreeScope]::Element, $condition) -ne $null })
69
- }
70
- }
71
-
72
- return $validChildren
73
- }
5
+ exports.FIND_CHILDREN_RECURSIVELY = (0, powershell_1.pwsh /* ps1 */) `
6
+ function Find-ChildrenRecursively {
7
+ param (
8
+ [Parameter(Mandatory=$true)]
9
+ [AutomationElement]$element,
10
+ [Parameter(Mandatory=$true)]
11
+ [Condition]$condition,
12
+ [Parameter(Mandatory=$false)]
13
+ [bool]$includeSelf = $false
14
+ )
15
+
16
+ if ($includeSelf) {
17
+ try {
18
+ if ($null -ne $element.FindFirst([TreeScope]::Element, $condition)) {
19
+ return $element
20
+ }
21
+ } catch {
22
+ # Element might be invalid/gone
23
+ }
24
+ }
25
+
26
+ $walker = [System.Windows.Automation.TreeWalker]::RawViewWalker
27
+ try {
28
+ $child = $walker.GetFirstChild($element)
29
+ } catch {
30
+ return $null
31
+ }
32
+
33
+ while ($null -ne $child) {
34
+ $result = Find-ChildrenRecursively -element $child -condition $condition -includeSelf $true
35
+ if ($null -ne $result) {
36
+ return $result
37
+ }
38
+ try {
39
+ $child = $walker.GetNextSibling($child)
40
+ } catch {
41
+ $child = $null
42
+ }
43
+ }
44
+
45
+ return $null
46
+ }
47
+
48
+ function Find-AllChildrenRecursively {
49
+ param (
50
+ [Parameter(Mandatory=$true)]
51
+ [AutomationElement]$element,
52
+ [Parameter(Mandatory=$true)]
53
+ [Condition]$condition,
54
+ [bool]$returnFirstResult = $false,
55
+ [Parameter(Mandatory=$false)]
56
+ [bool]$includeSelf = $false
57
+ )
58
+
59
+ $validChildren = @()
60
+
61
+ if ($includeSelf) {
62
+ try {
63
+ if ($null -ne $element.FindFirst([TreeScope]::Element, $condition)) {
64
+ $validChildren += $element
65
+ if ($returnFirstResult) { return $validChildren }
66
+ }
67
+ } catch {
68
+ # Ignore
69
+ }
70
+ }
71
+
72
+ $walker = [System.Windows.Automation.TreeWalker]::RawViewWalker
73
+ try {
74
+ $child = $walker.GetFirstChild($element)
75
+ } catch {
76
+ return $validChildren
77
+ }
78
+
79
+ while ($null -ne $child) {
80
+ $found = Find-AllChildrenRecursively -element $child -condition $condition -returnFirstResult $returnFirstResult -includeSelf $true
81
+ if ($found.Count -gt 0) {
82
+ $validChildren += $found
83
+ if ($returnFirstResult) { return $validChildren }
84
+ }
85
+ try {
86
+ $child = $walker.GetNextSibling($child)
87
+ } catch {
88
+ $child = $null
89
+ }
90
+ }
91
+
92
+ return $validChildren
93
+ }
74
94
  `;
75
- exports.PAGE_SOURCE = (0, powershell_1.pwsh /* ps1 */) `
76
- function Get-PageSource {
77
- param (
78
- [Parameter(Mandatory = $true)]
79
- [AutomationElement]$element,
80
- [Xml.XmlDocument]$xmlDoc,
81
- [Xml.XmlElement]$xmlElement
82
- )
83
-
84
- try {
85
- $localizedControlType = $element.GetCurrentPropertyValue([AutomationElement]::LocalizedControlTypeProperty)
86
- $controlType = $element.GetCurrentPropertyValue([AutomationElement]::ControlTypeProperty)
87
-
88
- $tagName = ''
89
- try {
90
- $tagName = $controlType.ProgrammaticName.Split('.')[-1]
91
- if ($tagName -eq 'DataGrid') { $tagName = 'List' }
92
- elseif ($tagName -eq 'DataItem') { $tagName = 'ListItem' }
93
- } catch {
94
- # fallback to LocalizedControlType ControlType is empty
95
- $tagName = -join ($localizedControlType -split ' ' | ForEach-Object {
96
- $_.Substring(0, 1).ToUpper() + $_.Substring(1).ToLower()
97
- })
98
- }
99
-
100
- $acceleratorKey = $element.GetCurrentPropertyValue([AutomationElement]::AcceleratorKeyProperty)
101
- $accessKey = $element.GetCurrentPropertyValue([AutomationElement]::AccessKeyProperty)
102
- $automationId = $element.GetCurrentPropertyValue([AutomationElement]::AutomationIdProperty)
103
- $className = $element.GetCurrentPropertyValue([AutomationElement]::ClassNameProperty)
104
- $frameworkId = $element.GetCurrentPropertyValue([AutomationElement]::FrameworkIdProperty)
105
- $hasKeyboardfocus = $element.GetCurrentPropertyValue([AutomationElement]::HasKeyboardfocusProperty)
106
- $helpText = $element.GetCurrentPropertyValue([AutomationElement]::HelpTextProperty)
107
- $isContentelement = $element.GetCurrentPropertyValue([AutomationElement]::IsContentelementProperty)
108
- $isControlelement = $element.GetCurrentPropertyValue([AutomationElement]::IsControlelementProperty)
109
- $isEnabled = $element.GetCurrentPropertyValue([AutomationElement]::IsEnabledProperty)
110
- $isKeyboardfocusable = $element.GetCurrentPropertyValue([AutomationElement]::IsKeyboardfocusableProperty)
111
- $isOffscreen = $element.GetCurrentPropertyValue([AutomationElement]::IsOffscreenProperty)
112
- $isPassword = $element.GetCurrentPropertyValue([AutomationElement]::IsPasswordProperty)
113
- $isRequiredforform = $element.GetCurrentPropertyValue([AutomationElement]::IsRequiredforformProperty)
114
- $itemStatus = $element.GetCurrentPropertyValue([AutomationElement]::ItemStatusProperty)
115
- $itemType = $element.GetCurrentPropertyValue([AutomationElement]::ItemTypeProperty)
116
- $name = $element.GetCurrentPropertyValue([AutomationElement]::NameProperty)
117
- $orientation = $element.GetCurrentPropertyValue([AutomationElement]::OrientationProperty)
118
- $processId = $element.GetCurrentPropertyValue([AutomationElement]::ProcessIdProperty)
119
- $runtimeId = $element.GetCurrentPropertyValue([AutomationElement]::RuntimeIdProperty) -join '.'
120
- $boundingRectangle = $element.Current.BoundingRectangle
121
- $x = $boundingRectangle.X - $rootElement.Current.BoundingRectangle.X
122
- $y = $boundingRectangle.Y - $rootElement.Current.BoundingRectangle.Y
123
- $width = $boundingRectangle.Width
124
- $height = $boundingRectangle.Height
125
-
126
- if ($null -eq $xmlDoc) { $xmlDoc = [Xml.XmlDocument]::new() }
127
-
128
- $newXmlElement = $xmlDoc.CreateElement($tagName)
129
- $newXmlElement.SetAttribute("AcceleratorKey", $acceleratorKey)
130
- $newXmlElement.SetAttribute("AccessKey", $accessKey)
131
- $newXmlElement.SetAttribute("AutomationId", $automationId)
132
- $newXmlElement.SetAttribute("ClassName", $className)
133
- $newXmlElement.SetAttribute("FrameworkId", $frameworkId)
134
- $newXmlElement.SetAttribute("HasKeyboardfocus", $hasKeyboardfocus)
135
- $newXmlElement.SetAttribute("HelpText", $helpText)
136
- $newXmlElement.SetAttribute("IsContentelement", $isContentelement)
137
- $newXmlElement.SetAttribute("IsControlelement", $isControlelement)
138
- $newXmlElement.SetAttribute("IsEnabled", $isEnabled)
139
- $newXmlElement.SetAttribute("IsKeyboardfocusable", $isKeyboardfocusable)
140
- $newXmlElement.SetAttribute("IsOffscreen", $isOffscreen)
141
- $newXmlElement.SetAttribute("IsPassword", $isPassword)
142
- $newXmlElement.SetAttribute("IsRequiredforform", $isRequiredforform)
143
- $newXmlElement.SetAttribute("ItemStatus", $itemStatus)
144
- $newXmlElement.SetAttribute("ItemType", $itemType)
145
- $newXmlElement.SetAttribute("LocalizedControlType", $localizedControlType)
146
- $newXmlElement.SetAttribute("Name", $name)
147
- $newXmlElement.SetAttribute("Orientation", $orientation)
148
- $newXmlElement.SetAttribute("ProcessId", $processId)
149
- $newXmlElement.SetAttribute("RuntimeId", $runtimeId)
150
- $newXmlElement.SetAttribute("x", $x)
151
- $newXmlElement.SetAttribute("y", $y)
152
- $newXmlElement.SetAttribute("width", $width)
153
- $newXmlElement.SetAttribute("height", $height)
154
-
155
- $pattern = $null
156
-
157
- if ($element.TryGetCurrentPattern([WindowPattern]::Pattern, [ref]$pattern)) {
158
- $newXmlElement.SetAttribute("CanMaximize", $windowPattern.Current.CanMaximize)
159
- $newXmlElement.SetAttribute("CanMinimize", $windowPattern.Current.CanMinimize)
160
- $newXmlElement.SetAttribute("IsModal", $windowPattern.Current.IsModal)
161
- $newXmlElement.SetAttribute("WindowVisualState", $windowPattern.Current.WindowVisualState)
162
- $newXmlElement.SetAttribute("WindowInteractionState", $windowPattern.Current.WindowInteractionState)
163
- $newXmlElement.SetAttribute("IsTopmost", $windowPattern.Current.IsTopmost)
164
- }
165
-
166
- if ($element.TryGetCurrentPattern([TransformPattern]::Pattern, [ref]$pattern)) {
167
- $newXmlElement.SetAttribute("CanRotate", $windowPattern.Current.CanRotate)
168
- $newXmlElement.SetAttribute("CanResize", $windowPattern.Current.CanResize)
169
- $newXmlElement.SetAttribute("CanMove", $windowPattern.Current.CanMove)
170
- }
171
-
172
- # TODO: more to be added depending on the available patterns
173
-
174
- if ($null -eq $xmlElement) {
175
- $xmlElement = $xmlDoc.AppendChild($newXmlElement)
176
- } else {
177
- $xmlElement = $xmlElement.AppendChild($newXmlElement)
178
- }
179
-
180
- $elementsToProcess = New-Object System.Collections.Queue
181
- $element.FindAll([TreeScope]::Children, $cacheRequest.TreeFilter) | ForEach-Object {
182
- $elementsToProcess.Enqueue($_)
183
- }
184
-
185
- while ($elementsToProcess.Count -gt 0) {
186
- $currentElement = $elementsToProcess.Dequeue()
187
- Get-PageSource $currentElement $xmlDoc $xmlElement | Out-Null
188
- }
189
- } catch {
190
- # noop
191
- }
192
-
193
- return $xmlElement
194
- }
95
+ exports.PAGE_SOURCE = (0, powershell_1.pwsh /* ps1 */) `
96
+ function Get-PageSource {
97
+ param (
98
+ [Parameter(Mandatory = $true)]
99
+ [AutomationElement]$element,
100
+ [Xml.XmlDocument]$xmlDoc,
101
+ [Xml.XmlElement]$xmlElement
102
+ )
103
+
104
+ try {
105
+ $localizedControlType = $element.GetCurrentPropertyValue([AutomationElement]::LocalizedControlTypeProperty)
106
+ $controlType = $element.GetCurrentPropertyValue([AutomationElement]::ControlTypeProperty)
107
+
108
+ $tagName = ''
109
+ try {
110
+ $tagName = $controlType.ProgrammaticName.Split('.')[-1]
111
+ if ($tagName -eq 'DataGrid') { $tagName = 'List' }
112
+ elseif ($tagName -eq 'DataItem') { $tagName = 'ListItem' }
113
+ } catch {
114
+ # fallback to LocalizedControlType ControlType is empty
115
+ $tagName = -join ($localizedControlType -split ' ' | ForEach-Object {
116
+ $_.Substring(0, 1).ToUpper() + $_.Substring(1).ToLower()
117
+ })
118
+ }
119
+
120
+ $acceleratorKey = $element.GetCurrentPropertyValue([AutomationElement]::AcceleratorKeyProperty)
121
+ $accessKey = $element.GetCurrentPropertyValue([AutomationElement]::AccessKeyProperty)
122
+ $automationId = $element.GetCurrentPropertyValue([AutomationElement]::AutomationIdProperty)
123
+ $className = $element.GetCurrentPropertyValue([AutomationElement]::ClassNameProperty)
124
+ $frameworkId = $element.GetCurrentPropertyValue([AutomationElement]::FrameworkIdProperty)
125
+ $hasKeyboardfocus = $element.GetCurrentPropertyValue([AutomationElement]::HasKeyboardfocusProperty)
126
+ $helpText = $element.GetCurrentPropertyValue([AutomationElement]::HelpTextProperty)
127
+ $isContentelement = $element.GetCurrentPropertyValue([AutomationElement]::IsContentelementProperty)
128
+ $isControlelement = $element.GetCurrentPropertyValue([AutomationElement]::IsControlelementProperty)
129
+ $isEnabled = $element.GetCurrentPropertyValue([AutomationElement]::IsEnabledProperty)
130
+ $isKeyboardfocusable = $element.GetCurrentPropertyValue([AutomationElement]::IsKeyboardfocusableProperty)
131
+ $isOffscreen = $element.GetCurrentPropertyValue([AutomationElement]::IsOffscreenProperty)
132
+ $isPassword = $element.GetCurrentPropertyValue([AutomationElement]::IsPasswordProperty)
133
+ $isRequiredforform = $element.GetCurrentPropertyValue([AutomationElement]::IsRequiredforformProperty)
134
+ $itemStatus = $element.GetCurrentPropertyValue([AutomationElement]::ItemStatusProperty)
135
+ $itemType = $element.GetCurrentPropertyValue([AutomationElement]::ItemTypeProperty)
136
+ $name = $element.GetCurrentPropertyValue([AutomationElement]::NameProperty)
137
+ $orientation = $element.GetCurrentPropertyValue([AutomationElement]::OrientationProperty)
138
+ $processId = $element.GetCurrentPropertyValue([AutomationElement]::ProcessIdProperty)
139
+ $runtimeId = $element.GetCurrentPropertyValue([AutomationElement]::RuntimeIdProperty) -join '.'
140
+
141
+ # Bounding Rect calculation
142
+ try {
143
+ $boundingRectangle = $element.Current.BoundingRectangle
144
+ $x = $boundingRectangle.X - $rootElement.Current.BoundingRectangle.X
145
+ $y = $boundingRectangle.Y - $rootElement.Current.BoundingRectangle.Y
146
+ $width = $boundingRectangle.Width
147
+ $height = $boundingRectangle.Height
148
+ } catch {
149
+ $x = 0; $y = 0; $width = 0; $height = 0
150
+ }
151
+
152
+ if ($null -eq $xmlDoc) { $xmlDoc = [Xml.XmlDocument]::new() }
153
+
154
+ $newXmlElement = $xmlDoc.CreateElement($tagName)
155
+ $newXmlElement.SetAttribute("AcceleratorKey", $acceleratorKey)
156
+ $newXmlElement.SetAttribute("AccessKey", $accessKey)
157
+ $newXmlElement.SetAttribute("AutomationId", $automationId)
158
+ $newXmlElement.SetAttribute("ClassName", $className)
159
+ $newXmlElement.SetAttribute("FrameworkId", $frameworkId)
160
+ $newXmlElement.SetAttribute("HasKeyboardfocus", $hasKeyboardfocus)
161
+ $newXmlElement.SetAttribute("HelpText", $helpText)
162
+ $newXmlElement.SetAttribute("IsContentelement", $isContentelement)
163
+ $newXmlElement.SetAttribute("IsControlelement", $isControlelement)
164
+ $newXmlElement.SetAttribute("IsEnabled", $isEnabled)
165
+ $newXmlElement.SetAttribute("IsKeyboardfocusable", $isKeyboardfocusable)
166
+ $newXmlElement.SetAttribute("IsOffscreen", $isOffscreen)
167
+ $newXmlElement.SetAttribute("IsPassword", $isPassword)
168
+ $newXmlElement.SetAttribute("IsRequiredforform", $isRequiredforform)
169
+ $newXmlElement.SetAttribute("ItemStatus", $itemStatus)
170
+ $newXmlElement.SetAttribute("ItemType", $itemType)
171
+ $newXmlElement.SetAttribute("LocalizedControlType", $localizedControlType)
172
+ $newXmlElement.SetAttribute("Name", $name)
173
+ $newXmlElement.SetAttribute("Orientation", $orientation)
174
+ $newXmlElement.SetAttribute("ProcessId", $processId)
175
+ $newXmlElement.SetAttribute("RuntimeId", $runtimeId)
176
+ $newXmlElement.SetAttribute("x", $x)
177
+ $newXmlElement.SetAttribute("y", $y)
178
+ $newXmlElement.SetAttribute("width", $width)
179
+ $newXmlElement.SetAttribute("height", $height)
180
+
181
+ $pattern = $null
182
+
183
+ if ($element.TryGetCurrentPattern([WindowPattern]::Pattern, [ref]$pattern)) {
184
+ $newXmlElement.SetAttribute("CanMaximize", $pattern.Current.CanMaximize)
185
+ $newXmlElement.SetAttribute("CanMinimize", $pattern.Current.CanMinimize)
186
+ $newXmlElement.SetAttribute("IsModal", $pattern.Current.IsModal)
187
+ $newXmlElement.SetAttribute("WindowVisualState", $pattern.Current.WindowVisualState)
188
+ $newXmlElement.SetAttribute("WindowInteractionState", $pattern.Current.WindowInteractionState)
189
+ $newXmlElement.SetAttribute("IsTopmost", $pattern.Current.IsTopmost)
190
+ }
191
+
192
+ if ($element.TryGetCurrentPattern([TransformPattern]::Pattern, [ref]$pattern)) {
193
+ $newXmlElement.SetAttribute("CanRotate", $pattern.Current.CanRotate)
194
+ $newXmlElement.SetAttribute("CanResize", $pattern.Current.CanResize)
195
+ $newXmlElement.SetAttribute("CanMove", $pattern.Current.CanMove)
196
+ }
197
+
198
+ # TODO: more to be added depending on the available patterns
199
+
200
+ if ($null -eq $xmlElement) {
201
+ $xmlElement = $xmlDoc.AppendChild($newXmlElement)
202
+ } else {
203
+ $xmlElement = $xmlElement.AppendChild($newXmlElement)
204
+ }
205
+
206
+ # TreeWalker Traversal
207
+ $walker = [System.Windows.Automation.TreeWalker]::new($cacheRequest.TreeFilter)
208
+ $child = $walker.GetFirstChild($element)
209
+
210
+ while ($null -ne $child) {
211
+ Get-PageSource $child $xmlDoc $newXmlElement | Out-Null
212
+ $child = $walker.GetNextSibling($child)
213
+ }
214
+
215
+ } catch {
216
+ # noop - element likely unavailable
217
+ }
218
+
219
+ return $xmlElement
220
+ }
195
221
  `;
196
222
  //# sourceMappingURL=functions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../lib/commands/functions.ts"],"names":[],"mappings":";;;AAAA,8CAAqC;AAExB,QAAA,yBAAyB,GAAG,IAAA,iBAAI,CAAC,SAAS,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEvD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,iBAAI,CAAC,SAAS,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHzC,CAAC"}
1
+ {"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../lib/commands/functions.ts"],"names":[],"mappings":";;;AAAA,8CAAqC;AAExB,QAAA,yBAAyB,GAAG,IAAA,iBAAI,CAAC,SAAS,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFvD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,iBAAI,CAAC,SAAS,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8HzC,CAAC"}
@@ -37,11 +37,11 @@ declare const commands: {
37
37
  patternRestore(this: import("../driver").NovaWindows2Driver, element: import("@appium/types").Element): Promise<void>;
38
38
  patternClose(this: import("../driver").NovaWindows2Driver, element: import("@appium/types").Element): Promise<void>;
39
39
  focusElement(this: import("../driver").NovaWindows2Driver, element: import("@appium/types").Element): Promise<void>;
40
- getClipboardBase64(this: import("../driver").NovaWindows2Driver, contentType?: ("image" | "plaintext") | {
41
- contentType?: "image" | "plaintext";
40
+ getClipboardBase64(this: import("../driver").NovaWindows2Driver, contentType?: ("plaintext" | "image") | {
41
+ contentType?: "plaintext" | "image";
42
42
  }): Promise<string>;
43
43
  setClipboardFromBase64(this: import("../driver").NovaWindows2Driver, args: {
44
- contentType?: "image" | "plaintext";
44
+ contentType?: "plaintext" | "image";
45
45
  b64Content: string;
46
46
  }): Promise<string>;
47
47
  executePowerShellScript(this: import("../driver").NovaWindows2Driver, script: string | {
@@ -97,6 +97,9 @@ declare const commands: {
97
97
  process: string;
98
98
  }): Promise<void>;
99
99
  getAttributes(this: import("../driver").NovaWindows2Driver, arg: any): Promise<string>;
100
+ typeDelay(this: import("../driver").NovaWindows2Driver, args: {
101
+ delay: number | string;
102
+ } | string | number | undefined): Promise<void>;
100
103
  getProperty(this: import("../driver").NovaWindows2Driver, propertyName: string, elementId: string): Promise<string>;
101
104
  getAttribute(this: import("../driver").NovaWindows2Driver, propertyName: string, elementId: string): Promise<string>;
102
105
  active(this: import("../driver").NovaWindows2Driver): Promise<import("@appium/types").Element>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/commands/index.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAoBo9d,CAAC;;;mBAAwqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;iBAAkhH,CAAC;SAAe,CAAC;SAAe,CAAC;cAAoB,CAAC;oBAA6B,CAAC;kBAA8G,CAAC;aAAmB,CAAC;yBAA+B,CAAC;;;sBAAmtG,CAAC;cAAoB,CAAC;cAAoB,CAAC;oBAA0B,CAAC;YAAkB,CAAC;YAAkB,CAAC;oBAA0B,CAAC;kBAA2F,CAAC;;;iBAA0yH,CAAC;SAAe,CAAC;SAAe,CAAC;cAAoB,CAAC;cAAoB,CAAC;oBAA0B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAV1t1B,CAAC;AAEF,KAAK,QAAQ,GAAG;KACX,GAAG,IAAI,MAAM,OAAO,QAAQ,GAAG,OAAO,QAAQ,CAAC,GAAG,CAAC;CACvD,CAAC;AAEF,OAAO,QAAQ,WAAW,CAAC;IACvB,UAAU,kBAAmB,SAAQ,QAAQ;KAAI;CACpD;AAED,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/commands/index.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAoBize,CAAC;;;mBAAurB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;iBAAknH,CAAC;SAAgB,CAAC;SAAgB,CAAC;cAAqB,CAAC;oBAA8B,CAAC;kBAA+G,CAAC;aAAoB,CAAC;yBAAgC,CAAC;;;sBAAgzG,CAAC;cAAqB,CAAC;cAAqB,CAAC;oBAA2B,CAAC;YAAmB,CAAC;YAAmB,CAAC;oBAA2B,CAAC;kBAA4F,CAAC;;;iBAA04H,CAAC;SAAgB,CAAC;SAAgB,CAAC;cAAqB,CAAC;cAAqB,CAAC;oBAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAVt32B,CAAC;AAEF,KAAK,QAAQ,GAAG;KACX,GAAG,IAAI,MAAM,OAAO,QAAQ,GAAG,OAAO,QAAQ,CAAC,GAAG,CAAC;CACvD,CAAC;AAEF,OAAO,QAAQ,WAAW,CAAC;IACvB,UAAU,kBAAmB,SAAQ,QAAQ;KAAI;CACpD;AAED,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"powershell.d.ts","sourceRoot":"","sources":["../../../lib/commands/powershell.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAwM/C,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiFpF;AAED,wBAAsB,6BAA6B,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAyC9G;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmBtG;AAED,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6BxF"}
1
+ {"version":3,"file":"powershell.d.ts","sourceRoot":"","sources":["../../../lib/commands/powershell.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAgJ/C,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAuFpF;AAED,wBAAsB,6BAA6B,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAyC9G;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAuBtG;AAED,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiCxF"}