@wdio/browserstack-service 9.29.1 → 9.30.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.
Files changed (175) hide show
  1. package/build/Percy/Percy-Handler.d.ts +0 -1
  2. package/build/Percy/Percy.d.ts +0 -1
  3. package/build/Percy/PercyBinary.d.ts +0 -1
  4. package/build/Percy/PercyCaptureMap.d.ts +0 -1
  5. package/build/Percy/PercyHelper.d.ts +0 -1
  6. package/build/Percy/PercyLogger.d.ts +0 -1
  7. package/build/Percy/PercySDK.d.ts +0 -1
  8. package/build/accessibility-handler.d.ts +22 -1
  9. package/build/ai-handler.d.ts +0 -1
  10. package/build/bstackLogger.d.ts +0 -1
  11. package/build/cleanup.d.ts +0 -1
  12. package/build/cleanup.js +260 -202
  13. package/build/cli/apiUtils.d.ts +0 -1
  14. package/build/cli/cliLogger.d.ts +0 -1
  15. package/build/cli/cliUtils.d.ts +0 -8
  16. package/build/cli/eventDispatcher.d.ts +0 -1
  17. package/build/cli/frameworks/automationFramework.d.ts +0 -1
  18. package/build/cli/frameworks/constants/automationFrameworkConstants.d.ts +0 -1
  19. package/build/cli/frameworks/constants/testFrameworkConstants.d.ts +0 -1
  20. package/build/cli/frameworks/testFramework.d.ts +0 -1
  21. package/build/cli/frameworks/wdioAutomationFramework.d.ts +0 -1
  22. package/build/cli/frameworks/wdioMochaTestFramework.d.ts +0 -1
  23. package/build/cli/grpcClient.d.ts +2 -3
  24. package/build/cli/index.d.ts +2 -2
  25. package/build/cli/instances/automationFrameworkInstance.d.ts +0 -1
  26. package/build/cli/instances/testFrameworkInstance.d.ts +0 -1
  27. package/build/cli/instances/trackedContext.d.ts +0 -1
  28. package/build/cli/instances/trackedInstance.d.ts +0 -1
  29. package/build/cli/modules/accessibilityModule.d.ts +2 -2
  30. package/build/cli/modules/automateModule.d.ts +0 -1
  31. package/build/cli/modules/baseModule.d.ts +1 -2
  32. package/build/cli/modules/customTagsModule.d.ts +0 -1
  33. package/build/cli/modules/observabilityModule.d.ts +0 -1
  34. package/build/cli/modules/percyModule.d.ts +0 -1
  35. package/build/cli/modules/testHubModule.d.ts +0 -1
  36. package/build/cli/modules/webdriverIOModule.d.ts +0 -1
  37. package/build/cli/states/automationFrameworkState.d.ts +0 -1
  38. package/build/cli/states/hookState.d.ts +0 -1
  39. package/build/cli/states/testFrameworkState.d.ts +0 -1
  40. package/build/config.d.ts +2 -3
  41. package/build/constants.d.ts +2 -12
  42. package/build/crash-reporter.d.ts +0 -1
  43. package/build/cucumber-types.d.ts +0 -1
  44. package/build/custom-tags-handler.d.ts +0 -1
  45. package/build/customTags.d.ts +0 -1
  46. package/build/data-store.d.ts +0 -1
  47. package/build/exitHandler.d.ts +0 -1
  48. package/build/fetchWrapper.d.ts +2 -19
  49. package/build/fileStream.d.ts +0 -1
  50. package/build/grpc/generated/sdk-messages-accessibility.d.ts +75 -0
  51. package/build/grpc/generated/sdk-messages-ai.d.ts +51 -0
  52. package/build/grpc/generated/sdk-messages-observability.d.ts +43 -0
  53. package/build/grpc/generated/sdk-messages-percy.d.ts +15 -0
  54. package/build/grpc/generated/sdk-messages-testhub.d.ts +15 -0
  55. package/build/grpc/generated/sdk-messages.d.ts +287 -0
  56. package/build/grpc/generated/sdk.d.ts +281 -0
  57. package/build/grpc/index.d.ts +42 -0
  58. package/build/index.d.ts +7 -1
  59. package/build/index.js +7106 -995
  60. package/build/insights-handler.d.ts +2 -1
  61. package/build/instrumentation/funnelInstrumentation.d.ts +0 -1
  62. package/build/instrumentation/performance/constants.d.ts +0 -1
  63. package/build/instrumentation/performance/performance-tester.d.ts +0 -1
  64. package/build/launcher.d.ts +0 -1
  65. package/build/log4jsAppender.d.ts +0 -1
  66. package/build/logPatcher.d.ts +0 -1
  67. package/build/logReportingAPI.d.ts +0 -1
  68. package/build/module-hook-tracker.d.ts +0 -1
  69. package/build/reporter.d.ts +0 -1
  70. package/build/request-handler.d.ts +0 -1
  71. package/build/scripts/accessibility-scripts.d.ts +0 -1
  72. package/build/service.d.ts +0 -1
  73. package/build/testHub/utils.d.ts +0 -1
  74. package/build/testOps/featureStats.d.ts +0 -1
  75. package/build/testOps/featureUsage.d.ts +0 -1
  76. package/build/testOps/listener.d.ts +0 -1
  77. package/build/testOps/openRunsJournal.d.ts +6 -0
  78. package/build/testOps/requestUtils.d.ts +0 -1
  79. package/build/testOps/testOpsConfig.d.ts +0 -1
  80. package/build/testOps/usageStats.d.ts +0 -1
  81. package/build/testorchestration/apply-orchestration.d.ts +0 -1
  82. package/build/testorchestration/helpers.d.ts +0 -1
  83. package/build/testorchestration/request-utils.d.ts +0 -1
  84. package/build/testorchestration/test-ordering-server.d.ts +0 -1
  85. package/build/testorchestration/testorcherstrationhandler.d.ts +0 -1
  86. package/build/testorchestration/testorcherstrationutils.d.ts +0 -1
  87. package/build/types.d.ts +0 -8
  88. package/build/util.d.ts +11 -2
  89. package/package.json +43 -15
  90. package/src/proto/browserstack/sdk/v1/sdk-messages-accessibility.proto +71 -0
  91. package/src/proto/browserstack/sdk/v1/sdk-messages-ai.proto +48 -0
  92. package/src/proto/browserstack/sdk/v1/sdk-messages-observability.proto +39 -0
  93. package/src/proto/browserstack/sdk/v1/sdk-messages-percy.proto +10 -0
  94. package/src/proto/browserstack/sdk/v1/sdk-messages-testhub.proto +10 -0
  95. package/src/proto/browserstack/sdk/v1/sdk-messages.proto +276 -0
  96. package/src/proto/browserstack/sdk/v1/sdk.proto +41 -0
  97. package/build/Percy/Percy-Handler.d.ts.map +0 -1
  98. package/build/Percy/Percy.d.ts.map +0 -1
  99. package/build/Percy/PercyBinary.d.ts.map +0 -1
  100. package/build/Percy/PercyCaptureMap.d.ts.map +0 -1
  101. package/build/Percy/PercyHelper.d.ts.map +0 -1
  102. package/build/Percy/PercyLogger.d.ts.map +0 -1
  103. package/build/Percy/PercySDK.d.ts.map +0 -1
  104. package/build/accessibility-handler.d.ts.map +0 -1
  105. package/build/ai-handler.d.ts.map +0 -1
  106. package/build/bstackLogger.d.ts.map +0 -1
  107. package/build/caCert.d.ts +0 -7
  108. package/build/caCert.d.ts.map +0 -1
  109. package/build/cleanup.d.ts.map +0 -1
  110. package/build/cli/apiUtils.d.ts.map +0 -1
  111. package/build/cli/cliLogger.d.ts.map +0 -1
  112. package/build/cli/cliUtils.d.ts.map +0 -1
  113. package/build/cli/eventDispatcher.d.ts.map +0 -1
  114. package/build/cli/frameworks/automationFramework.d.ts.map +0 -1
  115. package/build/cli/frameworks/constants/automationFrameworkConstants.d.ts.map +0 -1
  116. package/build/cli/frameworks/constants/testFrameworkConstants.d.ts.map +0 -1
  117. package/build/cli/frameworks/testFramework.d.ts.map +0 -1
  118. package/build/cli/frameworks/wdioAutomationFramework.d.ts.map +0 -1
  119. package/build/cli/frameworks/wdioMochaTestFramework.d.ts.map +0 -1
  120. package/build/cli/grpcClient.d.ts.map +0 -1
  121. package/build/cli/index.d.ts.map +0 -1
  122. package/build/cli/instances/automationFrameworkInstance.d.ts.map +0 -1
  123. package/build/cli/instances/testFrameworkInstance.d.ts.map +0 -1
  124. package/build/cli/instances/trackedContext.d.ts.map +0 -1
  125. package/build/cli/instances/trackedInstance.d.ts.map +0 -1
  126. package/build/cli/modules/accessibilityModule.d.ts.map +0 -1
  127. package/build/cli/modules/automateModule.d.ts.map +0 -1
  128. package/build/cli/modules/baseModule.d.ts.map +0 -1
  129. package/build/cli/modules/customTagsModule.d.ts.map +0 -1
  130. package/build/cli/modules/observabilityModule.d.ts.map +0 -1
  131. package/build/cli/modules/percyModule.d.ts.map +0 -1
  132. package/build/cli/modules/testHubModule.d.ts.map +0 -1
  133. package/build/cli/modules/webdriverIOModule.d.ts.map +0 -1
  134. package/build/cli/states/automationFrameworkState.d.ts.map +0 -1
  135. package/build/cli/states/hookState.d.ts.map +0 -1
  136. package/build/cli/states/testFrameworkState.d.ts.map +0 -1
  137. package/build/config.d.ts.map +0 -1
  138. package/build/constants.d.ts.map +0 -1
  139. package/build/crash-reporter.d.ts.map +0 -1
  140. package/build/cucumber-types.d.ts.map +0 -1
  141. package/build/custom-tags-handler.d.ts.map +0 -1
  142. package/build/customTags.d.ts.map +0 -1
  143. package/build/data-store.d.ts.map +0 -1
  144. package/build/exitHandler.d.ts.map +0 -1
  145. package/build/fetchWrapper.d.ts.map +0 -1
  146. package/build/fileStream.d.ts.map +0 -1
  147. package/build/index.d.ts.map +0 -1
  148. package/build/insights-handler.d.ts.map +0 -1
  149. package/build/instrumentation/funnelInstrumentation.d.ts.map +0 -1
  150. package/build/instrumentation/performance/constants.d.ts.map +0 -1
  151. package/build/instrumentation/performance/performance-tester.d.ts.map +0 -1
  152. package/build/launcher.d.ts.map +0 -1
  153. package/build/log4jsAppender.d.ts.map +0 -1
  154. package/build/logPatcher.d.ts.map +0 -1
  155. package/build/logReportingAPI.d.ts.map +0 -1
  156. package/build/module-hook-tracker.d.ts.map +0 -1
  157. package/build/reporter.d.ts.map +0 -1
  158. package/build/request-handler.d.ts.map +0 -1
  159. package/build/scripts/accessibility-scripts.d.ts.map +0 -1
  160. package/build/service.d.ts.map +0 -1
  161. package/build/testHub/utils.d.ts.map +0 -1
  162. package/build/testOps/featureStats.d.ts.map +0 -1
  163. package/build/testOps/featureUsage.d.ts.map +0 -1
  164. package/build/testOps/listener.d.ts.map +0 -1
  165. package/build/testOps/requestUtils.d.ts.map +0 -1
  166. package/build/testOps/testOpsConfig.d.ts.map +0 -1
  167. package/build/testOps/usageStats.d.ts.map +0 -1
  168. package/build/testorchestration/apply-orchestration.d.ts.map +0 -1
  169. package/build/testorchestration/helpers.d.ts.map +0 -1
  170. package/build/testorchestration/request-utils.d.ts.map +0 -1
  171. package/build/testorchestration/test-ordering-server.d.ts.map +0 -1
  172. package/build/testorchestration/testorcherstrationhandler.d.ts.map +0 -1
  173. package/build/testorchestration/testorcherstrationutils.d.ts.map +0 -1
  174. package/build/types.d.ts.map +0 -1
  175. package/build/util.d.ts.map +0 -1
