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.
@@ -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?: ("plaintext" | "image") | {
64
- contentType?: "plaintext" | "image";
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?: "plaintext" | "image";
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;;;iBAsByH,CAAC;eAAiB,CAAC;cAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAuppB,CAAC;;;mBAAurB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;iBAAogI,CAAC;SAAgB,CAAC;SAAgB,CAAC;cAAqB,CAAC;oBAA8B,CAAC;kBAAsD,CAAC;aAAoB,CAAC;yBAAgC,CAAC;;;sBAAwoE,CAAC;cAAqB,CAAC;cAAqB,CAAC;oBAA2B,CAAC;YAAmB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hG,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"}
@@ -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 {