@wdio/browserstack-service 9.35.0 → 9.35.2

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.
@@ -34,6 +34,12 @@ declare class _AccessibilityHandler {
34
34
  constructor(_browser: WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser, _capabilities: Capabilities.ResolvedTestrunnerCapabilities, _options: BrowserstackConfig & BrowserstackOptions, isAppAutomate: boolean, _config: Options.Testrunner, _framework?: string | undefined, _accessibilityAutomation?: boolean | string, _turboscale?: boolean | string, _accessibilityOpts?: AccessibilityOptions);
35
35
  setSuiteFile(filename: string): void;
36
36
  _getCapabilityValue(caps: Capabilities.ResolvedTestrunnerCapabilities, capType: string, legacyCapType: string): unknown;
37
+ /**
38
+ * A reload replaces the session id under a driver object that otherwise carries on
39
+ * unchanged. `_sessionId` is captured once in `before()`, so without this every later
40
+ * scan-gate lookup and every results call keeps addressing the session that already ended.
41
+ */
42
+ onSessionReload(oldSessionId: string, newSessionId: string): void;
37
43
  before(sessionId: string): Promise<void>;
38
44
  beforeTest(suiteTitle: string | undefined, test: Frameworks.Test): Promise<void>;
39
45
  afterTest(suiteTitle: string | undefined, test: Frameworks.Test): Promise<void>;