@@ -28,4 +28,3 @@ declare class _PercyHandler {
28
28
  declare const PercyHandler: typeof _PercyHandler;
29
29
  type PercyHandler = _PercyHandler;
30
30
  export default PercyHandler;
31
- //# sourceMappingURL=Percy-Handler.d.ts.map
@@ -16,4 +16,3 @@ declare class Percy {
16
16
  createPercyConfig(): Promise<unknown>;
17
17
  }
18
18
  export default Percy;
19
- //# sourceMappingURL=Percy.d.ts.map
@@ -6,4 +6,3 @@ declare class PercyBinary {
6
6
  download(destParentDir: string, response?: Response): Promise<string>;
7
7
  }
8
8
  export default PercyBinary;
9
- //# sourceMappingURL=PercyBinary.d.ts.map
@@ -6,4 +6,3 @@ declare class PercyCaptureMap {
6
6
  get(sessionName: string, eventName: string): number;
7
7
  }
8
8
  export default PercyCaptureMap;
9
- //# sourceMappingURL=PercyCaptureMap.d.ts.map
@@ -5,4 +5,3 @@ import Percy from './Percy.js';
5
5
  export declare const startPercy: (options: BrowserstackConfig & Options.Testrunner, config: Options.Testrunner, bsConfig: UserConfig) => Promise<Percy | undefined>;
6
6
  export declare const stopPercy: (percy: Percy) => Promise<unknown>;
7
7
  export declare const getBestPlatformForPercySnapshot: (capabilities?: Capabilities.TestrunnerCapabilities) => WebdriverIO.Capabilities | null | undefined;
8
- //# sourceMappingURL=PercyHelper.d.ts.map
@@ -12,4 +12,3 @@ export declare class PercyLogger {
12
12
  static clearLogger(): void;
13
13
  static clearLogFile(): void;
14
14
  }
15
- //# sourceMappingURL=PercyLogger.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare const snapshot: (...args: unknown[]) => void;
2
2
  export declare const screenshot: (...args: unknown[]) => Promise<void>;
3
3
  export declare const screenshotApp: (...args: unknown[]) => Promise<void>;
4
- //# sourceMappingURL=PercySDK.d.ts.map
@@ -41,9 +41,30 @@ declare class _AccessibilityHandler {
41
41
  private shouldRunTestHooks;
42
42
  private checkIfPageOpened;
43
43
  private static shouldPatchExecuteScript;
44
+ /**
45
+ * SDK-5047: Window/context-management commands whose surrounding injected
46
+ * accessibility scan (a browser.execute) races the WebdriverIO v9 core
47
+ * ContextManager while it (re)binds the browsing context during
48
+ * session-start window churn on BiDi sessions (e.g. Chrome), surfacing
49
+ * "no such window: target window already closed / web view not found".
50
+ */
51
+ private static readonly BIDI_WINDOW_CONTEXT_COMMANDS;
52
+ /**
53
+ * BiDi detection that also covers MultiRemote: the aggregate multiremote
54
+ * object does not expose `isBidi` itself — the flag lives on each child
55
+ * instance — so the session counts as BiDi when the top-level flag is set
56
+ * OR any multiremote child instance reports `isBidi`.
57
+ */
58
+ private static isBidiSession;
59
+ /**
60
+ * Returns true when the injected pre-command accessibility scan must be
61
+ * skipped: only on BiDi sessions, and only for window/context-management
62
+ * commands. Non-BiDi sessions and all other commands are unaffected and
63
+ * keep scanning exactly as before.
64
+ */
65
+ private static shouldSkipScanForBidiWindowCommand;
44
66
  private _setAnnotation;
45
67
  }
46
68
  declare const AccessibilityHandler: typeof _AccessibilityHandler;
47
69
  type AccessibilityHandler = _AccessibilityHandler;
48
70
  export default AccessibilityHandler;
49
- //# sourceMappingURL=accessibility-handler.d.ts.map
@@ -24,4 +24,3 @@ declare class AiHandler {
24
24
  }
25
25
  declare const _default: AiHandler;
26
26
  export default _default;
27
- //# sourceMappingURL=ai-handler.d.ts.map
@@ -14,4 +14,3 @@ export declare class BStackLogger {
14
14
  static clearLogFile(): void;
15
15
  static ensureLogsFolder(): void;
16
16
  }
17
- //# sourceMappingURL=bstackLogger.d.ts.map
@@ -7,4 +7,3 @@ export default class BStackCleanup {
7
7
  static getFunnelDataFromFile(filePath: string): any;
8
8
  static removeFunnelDataFile(filePath?: string): void;
9
9
  }
10
- //# sourceMappingURL=cleanup.d.ts.map