appium-novawindows2-driver 1.1.21 → 1.1.22
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.
- package/LICENSE +201 -201
- package/README.md +716 -716
- package/build/lib/commands/app.js +14 -14
- package/build/lib/commands/extension.js +14 -14
- package/build/lib/commands/file.js +26 -26
- package/build/lib/commands/functions.js +380 -380
- package/build/lib/commands/index.d.ts +3 -3
- package/build/lib/commands/index.d.ts.map +1 -1
- package/build/lib/driver.js +9 -9
- package/build/lib/powershell/elements.js +544 -544
- package/build/lib/powershell/win32.js +807 -807
- package/package.json +86 -85
|
@@ -60,11 +60,11 @@ declare const commands: {
|
|
|
60
60
|
patternRestore(this: import("../driver").NovaWindows2Driver, element: import("@appium/types").Element): Promise<void>;
|
|
61
61
|
patternClose(this: import("../driver").NovaWindows2Driver, element: import("@appium/types").Element): Promise<void>;
|
|
62
62
|
focusElement(this: import("../driver").NovaWindows2Driver, element: import("@appium/types").Element): Promise<void>;
|
|
63
|
-
getClipboardBase64(this: import("../driver").NovaWindows2Driver, contentType?: ("
|
|
64
|
-
contentType?: "
|
|
63
|
+
getClipboardBase64(this: import("../driver").NovaWindows2Driver, contentType?: ("image" | "plaintext") | {
|
|
64
|
+
contentType?: "image" | "plaintext";
|
|
65
65
|
}): Promise<string>;
|
|
66
66
|
setClipboardFromBase64(this: import("../driver").NovaWindows2Driver, args: {
|
|
67
|
-
contentType?: "
|
|
67
|
+
contentType?: "image" | "plaintext";
|
|
68
68
|
b64Content: string;
|
|
69
69
|
}): Promise<string>;
|
|
70
70
|
executePowerShellScript(this: import("../driver").NovaWindows2Driver, script: string | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/commands/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAKzC,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAC;AAGpD,QAAA,MAAM,QAAQ;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/commands/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAKzC,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAC;AAGpD,QAAA,MAAM,QAAQ;;;iBAsBkO,CAAC;eAAiB,CAAC;cAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAA6koB,CAAC;;;mBAAwqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;iBAA45H,CAAC;SAAe,CAAC;SAAe,CAAC;cAAoB,CAAC;oBAA6B,CAAC;kBAAqD,CAAC;aAAmB,CAAC;yBAA+B,CAAC;;;sBAAokE,CAAC;cAAoB,CAAC;cAAoB,CAAC;oBAA0B,CAAC;YAAkB,CAAC;YAAkB,CAAC;oBAA0B,CAAC;kBAAqD,CAAC;;;iBAAqsF,CAAC;SAAe,CAAC;SAAe,CAAC;cAAoB,CAAC;cAAoB,CAAC;oBAA0B,CAAC;;;;;;;;;;sBAA2hG,CAAC;cAAoB,CAAC;cAAoB,CAAC;oBAA0B,CAAC;YAAkB,CAAC;YAAkB,CAAC;oBAA0B,CAAC;kBAAqD,CAAC;cAAoB,CAAC;yBAAkC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAVh6iC,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"}
|
package/build/lib/driver.js
CHANGED
|
@@ -210,15 +210,15 @@ class NovaWindows2Driver extends base_driver_1.BaseDriver {
|
|
|
210
210
|
if (this.caps.shouldCloseApp && this.caps.app && this.caps.app.toLowerCase() !== 'root') {
|
|
211
211
|
try {
|
|
212
212
|
if (this.caps['ms:forcequit'] === true) {
|
|
213
|
-
await this.sendPowerShellCommand(/* ps1 */ `
|
|
214
|
-
if ($null -ne $rootElement) {
|
|
215
|
-
try {
|
|
216
|
-
$processId = $rootElement.Current.ProcessId
|
|
217
|
-
if ($processId -gt 0) {
|
|
218
|
-
Stop-Process -Id $processId -Force -ErrorAction SilentlyContinue
|
|
219
|
-
}
|
|
220
|
-
} catch { }
|
|
221
|
-
}
|
|
213
|
+
await this.sendPowerShellCommand(/* ps1 */ `
|
|
214
|
+
if ($null -ne $rootElement) {
|
|
215
|
+
try {
|
|
216
|
+
$processId = $rootElement.Current.ProcessId
|
|
217
|
+
if ($processId -gt 0) {
|
|
218
|
+
Stop-Process -Id $processId -Force -ErrorAction SilentlyContinue
|
|
219
|
+
}
|
|
220
|
+
} catch { }
|
|
221
|
+
}
|
|
222
222
|
`);
|
|
223
223
|
}
|
|
224
224
|
else {
|