diff --git a/clone-testplane.js b/clone-testplane.js index 795b33f..8a93cc4 100644 --- a/clone-testplane.js +++ b/clone-testplane.js @@ -14,8 +14,8 @@ if (fs.existsSync(tempDir)) { if (LOCAL) { // Create a symlink to the local repo - fs.symlinkSync(LOCAL_REPO_DIR, tempDir, 'dir'); - console.log(`Linked local testplane repo from ${LOCAL_REPO_DIR} to ${tempDir}`); + execSync(`cp -r ${LOCAL_REPO_DIR}/. ${tempDir}`); + console.log(`Copied local testplane repo from ${LOCAL_REPO_DIR} to ${tempDir}`); } else { fs.mkdirSync(tempDir); diff --git a/docs/api-reference/README.mdx b/docs/api-reference/README.mdx index bbdb385..c4ca31b 100644 --- a/docs/api-reference/README.mdx +++ b/docs/api-reference/README.mdx @@ -59,7 +59,6 @@ | [TestResult](interfaces/TestResult.mdx) | - | | [TestResultWithRetries](interfaces/TestResultWithRetries.mdx) | - | | [TestplaneCtx](interfaces/TestplaneCtx.mdx) | - | -| [WdioBrowser](interfaces/WdioBrowser.mdx) | - | ## Type Aliases @@ -73,9 +72,3 @@ | [MasterEventHandler](type-aliases/MasterEventHandler.mdx) | - | | [SyncSessionEventCallback](type-aliases/SyncSessionEventCallback.mdx) | - | | [WorkerEventHandler](type-aliases/WorkerEventHandler.mdx) | - | - -## Variables - -| Variable | Description | -| ------ | ------ | -| [Key](variables/Key.mdx) | - | diff --git a/docs/api-reference/classes/AbortOnReconnectError.mdx b/docs/api-reference/classes/AbortOnReconnectError.mdx index 401b43d..cf086cd 100644 --- a/docs/api-reference/classes/AbortOnReconnectError.mdx +++ b/docs/api-reference/classes/AbortOnReconnectError.mdx @@ -24,43 +24,12 @@ new AbortOnReconnectError(): AbortOnReconnectError #### Defined in -testplane-docs/.testplane/src/errors/abort-on-reconnect-error.ts:2 +[.testplane/src/errors/abort-on-reconnect-error.ts:2](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors/abort-on-reconnect-error.ts#L2) ## Properties -| Property | Modifier | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | - | `Error.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `public` | `string` | - | `Error.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `stack?` | `public` | `string` | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Type | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | +| `message` | `string` | `Error.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `string` | `Error.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `stack?` | `string` | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/docs/api-reference/classes/AssertViewError.mdx b/docs/api-reference/classes/AssertViewError.mdx index 61953ce..caf7a2d 100644 --- a/docs/api-reference/classes/AssertViewError.mdx +++ b/docs/api-reference/classes/AssertViewError.mdx @@ -30,43 +30,12 @@ new AssertViewError(message): AssertViewError #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/assert-view-error.ts:2 +[.testplane/src/browser/commands/assert-view/errors/assert-view-error.ts:2](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/assert-view-error.ts#L2) ## Properties -| Property | Modifier | Type | Default value | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | `"image comparison failed"` | - | `Error.message` | testplane-docs/.testplane/src/browser/commands/assert-view/errors/assert-view-error.ts:2 | -| `name` | `public` | `string` | `undefined` | - | `Error.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `stack?` | `public` | `string` | `undefined` | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | `undefined` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | `undefined` | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Modifier | Type | Default value | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | ------ | ------ | +| `message` | `public` | `string` | `"image comparison failed"` | `Error.message` | [.testplane/src/browser/commands/assert-view/errors/assert-view-error.ts:2](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/assert-view-error.ts#L2) | +| `name` | `public` | `string` | `undefined` | `Error.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `stack?` | `public` | `string` | `undefined` | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/docs/api-reference/classes/CancelledError.mdx b/docs/api-reference/classes/CancelledError.mdx index 63af97f..f3fb06a 100644 --- a/docs/api-reference/classes/CancelledError.mdx +++ b/docs/api-reference/classes/CancelledError.mdx @@ -24,43 +24,12 @@ new CancelledError(): CancelledError #### Defined in -testplane-docs/.testplane/src/browser-pool/cancelled-error.ts:5 +[.testplane/src/browser-pool/cancelled-error.ts:5](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser-pool/cancelled-error.ts#L5) ## Properties -| Property | Modifier | Type | Default value | Description | Overrides | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | `"Browser request was cancelled"` | - | `Error.message` | - | testplane-docs/.testplane/src/browser-pool/cancelled-error.ts:3 | -| `name` | `public` | `string` | `"CancelledError"` | - | `Error.name` | - | testplane-docs/.testplane/src/browser-pool/cancelled-error.ts:2 | -| `stack?` | `public` | `string` | `undefined` | - | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | `undefined` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | - | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | `undefined` | - | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Type | Default value | Overrides | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | ------ | ------ | +| `message` | `string` | `"Browser request was cancelled"` | `Error.message` | - | [.testplane/src/browser-pool/cancelled-error.ts:3](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser-pool/cancelled-error.ts#L3) | +| `name` | `string` | `"CancelledError"` | `Error.name` | - | [.testplane/src/browser-pool/cancelled-error.ts:2](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser-pool/cancelled-error.ts#L2) | +| `stack?` | `string` | `undefined` | - | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/docs/api-reference/classes/ClientBridgeError.mdx b/docs/api-reference/classes/ClientBridgeError.mdx index 847e218..832c035 100644 --- a/docs/api-reference/classes/ClientBridgeError.mdx +++ b/docs/api-reference/classes/ClientBridgeError.mdx @@ -30,43 +30,12 @@ new ClientBridgeError(message): ClientBridgeError #### Defined in -testplane-docs/.testplane/src/browser/client-bridge/error.ts:2 +[.testplane/src/browser/client-bridge/error.ts:2](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/client-bridge/error.ts#L2) ## Properties -| Property | Modifier | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | - | `Error.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `public` | `string` | - | `Error.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `stack?` | `public` | `string` | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Type | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | +| `message` | `string` | `Error.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `string` | `Error.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `stack?` | `string` | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/docs/api-reference/classes/Config.mdx b/docs/api-reference/classes/Config.mdx index 1f84ebd..2eb466e 100644 --- a/docs/api-reference/classes/Config.mdx +++ b/docs/api-reference/classes/Config.mdx @@ -26,82 +26,82 @@ new Config(config?): Config #### Defined in -testplane-docs/.testplane/src/config/index.ts:28 +[.testplane/src/config/index.ts:28](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L28) ## Properties | Property | Type | Inherited from | Defined in | | ------ | ------ | ------ | ------ | -| `antialiasingTolerance` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`antialiasingTolerance` | testplane-docs/.testplane/src/config/types.ts:133 | -| `assertViewOpts` | [`AssertViewOptsConfig`](../interfaces/AssertViewOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`assertViewOpts` | testplane-docs/.testplane/src/config/types.ts:136 | -| `automationProtocol` | `"webdriver"` \| `"devtools"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`automationProtocol` | testplane-docs/.testplane/src/config/types.ts:97 | -| `baseUrl` | `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`baseUrl` | testplane-docs/.testplane/src/config/types.ts:104 | -| `browsers` | `Record`\<`string`, `BrowserConfig`\> | - | testplane-docs/.testplane/src/config/types.ts:213 | -| `buildDiffOpts` | [`BuildDiffOptsConfig`](../interfaces/BuildDiffOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`buildDiffOpts` | testplane-docs/.testplane/src/config/types.ts:135 | -| `calibrate` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`calibrate` | testplane-docs/.testplane/src/config/types.ts:127 | -| `compareOpts` | [`CompareOptsConfig`](../interfaces/CompareOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`compareOpts` | testplane-docs/.testplane/src/config/types.ts:134 | -| `compositeImage` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`compositeImage` | testplane-docs/.testplane/src/config/types.ts:128 | -| `configPath` | `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`configPath` | testplane-docs/.testplane/src/config/index.ts:10 | -| `desiredCapabilities` | `null` \| `Capabilities` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`desiredCapabilities` | testplane-docs/.testplane/src/config/types.ts:98 | -| `devServer` | \{ `args`: `string`[]; `command`: `null` \| `string`; `cwd`: `null` \| `string`; `env`: `Record`\<`string`, `string`\>; `logs`: `boolean`; `readinessProbe`: `ReadinessProbe`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`devServer` | testplane-docs/.testplane/src/config/types.ts:170 | -| `devServer.args` | `string`[] | - | testplane-docs/.testplane/src/config/types.ts:174 | -| `devServer.command` | `null` \| `string` | - | testplane-docs/.testplane/src/config/types.ts:171 | -| `devServer.cwd` | `null` \| `string` | - | testplane-docs/.testplane/src/config/types.ts:172 | -| `devServer.env` | `Record`\<`string`, `string`\> | - | testplane-docs/.testplane/src/config/types.ts:173 | -| `devServer.logs` | `boolean` | - | testplane-docs/.testplane/src/config/types.ts:175 | -| `devServer.readinessProbe` | `ReadinessProbe` | - | testplane-docs/.testplane/src/config/types.ts:176 | -| `expectOpts` | [`ExpectOptsConfig`](../interfaces/ExpectOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`expectOpts` | testplane-docs/.testplane/src/config/types.ts:137 | -| `gridUrl` | `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`gridUrl` | testplane-docs/.testplane/src/config/types.ts:103 | -| `headers` | `null` \| `Record`\<`string`, `string`\> | [`CommonConfig`](../interfaces/CommonConfig.mdx).`headers` | testplane-docs/.testplane/src/config/types.ts:142 | -| `headless` | `null` \| `boolean` \| `"old"` \| `"new"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`headless` | testplane-docs/.testplane/src/config/types.ts:153 | -| `httpTimeout` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`httpTimeout` | testplane-docs/.testplane/src/config/types.ts:109 | -| `isolation` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`isolation` | testplane-docs/.testplane/src/config/types.ts:154 | -| `key` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`key` | testplane-docs/.testplane/src/config/types.ts:149 | -| `lastFailed` | \{ `input`: `string` \| `string`[]; `only`: `boolean`; `output`: `string`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`lastFailed` | testplane-docs/.testplane/src/config/types.ts:156 | -| `lastFailed.input` | `string` \| `string`[] | - | testplane-docs/.testplane/src/config/types.ts:158 | -| `lastFailed.only` | `boolean` | - | testplane-docs/.testplane/src/config/types.ts:157 | -| `lastFailed.output` | `string` | - | testplane-docs/.testplane/src/config/types.ts:159 | -| `meta` | \{\} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`meta` | testplane-docs/.testplane/src/config/types.ts:138 | -| `openAndWaitOpts` | \{ `failOnNetworkError`: `boolean`; `ignoreNetworkErrorsPatterns`: (`string` \| `RegExp`)[]; `timeout`: `number`; `waitNetworkIdle`: `boolean`; `waitNetworkIdleTimeout`: `number`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`openAndWaitOpts` | testplane-docs/.testplane/src/config/types.ts:162 | -| `openAndWaitOpts.failOnNetworkError` | `boolean` | - | testplane-docs/.testplane/src/config/types.ts:166 | -| `openAndWaitOpts.ignoreNetworkErrorsPatterns` | (`string` \| `RegExp`)[] | - | testplane-docs/.testplane/src/config/types.ts:167 | -| `openAndWaitOpts.timeout?` | `number` | - | testplane-docs/.testplane/src/config/types.ts:163 | -| `openAndWaitOpts.waitNetworkIdle` | `boolean` | - | testplane-docs/.testplane/src/config/types.ts:164 | -| `openAndWaitOpts.waitNetworkIdleTimeout` | `number` | - | testplane-docs/.testplane/src/config/types.ts:165 | -| `orientation` | `null` \| `"landscape"` \| `"portrait"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`orientation` | testplane-docs/.testplane/src/config/types.ts:140 | -| `pageLoadTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`pageLoadTimeout` | testplane-docs/.testplane/src/config/types.ts:111 | -| `plugins` | `Record`\<`string`, `Record`\<`string`, `unknown`\>\> | - | testplane-docs/.testplane/src/config/types.ts:214 | -| `prepareEnvironment?` | () => `null` \| `void` | - | testplane-docs/.testplane/src/config/types.ts:216 | -| `region` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`region` | testplane-docs/.testplane/src/config/types.ts:150 | -| `resetCursor` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`resetCursor` | testplane-docs/.testplane/src/config/types.ts:141 | -| `retry` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`retry` | testplane-docs/.testplane/src/config/types.ts:107 | -| `saveHistoryMode` | `"all"` \| `"none"` \| `"onlyFailed"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`saveHistoryMode` | testplane-docs/.testplane/src/config/types.ts:117 | -| `screenshotDelay` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`screenshotDelay` | testplane-docs/.testplane/src/config/types.ts:131 | -| `screenshotMode` | `"auto"` \| `"fullpage"` \| `"viewport"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`screenshotMode` | testplane-docs/.testplane/src/config/types.ts:130 | -| `screenshotPath` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`screenshotPath` | testplane-docs/.testplane/src/config/types.ts:125 | -| `sessionEnvFlags` | `Record`\< \| `"isW3C"` \| `"isAndroid"` \| `"isMobile"` \| `"isIOS"` \| `"isSauce"` \| `"isSeleniumStandalone"` \| `"isChrome"`, `boolean`\> | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionEnvFlags` | testplane-docs/.testplane/src/config/types.ts:99 | -| `sessionQuitTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionQuitTimeout` | testplane-docs/.testplane/src/config/types.ts:113 | -| `sessionRequestTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionRequestTimeout` | testplane-docs/.testplane/src/config/types.ts:112 | -| `sessionsPerBrowser` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionsPerBrowser` | testplane-docs/.testplane/src/config/types.ts:105 | -| `sets` | `Record`\<`string`, `SetsConfigParsed`\> | - | testplane-docs/.testplane/src/config/types.ts:215 | -| `strictSSL` | `null` \| `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`strictSSL` | testplane-docs/.testplane/src/config/types.ts:147 | -| `strictTestsOrder` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`strictTestsOrder` | testplane-docs/.testplane/src/config/types.ts:129 | -| `system` | [`SystemConfig`](../interfaces/SystemConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`system` | testplane-docs/.testplane/src/config/types.ts:152 | -| `takeScreenshotOnFails` | \{ `assertViewFail`: `boolean`; `testFail`: `boolean`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`takeScreenshotOnFails` | testplane-docs/.testplane/src/config/types.ts:118 | -| `takeScreenshotOnFails.assertViewFail` | `boolean` | - | testplane-docs/.testplane/src/config/types.ts:120 | -| `takeScreenshotOnFails.testFail` | `boolean` | - | testplane-docs/.testplane/src/config/types.ts:119 | -| `takeScreenshotOnFailsMode` | `"fullpage"` \| `"viewport"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`takeScreenshotOnFailsMode` | testplane-docs/.testplane/src/config/types.ts:123 | -| `takeScreenshotOnFailsTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`takeScreenshotOnFailsTimeout` | testplane-docs/.testplane/src/config/types.ts:122 | -| `testTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`testTimeout` | testplane-docs/.testplane/src/config/types.ts:114 | -| `testsPerSession` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`testsPerSession` | testplane-docs/.testplane/src/config/types.ts:106 | -| `tolerance` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`tolerance` | testplane-docs/.testplane/src/config/types.ts:132 | -| `transformRequest` | (`req`: `RequestOptions`) => `RequestOptions` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`transformRequest` | testplane-docs/.testplane/src/config/types.ts:144 | -| `transformResponse` | (`res`: `Response`, `req`: `RequestOptions`) => `Response` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`transformResponse` | testplane-docs/.testplane/src/config/types.ts:145 | -| `urlHttpTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`urlHttpTimeout` | testplane-docs/.testplane/src/config/types.ts:110 | -| `user` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`user` | testplane-docs/.testplane/src/config/types.ts:148 | -| `waitInterval` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`waitInterval` | testplane-docs/.testplane/src/config/types.ts:116 | -| `waitTimeout` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`waitTimeout` | testplane-docs/.testplane/src/config/types.ts:115 | -| `windowSize` | `null` \| `string` \| \{ `height`: `number`; `width`: `number`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`windowSize` | testplane-docs/.testplane/src/config/types.ts:139 | +| `antialiasingTolerance` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`antialiasingTolerance` | [.testplane/src/config/types.ts:133](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L133) | +| `assertViewOpts` | [`AssertViewOptsConfig`](../interfaces/AssertViewOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`assertViewOpts` | [.testplane/src/config/types.ts:136](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L136) | +| `automationProtocol` | `"webdriver"` \| `"devtools"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`automationProtocol` | [.testplane/src/config/types.ts:97](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L97) | +| `baseUrl` | `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`baseUrl` | [.testplane/src/config/types.ts:104](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L104) | +| `browsers` | `Record`\<`string`, `BrowserConfig`\> | - | [.testplane/src/config/types.ts:213](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L213) | +| `buildDiffOpts` | [`BuildDiffOptsConfig`](../interfaces/BuildDiffOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`buildDiffOpts` | [.testplane/src/config/types.ts:135](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L135) | +| `calibrate` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`calibrate` | [.testplane/src/config/types.ts:127](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L127) | +| `compareOpts` | [`CompareOptsConfig`](../interfaces/CompareOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`compareOpts` | [.testplane/src/config/types.ts:134](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L134) | +| `compositeImage` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`compositeImage` | [.testplane/src/config/types.ts:128](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L128) | +| `configPath` | `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`configPath` | [.testplane/src/config/index.ts:10](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L10) | +| `desiredCapabilities` | `null` \| `Capabilities` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`desiredCapabilities` | [.testplane/src/config/types.ts:98](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L98) | +| `devServer` | \{ `args`: `string`[]; `command`: `null` \| `string`; `cwd`: `null` \| `string`; `env`: `Record`\<`string`, `string`\>; `logs`: `boolean`; `readinessProbe`: `ReadinessProbe`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`devServer` | [.testplane/src/config/types.ts:170](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L170) | +| `devServer.args` | `string`[] | - | [.testplane/src/config/types.ts:174](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L174) | +| `devServer.command` | `null` \| `string` | - | [.testplane/src/config/types.ts:171](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L171) | +| `devServer.cwd` | `null` \| `string` | - | [.testplane/src/config/types.ts:172](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L172) | +| `devServer.env` | `Record`\<`string`, `string`\> | - | [.testplane/src/config/types.ts:173](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L173) | +| `devServer.logs` | `boolean` | - | [.testplane/src/config/types.ts:175](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L175) | +| `devServer.readinessProbe` | `ReadinessProbe` | - | [.testplane/src/config/types.ts:176](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L176) | +| `expectOpts` | [`ExpectOptsConfig`](../interfaces/ExpectOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`expectOpts` | [.testplane/src/config/types.ts:137](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L137) | +| `gridUrl` | `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`gridUrl` | [.testplane/src/config/types.ts:103](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L103) | +| `headers` | `null` \| `Record`\<`string`, `string`\> | [`CommonConfig`](../interfaces/CommonConfig.mdx).`headers` | [.testplane/src/config/types.ts:142](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L142) | +| `headless` | `null` \| `boolean` \| `"old"` \| `"new"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`headless` | [.testplane/src/config/types.ts:153](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L153) | +| `httpTimeout` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`httpTimeout` | [.testplane/src/config/types.ts:109](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L109) | +| `isolation` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`isolation` | [.testplane/src/config/types.ts:154](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L154) | +| `key` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`key` | [.testplane/src/config/types.ts:149](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L149) | +| `lastFailed` | \{ `input`: `string` \| `string`[]; `only`: `boolean`; `output`: `string`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`lastFailed` | [.testplane/src/config/types.ts:156](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L156) | +| `lastFailed.input` | `string` \| `string`[] | - | [.testplane/src/config/types.ts:158](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L158) | +| `lastFailed.only` | `boolean` | - | [.testplane/src/config/types.ts:157](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L157) | +| `lastFailed.output` | `string` | - | [.testplane/src/config/types.ts:159](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L159) | +| `meta` | \{\} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`meta` | [.testplane/src/config/types.ts:138](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L138) | +| `openAndWaitOpts` | \{ `failOnNetworkError`: `boolean`; `ignoreNetworkErrorsPatterns`: (`string` \| `RegExp`)[]; `timeout`: `number`; `waitNetworkIdle`: `boolean`; `waitNetworkIdleTimeout`: `number`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`openAndWaitOpts` | [.testplane/src/config/types.ts:162](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L162) | +| `openAndWaitOpts.failOnNetworkError` | `boolean` | - | [.testplane/src/config/types.ts:166](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L166) | +| `openAndWaitOpts.ignoreNetworkErrorsPatterns` | (`string` \| `RegExp`)[] | - | [.testplane/src/config/types.ts:167](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L167) | +| `openAndWaitOpts.timeout?` | `number` | - | [.testplane/src/config/types.ts:163](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L163) | +| `openAndWaitOpts.waitNetworkIdle` | `boolean` | - | [.testplane/src/config/types.ts:164](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L164) | +| `openAndWaitOpts.waitNetworkIdleTimeout` | `number` | - | [.testplane/src/config/types.ts:165](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L165) | +| `orientation` | `null` \| `"landscape"` \| `"portrait"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`orientation` | [.testplane/src/config/types.ts:140](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L140) | +| `pageLoadTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`pageLoadTimeout` | [.testplane/src/config/types.ts:111](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L111) | +| `plugins` | `Record`\<`string`, `Record`\<`string`, `unknown`\>\> | - | [.testplane/src/config/types.ts:214](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L214) | +| `prepareEnvironment?` | () => `null` \| `void` | - | [.testplane/src/config/types.ts:216](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L216) | +| `region` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`region` | [.testplane/src/config/types.ts:150](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L150) | +| `resetCursor` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`resetCursor` | [.testplane/src/config/types.ts:141](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L141) | +| `retry` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`retry` | [.testplane/src/config/types.ts:107](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L107) | +| `saveHistoryMode` | `"all"` \| `"none"` \| `"onlyFailed"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`saveHistoryMode` | [.testplane/src/config/types.ts:117](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L117) | +| `screenshotDelay` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`screenshotDelay` | [.testplane/src/config/types.ts:131](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L131) | +| `screenshotMode` | `"auto"` \| `"fullpage"` \| `"viewport"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`screenshotMode` | [.testplane/src/config/types.ts:130](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L130) | +| `screenshotPath` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`screenshotPath` | [.testplane/src/config/types.ts:125](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L125) | +| `sessionEnvFlags` | `Record`\< \| `"isW3C"` \| `"isAndroid"` \| `"isMobile"` \| `"isIOS"` \| `"isSauce"` \| `"isSeleniumStandalone"` \| `"isChrome"`, `boolean`\> | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionEnvFlags` | [.testplane/src/config/types.ts:99](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L99) | +| `sessionQuitTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionQuitTimeout` | [.testplane/src/config/types.ts:113](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L113) | +| `sessionRequestTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionRequestTimeout` | [.testplane/src/config/types.ts:112](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L112) | +| `sessionsPerBrowser` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionsPerBrowser` | [.testplane/src/config/types.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L105) | +| `sets` | `Record`\<`string`, `SetsConfigParsed`\> | - | [.testplane/src/config/types.ts:215](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L215) | +| `strictSSL` | `null` \| `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`strictSSL` | [.testplane/src/config/types.ts:147](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L147) | +| `strictTestsOrder` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`strictTestsOrder` | [.testplane/src/config/types.ts:129](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L129) | +| `system` | [`SystemConfig`](../interfaces/SystemConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`system` | [.testplane/src/config/types.ts:152](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L152) | +| `takeScreenshotOnFails` | \{ `assertViewFail`: `boolean`; `testFail`: `boolean`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`takeScreenshotOnFails` | [.testplane/src/config/types.ts:118](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L118) | +| `takeScreenshotOnFails.assertViewFail` | `boolean` | - | [.testplane/src/config/types.ts:120](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L120) | +| `takeScreenshotOnFails.testFail` | `boolean` | - | [.testplane/src/config/types.ts:119](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L119) | +| `takeScreenshotOnFailsMode` | `"fullpage"` \| `"viewport"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`takeScreenshotOnFailsMode` | [.testplane/src/config/types.ts:123](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L123) | +| `takeScreenshotOnFailsTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`takeScreenshotOnFailsTimeout` | [.testplane/src/config/types.ts:122](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L122) | +| `testTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`testTimeout` | [.testplane/src/config/types.ts:114](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L114) | +| `testsPerSession` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`testsPerSession` | [.testplane/src/config/types.ts:106](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L106) | +| `tolerance` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`tolerance` | [.testplane/src/config/types.ts:132](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L132) | +| `transformRequest` | (`req`: `RequestOptions`) => `RequestOptions` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`transformRequest` | [.testplane/src/config/types.ts:144](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L144) | +| `transformResponse` | (`res`: `Response`, `req`: `RequestOptions`) => `Response` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`transformResponse` | [.testplane/src/config/types.ts:145](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L145) | +| `urlHttpTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`urlHttpTimeout` | [.testplane/src/config/types.ts:110](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L110) | +| `user` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`user` | [.testplane/src/config/types.ts:148](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L148) | +| `waitInterval` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`waitInterval` | [.testplane/src/config/types.ts:116](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L116) | +| `waitTimeout` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`waitTimeout` | [.testplane/src/config/types.ts:115](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L115) | +| `windowSize` | `null` \| `string` \| \{ `height`: `number`; `width`: `number`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`windowSize` | [.testplane/src/config/types.ts:139](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L139) | ## Methods @@ -123,7 +123,7 @@ forBrowser(id): BrowserConfig #### Defined in -testplane-docs/.testplane/src/config/index.ts:82 +[.testplane/src/config/index.ts:82](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L82) *** @@ -139,7 +139,7 @@ getBrowserIds(): string[] #### Defined in -testplane-docs/.testplane/src/config/index.ts:86 +[.testplane/src/config/index.ts:86](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L86) *** @@ -164,7 +164,7 @@ in a subrocess with a config from the main process #### Defined in -testplane-docs/.testplane/src/config/index.ts:100 +[.testplane/src/config/index.ts:100](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L100) *** @@ -190,7 +190,7 @@ prepareBrowser(browser): null | void #### Defined in -testplane-docs/.testplane/src/config/types.ts:124 +[.testplane/src/config/types.ts:124](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L124) *** @@ -216,7 +216,7 @@ screenshotsDir(test): string #### Defined in -testplane-docs/.testplane/src/config/types.ts:126 +[.testplane/src/config/types.ts:126](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L126) *** @@ -232,7 +232,7 @@ serialize(): Omit #### Defined in -testplane-docs/.testplane/src/config/index.ts:90 +[.testplane/src/config/index.ts:90](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L90) *** @@ -260,7 +260,7 @@ shouldRetry(testInfo): null | boolean #### Defined in -testplane-docs/.testplane/src/config/types.ts:108 +[.testplane/src/config/types.ts:108](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L108) *** @@ -282,7 +282,7 @@ static create(config?): Config #### Defined in -testplane-docs/.testplane/src/config/index.ts:12 +[.testplane/src/config/index.ts:12](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L12) *** @@ -304,4 +304,4 @@ static read(configPath): unknown #### Defined in -testplane-docs/.testplane/src/config/index.ts:16 +[.testplane/src/config/index.ts:16](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L16) diff --git a/docs/api-reference/classes/CoreError.mdx b/docs/api-reference/classes/CoreError.mdx index 44c3855..1f99c58 100644 --- a/docs/api-reference/classes/CoreError.mdx +++ b/docs/api-reference/classes/CoreError.mdx @@ -30,43 +30,12 @@ new CoreError(message): CoreError #### Defined in -testplane-docs/.testplane/src/browser/core-error.ts:4 +[.testplane/src/browser/core-error.ts:4](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/core-error.ts#L4) ## Properties -| Property | Modifier | Type | Default value | Description | Overrides | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | `undefined` | - | - | `Error.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `public` | `string` | `"CoreError"` | - | `Error.name` | - | testplane-docs/.testplane/src/browser/core-error.ts:2 | -| `stack?` | `public` | `string` | `undefined` | - | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | `undefined` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | - | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | `undefined` | - | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Type | Default value | Overrides | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | ------ | ------ | +| `message` | `string` | `undefined` | - | `Error.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `string` | `"CoreError"` | `Error.name` | - | [.testplane/src/browser/core-error.ts:2](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/core-error.ts#L2) | +| `stack?` | `string` | `undefined` | - | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/docs/api-reference/classes/HeightViewportError.mdx b/docs/api-reference/classes/HeightViewportError.mdx index b88842b..62de104 100644 --- a/docs/api-reference/classes/HeightViewportError.mdx +++ b/docs/api-reference/classes/HeightViewportError.mdx @@ -32,43 +32,12 @@ new HeightViewportError(message): HeightViewportError #### Defined in -testplane-docs/.testplane/src/browser/screen-shooter/viewport/coord-validator/errors/height-viewport-error.ts:5 +[.testplane/src/browser/screen-shooter/viewport/coord-validator/errors/height-viewport-error.ts:5](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/screen-shooter/viewport/coord-validator/errors/height-viewport-error.ts#L5) ## Properties -| Property | Modifier | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | - | `Error.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `public` | `string` | - | `Error.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `stack?` | `public` | `string` | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Type | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | +| `message` | `string` | `Error.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `string` | `Error.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `stack?` | `string` | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/docs/api-reference/classes/ImageDiffError.mdx b/docs/api-reference/classes/ImageDiffError.mdx index c495631..eb429da 100644 --- a/docs/api-reference/classes/ImageDiffError.mdx +++ b/docs/api-reference/classes/ImageDiffError.mdx @@ -38,26 +38,24 @@ new ImageDiffError(__namedParameters): ImageDiffError #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:79 +[.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:79](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L79) ## Properties -| Property | Modifier | Type | Description | Overrides | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | ------ | -| `currImg` | `public` | [`ImageInfo`](../interfaces/ImageInfo.mdx) | - | - | `BaseStateError.currImg` | testplane-docs/.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4 | -| `diffBounds?` | `public` | `CoordBounds` | - | - | - | testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:43 | -| `diffBuffer` | `public` | `Buffer` | - | - | - | testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:45 | -| `diffClusters?` | `public` | `CoordBounds`[] | - | - | - | testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:44 | -| `diffOpts` | `public` | `DiffOptions` | - | - | - | testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:42 | -| `diffRatio` | `public` | `number` | - | - | - | testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:47 | -| `differentPixels` | `public` | `number` | - | - | - | testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:46 | -| `message` | `public` | `string` | - | `BaseStateError.message` | - | testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:41 | -| `name` | `public` | `string` | - | - | `BaseStateError.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `refImg` | `public` | [`RefImageInfo`](../interfaces/RefImageInfo.mdx) | - | - | `BaseStateError.refImg` | testplane-docs/.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4 | -| `stack?` | `public` | `string` | - | - | `BaseStateError.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `stateName` | `public` | `string` | - | - | `BaseStateError.stateName` | testplane-docs/.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | - | `BaseStateError.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | - | - | `BaseStateError.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | +| Property | Modifier | Type | Overrides | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | ------ | ------ | +| `currImg` | `public` | [`ImageInfo`](../interfaces/ImageInfo.mdx) | - | `BaseStateError.currImg` | [.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/base-state-error.ts#L4) | +| `diffBounds?` | `public` | `CoordBounds` | - | - | [.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:43](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L43) | +| `diffBuffer` | `public` | `Buffer` | - | - | [.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L45) | +| `diffClusters?` | `public` | `CoordBounds`[] | - | - | [.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:44](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L44) | +| `diffOpts` | `public` | `DiffOptions` | - | - | [.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:42](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L42) | +| `diffRatio` | `public` | `number` | - | - | [.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:47](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L47) | +| `differentPixels` | `public` | `number` | - | - | [.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:46](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L46) | +| `message` | `public` | `string` | `BaseStateError.message` | - | [.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L41) | +| `name` | `public` | `string` | - | `BaseStateError.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `refImg` | `public` | [`RefImageInfo`](../interfaces/RefImageInfo.mdx) | - | `BaseStateError.refImg` | [.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/base-state-error.ts#L4) | +| `stack?` | `public` | `string` | - | `BaseStateError.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | +| `stateName` | `public` | `string` | - | `BaseStateError.stateName` | [.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/base-state-error.ts#L4) | ## Methods @@ -79,36 +77,7 @@ saveDiffTo(diffPath): Promise #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:109 - -*** - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`BaseStateError.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +[.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:109](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L109) *** @@ -145,7 +114,7 @@ static create(this, __namedParameters): T #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:49 +[.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:49](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L49) *** @@ -174,4 +143,4 @@ static fromObject(this, data): T #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:74 +[.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:74](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L74) diff --git a/docs/api-reference/classes/NoRefImageError.mdx b/docs/api-reference/classes/NoRefImageError.mdx index 2128ed9..b14061f 100644 --- a/docs/api-reference/classes/NoRefImageError.mdx +++ b/docs/api-reference/classes/NoRefImageError.mdx @@ -35,52 +35,21 @@ new NoRefImageError( #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/no-ref-image-error.ts:26 +[.testplane/src/browser/commands/assert-view/errors/no-ref-image-error.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/no-ref-image-error.ts#L26) ## Properties -| Property | Modifier | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | -| `currImg` | `public` | [`ImageInfo`](../interfaces/ImageInfo.mdx) | - | `BaseStateError.currImg` | testplane-docs/.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4 | -| `message` | `public` | `string` | - | `BaseStateError.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `public` | `string` | - | `BaseStateError.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `refImg` | `public` | [`RefImageInfo`](../interfaces/RefImageInfo.mdx) | - | `BaseStateError.refImg` | testplane-docs/.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4 | -| `stack?` | `public` | `string` | - | `BaseStateError.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `stateName` | `public` | `string` | - | `BaseStateError.stateName` | testplane-docs/.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | `BaseStateError.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | - | `BaseStateError.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | +| Property | Modifier | Type | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | ------ | +| `currImg` | `public` | [`ImageInfo`](../interfaces/ImageInfo.mdx) | `BaseStateError.currImg` | [.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/base-state-error.ts#L4) | +| `message` | `public` | `string` | `BaseStateError.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `public` | `string` | `BaseStateError.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `refImg` | `public` | [`RefImageInfo`](../interfaces/RefImageInfo.mdx) | `BaseStateError.refImg` | [.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/base-state-error.ts#L4) | +| `stack?` | `public` | `string` | `BaseStateError.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | +| `stateName` | `public` | `string` | `BaseStateError.stateName` | [.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/base-state-error.ts#L4) | ## Methods -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`BaseStateError.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 - -*** - ### create() ```ts @@ -112,7 +81,7 @@ static create( #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/no-ref-image-error.ts:13 +[.testplane/src/browser/commands/assert-view/errors/no-ref-image-error.ts:13](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/no-ref-image-error.ts#L13) *** @@ -141,4 +110,4 @@ static fromObject(this, data): T #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/no-ref-image-error.ts:22 +[.testplane/src/browser/commands/assert-view/errors/no-ref-image-error.ts:22](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/no-ref-image-error.ts#L22) diff --git a/docs/api-reference/classes/OffsetViewportError.mdx b/docs/api-reference/classes/OffsetViewportError.mdx index 098577a..42491ed 100644 --- a/docs/api-reference/classes/OffsetViewportError.mdx +++ b/docs/api-reference/classes/OffsetViewportError.mdx @@ -32,43 +32,12 @@ new OffsetViewportError(message): OffsetViewportError #### Defined in -testplane-docs/.testplane/src/browser/screen-shooter/viewport/coord-validator/errors/offset-viewport-error.ts:5 +[.testplane/src/browser/screen-shooter/viewport/coord-validator/errors/offset-viewport-error.ts:5](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/screen-shooter/viewport/coord-validator/errors/offset-viewport-error.ts#L5) ## Properties -| Property | Modifier | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | - | `Error.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `public` | `string` | - | `Error.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `stack?` | `public` | `string` | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Type | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | +| `message` | `string` | `Error.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `string` | `Error.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `stack?` | `string` | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/docs/api-reference/classes/Suite.mdx b/docs/api-reference/classes/Suite.mdx index 49001f3..070fd69 100644 --- a/docs/api-reference/classes/Suite.mdx +++ b/docs/api-reference/classes/Suite.mdx @@ -34,13 +34,13 @@ new Suite(__namedParameters): Suite #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:20 +[.testplane/src/test-reader/test-object/suite.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L20) ## Properties | Property | Modifier | Type | Default value | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | ------ | -| `parent` | `public` | `null` \| [`Suite`](Suite.mdx) | `null` | `ConfigurableTestObject.parent` | testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:6 | +| `parent` | `public` | `null` \| [`Suite`](Suite.mdx) | `null` | `ConfigurableTestObject.parent` | [.testplane/src/test-reader/test-object/test-object.ts:6](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L6) | ## Accessors @@ -56,7 +56,7 @@ get afterEachHooks(): Hook[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:95 +[.testplane/src/test-reader/test-object/suite.ts:95](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L95) *** @@ -72,7 +72,7 @@ get beforeEachHooks(): Hook[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:91 +[.testplane/src/test-reader/test-object/suite.ts:91](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L91) *** @@ -102,7 +102,7 @@ set browserId(id): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:93 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:93](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L93) *** @@ -132,7 +132,7 @@ set browserVersion(version): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:101 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:101](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L101) *** @@ -162,7 +162,7 @@ set disabled(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:69 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:69](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L69) *** @@ -182,7 +182,7 @@ get file(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:45 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L45) *** @@ -202,7 +202,7 @@ get hasBrowserVersionOverwritten(): boolean #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:105 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L105) *** @@ -222,7 +222,7 @@ get id(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:41 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L41) *** @@ -252,7 +252,7 @@ set pending(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:53 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L53) *** @@ -268,7 +268,7 @@ get root(): boolean #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:79 +[.testplane/src/test-reader/test-object/suite.ts:79](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L79) *** @@ -298,7 +298,7 @@ set silentSkip(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:77 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:77](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L77) *** @@ -328,7 +328,7 @@ set skipReason(reason): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:61 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:61](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L61) *** @@ -344,7 +344,7 @@ get suites(): Suite[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:83 +[.testplane/src/test-reader/test-object/suite.ts:83](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L83) *** @@ -360,7 +360,7 @@ get tests(): Test[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:87 +[.testplane/src/test-reader/test-object/suite.ts:87](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L87) *** @@ -390,7 +390,7 @@ set timeout(timeout): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:85 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:85](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L85) *** @@ -410,7 +410,7 @@ get title(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:16 +[.testplane/src/test-reader/test-object/test-object.ts:16](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L16) ## Methods @@ -432,7 +432,7 @@ addAfterEachHook(hook): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:41 +[.testplane/src/test-reader/test-object/suite.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L41) *** @@ -454,7 +454,7 @@ addBeforeEachHook(hook): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:37 +[.testplane/src/test-reader/test-object/suite.ts:37](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L37) *** @@ -476,7 +476,7 @@ addSuite(suite): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:29 +[.testplane/src/test-reader/test-object/suite.ts:29](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L29) *** @@ -498,7 +498,7 @@ addTest(test): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:33 +[.testplane/src/test-reader/test-object/suite.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L33) *** @@ -520,7 +520,7 @@ afterEach(fn): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:49 +[.testplane/src/test-reader/test-object/suite.ts:49](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L49) *** @@ -546,7 +546,7 @@ assign(src): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:20 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L20) *** @@ -568,7 +568,7 @@ beforeEach(fn): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:45 +[.testplane/src/test-reader/test-object/suite.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L45) *** @@ -588,7 +588,7 @@ disable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:31 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:31](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L31) *** @@ -610,7 +610,7 @@ eachTest(cb): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:60 +[.testplane/src/test-reader/test-object/suite.ts:60](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L60) *** @@ -630,7 +630,7 @@ enable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:36 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L36) *** @@ -652,7 +652,7 @@ filterTests(cb): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:70 +[.testplane/src/test-reader/test-object/suite.ts:70](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L70) *** @@ -672,7 +672,7 @@ fullTitle(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:30 +[.testplane/src/test-reader/test-object/test-object.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L30) *** @@ -688,7 +688,7 @@ getTests(): Test[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:65 +[.testplane/src/test-reader/test-object/suite.ts:65](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L65) *** @@ -714,7 +714,7 @@ skip(__namedParameters): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:26 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L26) *** @@ -734,7 +734,7 @@ titlePath(): string[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:20 +[.testplane/src/test-reader/test-object/test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L20) *** @@ -763,4 +763,4 @@ static create(this, opts): T #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:15 +[.testplane/src/test-reader/test-object/suite.ts:15](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L15) diff --git a/docs/api-reference/classes/Test.mdx b/docs/api-reference/classes/Test.mdx index 9717a80..fe2117c 100644 --- a/docs/api-reference/classes/Test.mdx +++ b/docs/api-reference/classes/Test.mdx @@ -34,15 +34,15 @@ new Test(__namedParameters): Test #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test.ts:17 +[.testplane/src/test-reader/test-object/test.ts:17](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L17) ## Properties | Property | Modifier | Type | Default value | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | ------ | -| `err?` | `public` | `Error` | `undefined` | - | testplane-docs/.testplane/src/test-reader/test-object/test.ts:11 | -| `fn` | `public` | `TestFunction`\<[`TestFunctionCtx`](../interfaces/TestFunctionCtx.mdx)\> | `undefined` | - | testplane-docs/.testplane/src/test-reader/test-object/test.ts:10 | -| `parent` | `public` | `null` \| [`Suite`](Suite.mdx) | `null` | `ConfigurableTestObject.parent` | testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:6 | +| `err?` | `public` | `Error` | `undefined` | - | [.testplane/src/test-reader/test-object/test.ts:11](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L11) | +| `fn` | `public` | `TestFunction`\<[`TestFunctionCtx`](../interfaces/TestFunctionCtx.mdx)\> | `undefined` | - | [.testplane/src/test-reader/test-object/test.ts:10](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L10) | +| `parent` | `public` | `null` \| [`Suite`](Suite.mdx) | `null` | `ConfigurableTestObject.parent` | [.testplane/src/test-reader/test-object/test-object.ts:6](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L6) | ## Accessors @@ -72,7 +72,7 @@ set browserId(id): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:93 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:93](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L93) *** @@ -102,7 +102,7 @@ set browserVersion(version): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:101 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:101](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L101) *** @@ -132,7 +132,7 @@ set disabled(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:69 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:69](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L69) *** @@ -152,7 +152,7 @@ get file(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:45 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L45) *** @@ -172,7 +172,7 @@ get hasBrowserVersionOverwritten(): boolean #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:105 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L105) *** @@ -192,7 +192,7 @@ get id(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:41 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L41) *** @@ -222,7 +222,7 @@ set pending(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:53 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L53) *** @@ -252,7 +252,7 @@ set silentSkip(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:77 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:77](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L77) *** @@ -282,7 +282,7 @@ set skipReason(reason): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:61 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:61](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L61) *** @@ -312,7 +312,7 @@ set timeout(timeout): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:85 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:85](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L85) *** @@ -332,7 +332,7 @@ get title(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:16 +[.testplane/src/test-reader/test-object/test-object.ts:16](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L16) ## Methods @@ -358,7 +358,7 @@ assign(src): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:20 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L20) *** @@ -374,7 +374,7 @@ clone(): Test #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test.ts:23 +[.testplane/src/test-reader/test-object/test.ts:23](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L23) *** @@ -394,7 +394,7 @@ disable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:31 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:31](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L31) *** @@ -414,7 +414,7 @@ enable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:36 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L36) *** @@ -434,7 +434,7 @@ fullTitle(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:30 +[.testplane/src/test-reader/test-object/test-object.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L30) *** @@ -460,7 +460,7 @@ skip(__namedParameters): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:26 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L26) *** @@ -480,7 +480,7 @@ titlePath(): string[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:20 +[.testplane/src/test-reader/test-object/test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L20) *** @@ -509,4 +509,4 @@ static create(this, opts): T #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test.ts:13 +[.testplane/src/test-reader/test-object/test.ts:13](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L13) diff --git a/docs/api-reference/classes/TestCollection.mdx b/docs/api-reference/classes/TestCollection.mdx index d792fcd..c733c3c 100644 --- a/docs/api-reference/classes/TestCollection.mdx +++ b/docs/api-reference/classes/TestCollection.mdx @@ -22,7 +22,7 @@ new TestCollection(specs): TestCollection #### Defined in -testplane-docs/.testplane/src/test-collection.ts:20 +[.testplane/src/test-collection.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L20) ## Methods @@ -44,7 +44,7 @@ disableAll(browserId?): this #### Defined in -testplane-docs/.testplane/src/test-collection.ts:122 +[.testplane/src/test-collection.ts:122](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L122) *** @@ -67,7 +67,7 @@ disableTest(fullTitle, browserId?): this #### Defined in -testplane-docs/.testplane/src/test-collection.ts:136 +[.testplane/src/test-collection.ts:136](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L136) *** @@ -89,7 +89,7 @@ eachRootSuite(cb): void #### Defined in -testplane-docs/.testplane/src/test-collection.ts:30 +[.testplane/src/test-collection.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L30) *** @@ -113,7 +113,7 @@ eachTest(callback): void ##### Defined in -testplane-docs/.testplane/src/test-collection.ts:87 +[.testplane/src/test-collection.ts:87](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L87) #### eachTest(browserId, callback) @@ -134,7 +134,7 @@ eachTest(browserId, callback): void ##### Defined in -testplane-docs/.testplane/src/test-collection.ts:88 +[.testplane/src/test-collection.ts:88](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L88) *** @@ -157,7 +157,7 @@ eachTestByVersions(browserId, cb): void #### Defined in -testplane-docs/.testplane/src/test-collection.ts:102 +[.testplane/src/test-collection.ts:102](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L102) *** @@ -179,7 +179,7 @@ enableAll(browserId?): this #### Defined in -testplane-docs/.testplane/src/test-collection.ts:153 +[.testplane/src/test-collection.ts:153](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L153) *** @@ -202,7 +202,7 @@ enableTest(fullTitle, browserId?): this #### Defined in -testplane-docs/.testplane/src/test-collection.ts:163 +[.testplane/src/test-collection.ts:163](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L163) *** @@ -218,7 +218,7 @@ getBrowsers(): string[] #### Defined in -testplane-docs/.testplane/src/test-collection.ts:43 +[.testplane/src/test-collection.ts:43](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L43) *** @@ -240,7 +240,7 @@ getRootSuite(browserId): null | RootSuite #### Defined in -testplane-docs/.testplane/src/test-collection.ts:25 +[.testplane/src/test-collection.ts:25](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L25) *** @@ -270,7 +270,7 @@ mapTests(cb): T[] ##### Defined in -testplane-docs/.testplane/src/test-collection.ts:47 +[.testplane/src/test-collection.ts:47](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L47) #### mapTests(browserId, cb) @@ -297,7 +297,7 @@ mapTests(browserId, cb): T[] ##### Defined in -testplane-docs/.testplane/src/test-collection.ts:48 +[.testplane/src/test-collection.ts:48](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L48) *** @@ -321,7 +321,7 @@ sortTests(callback): this ##### Defined in -testplane-docs/.testplane/src/test-collection.ts:63 +[.testplane/src/test-collection.ts:63](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L63) #### sortTests(browserId, callback) @@ -342,7 +342,7 @@ sortTests(browserId, callback): this ##### Defined in -testplane-docs/.testplane/src/test-collection.ts:64 +[.testplane/src/test-collection.ts:64](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L64) *** @@ -371,4 +371,4 @@ static create(this, specs): T #### Defined in -testplane-docs/.testplane/src/test-collection.ts:13 +[.testplane/src/test-collection.ts:13](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L13) diff --git a/docs/api-reference/classes/Testplane.mdx b/docs/api-reference/classes/Testplane.mdx index a50a844..f37dad7 100644 --- a/docs/api-reference/classes/Testplane.mdx +++ b/docs/api-reference/classes/Testplane.mdx @@ -26,19 +26,15 @@ new Testplane(config?): Testplane #### Defined in -testplane-docs/.testplane/src/testplane.ts:67 +[.testplane/src/testplane.ts:67](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L67) ## Properties -| Property | Modifier | Type | Description | Defined in | -| ------ | ------ | ------ | ------ | ------ | -| `on` | `public` | [`MasterEventHandler`](../type-aliases/MasterEventHandler.mdx)\<[`Testplane`](Testplane.mdx)\> | - | testplane-docs/.testplane/src/testplane.ts:57 | -| `once` | `public` | [`MasterEventHandler`](../type-aliases/MasterEventHandler.mdx)\<[`Testplane`](Testplane.mdx)\> | - | testplane-docs/.testplane/src/testplane.ts:58 | -| `prependListener` | `public` | [`MasterEventHandler`](../type-aliases/MasterEventHandler.mdx)\<[`Testplane`](Testplane.mdx)\> | - | testplane-docs/.testplane/src/testplane.ts:59 | -| `captureRejectionSymbol` | `readonly` | *typeof* `captureRejectionSymbol` | - | testplane/node\_modules/@types/node/events.d.ts:405 | -| `captureRejections` | `static` | `boolean` | Sets or gets the default captureRejection value for all emitters. | testplane/node\_modules/@types/node/events.d.ts:410 | -| `defaultMaxListeners` | `static` | `number` | - | testplane/node\_modules/@types/node/events.d.ts:411 | -| `errorMonitor` | `readonly` | *typeof* `errorMonitor` | This symbol shall be used to install a listener for only monitoring `'error'` events. Listeners installed using this symbol are called before the regular `'error'` listeners are called. Installing a listener using this symbol does not change the behavior once an `'error'` event is emitted, therefore the process will still crash if no regular `'error'` listener is installed. | testplane/node\_modules/@types/node/events.d.ts:404 | +| Property | Type | Defined in | +| ------ | ------ | ------ | +| `on` | [`MasterEventHandler`](../type-aliases/MasterEventHandler.mdx)\<[`Testplane`](Testplane.mdx)\> | [.testplane/src/testplane.ts:57](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L57) | +| `once` | [`MasterEventHandler`](../type-aliases/MasterEventHandler.mdx)\<[`Testplane`](Testplane.mdx)\> | [.testplane/src/testplane.ts:58](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L58) | +| `prependListener` | [`MasterEventHandler`](../type-aliases/MasterEventHandler.mdx)\<[`Testplane`](Testplane.mdx)\> | [.testplane/src/testplane.ts:59](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L59) | ## Accessors @@ -54,7 +50,7 @@ get config(): Config #### Defined in -testplane-docs/.testplane/src/base-testplane.ts:45 +[.testplane/src/base-testplane.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/base-testplane.ts#L45) *** @@ -94,20 +90,20 @@ get errors(): { | Name | Type | Defined in | | ------ | ------ | ------ | -| `AbortOnReconnectError` | *typeof* [`AbortOnReconnectError`](AbortOnReconnectError.mdx) | testplane-docs/.testplane/src/errors.ts:34 | -| `AssertViewError` | *typeof* [`AssertViewError`](AssertViewError.mdx) | testplane-docs/.testplane/src/errors.ts:30 | -| `CancelledError` | *typeof* [`CancelledError`](CancelledError.mdx) | testplane-docs/.testplane/src/errors.ts:26 | -| `ClientBridgeError` | *typeof* [`ClientBridgeError`](ClientBridgeError.mdx) | testplane-docs/.testplane/src/errors.ts:27 | -| `CoreError` | *typeof* [`CoreError`](CoreError.mdx) | testplane-docs/.testplane/src/errors.ts:25 | -| `HeightViewportError` | *typeof* [`HeightViewportError`](HeightViewportError.mdx) | testplane-docs/.testplane/src/errors.ts:28 | -| `ImageDiffError` | *typeof* [`ImageDiffError`](ImageDiffError.mdx) | testplane-docs/.testplane/src/errors.ts:31 | -| `NoRefImageError` | *typeof* [`NoRefImageError`](NoRefImageError.mdx) | testplane-docs/.testplane/src/errors.ts:32 | -| `OffsetViewportError` | *typeof* [`OffsetViewportError`](OffsetViewportError.mdx) | testplane-docs/.testplane/src/errors.ts:29 | -| `TestplaneInternalError` | *typeof* [`TestplaneInternalError`](TestplaneInternalError.mdx) | testplane-docs/.testplane/src/errors.ts:33 | +| `AbortOnReconnectError` | *typeof* [`AbortOnReconnectError`](AbortOnReconnectError.mdx) | [.testplane/src/errors.ts:34](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L34) | +| `AssertViewError` | *typeof* [`AssertViewError`](AssertViewError.mdx) | [.testplane/src/errors.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L30) | +| `CancelledError` | *typeof* [`CancelledError`](CancelledError.mdx) | [.testplane/src/errors.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L26) | +| `ClientBridgeError` | *typeof* [`ClientBridgeError`](ClientBridgeError.mdx) | [.testplane/src/errors.ts:27](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L27) | +| `CoreError` | *typeof* [`CoreError`](CoreError.mdx) | [.testplane/src/errors.ts:25](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L25) | +| `HeightViewportError` | *typeof* [`HeightViewportError`](HeightViewportError.mdx) | [.testplane/src/errors.ts:28](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L28) | +| `ImageDiffError` | *typeof* [`ImageDiffError`](ImageDiffError.mdx) | [.testplane/src/errors.ts:31](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L31) | +| `NoRefImageError` | *typeof* [`NoRefImageError`](NoRefImageError.mdx) | [.testplane/src/errors.ts:32](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L32) | +| `OffsetViewportError` | *typeof* [`OffsetViewportError`](OffsetViewportError.mdx) | [.testplane/src/errors.ts:29](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L29) | +| `TestplaneInternalError` | *typeof* [`TestplaneInternalError`](TestplaneInternalError.mdx) | [.testplane/src/errors.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L33) | #### Defined in -testplane-docs/.testplane/src/base-testplane.ts:53 +[.testplane/src/base-testplane.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/base-testplane.ts#L53) *** @@ -179,95 +175,39 @@ get events(): { | Name | Type | Default value | Defined in | | ------ | ------ | ------ | ------ | -| `AFTER_FILE_READ` | `"afterFileRead"` | MasterEvents.AFTER\_FILE\_READ | testplane-docs/.testplane/src/events/index.ts:92 | -| `AFTER_TESTS_READ` | `"afterTestsRead"` | MasterEvents.AFTER\_TESTS\_READ | testplane-docs/.testplane/src/events/index.ts:94 | -| `BEFORE_FILE_READ` | `"beforeFileRead"` | MasterEvents.BEFORE\_FILE\_READ | testplane-docs/.testplane/src/events/index.ts:91 | -| `BEGIN` | `"begin"` | "begin" | testplane-docs/.testplane/src/events/index.ts:53 | -| `CLI` | `"cli"` | "cli" | testplane-docs/.testplane/src/events/index.ts:51 | -| `END` | `"end"` | "end" | testplane-docs/.testplane/src/events/index.ts:54 | -| `ERROR` | `"err"` | "err" | testplane-docs/.testplane/src/events/index.ts:63 | -| `EXIT` | `"exit"` | "exit" | testplane-docs/.testplane/src/events/index.ts:23 | -| `INFO` | `"info"` | "info" | testplane-docs/.testplane/src/events/index.ts:61 | -| `INIT` | `"init"` | MasterEvents.INIT | testplane-docs/.testplane/src/events/index.ts:89 | -| `NEW_BROWSER` | `"newBrowser"` | "newBrowser" | testplane-docs/.testplane/src/events/index.ts:96 | -| `NEW_WORKER_PROCESS` | `"newWorkerProcess"` | "newWorkerProcess" | testplane-docs/.testplane/src/events/index.ts:31 | -| `RETRY` | `"retry"` | "retry" | testplane-docs/.testplane/src/events/index.ts:43 | -| `RUNNER_END` | `"endRunner"` | "endRunner" | testplane-docs/.testplane/src/events/index.ts:18 | -| `RUNNER_START` | `"startRunner"` | "startRunner" | testplane-docs/.testplane/src/events/index.ts:17 | -| `SESSION_END` | `"endSession"` | "endSession" | testplane-docs/.testplane/src/events/index.ts:21 | -| `SESSION_START` | `"startSession"` | "startSession" | testplane-docs/.testplane/src/events/index.ts:20 | -| `SUITE_BEGIN` | `"beginSuite"` | "beginSuite" | testplane-docs/.testplane/src/events/index.ts:33 | -| `SUITE_END` | `"endSuite"` | "endSuite" | testplane-docs/.testplane/src/events/index.ts:34 | -| `TEST_BEGIN` | `"beginTest"` | "beginTest" | testplane-docs/.testplane/src/events/index.ts:36 | -| `TEST_END` | `"endTest"` | "endTest" | testplane-docs/.testplane/src/events/index.ts:37 | -| `TEST_FAIL` | `"failTest"` | "failTest" | testplane-docs/.testplane/src/events/index.ts:40 | -| `TEST_PASS` | `"passTest"` | "passTest" | testplane-docs/.testplane/src/events/index.ts:39 | -| `TEST_PENDING` | `"pendingTest"` | "pendingTest" | testplane-docs/.testplane/src/events/index.ts:41 | -| `UPDATE_REFERENCE` | `"updateReference"` | "updateReference" | testplane-docs/.testplane/src/events/index.ts:98 | -| `WARNING` | `"warning"` | "warning" | testplane-docs/.testplane/src/events/index.ts:62 | - -#### Defined in - -testplane-docs/.testplane/src/base-testplane.ts:49 +| `AFTER_FILE_READ` | `"afterFileRead"` | MasterEvents.AFTER\_FILE\_READ | [.testplane/src/events/index.ts:92](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L92) | +| `AFTER_TESTS_READ` | `"afterTestsRead"` | MasterEvents.AFTER\_TESTS\_READ | [.testplane/src/events/index.ts:94](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L94) | +| `BEFORE_FILE_READ` | `"beforeFileRead"` | MasterEvents.BEFORE\_FILE\_READ | [.testplane/src/events/index.ts:91](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L91) | +| `BEGIN` | `"begin"` | "begin" | [.testplane/src/events/index.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L53) | +| `CLI` | `"cli"` | "cli" | [.testplane/src/events/index.ts:51](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L51) | +| `END` | `"end"` | "end" | [.testplane/src/events/index.ts:54](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L54) | +| `ERROR` | `"err"` | "err" | [.testplane/src/events/index.ts:63](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L63) | +| `EXIT` | `"exit"` | "exit" | [.testplane/src/events/index.ts:23](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L23) | +| `INFO` | `"info"` | "info" | [.testplane/src/events/index.ts:61](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L61) | +| `INIT` | `"init"` | MasterEvents.INIT | [.testplane/src/events/index.ts:89](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L89) | +| `NEW_BROWSER` | `"newBrowser"` | "newBrowser" | [.testplane/src/events/index.ts:96](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L96) | +| `NEW_WORKER_PROCESS` | `"newWorkerProcess"` | "newWorkerProcess" | [.testplane/src/events/index.ts:31](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L31) | +| `RETRY` | `"retry"` | "retry" | [.testplane/src/events/index.ts:43](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L43) | +| `RUNNER_END` | `"endRunner"` | "endRunner" | [.testplane/src/events/index.ts:18](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L18) | +| `RUNNER_START` | `"startRunner"` | "startRunner" | [.testplane/src/events/index.ts:17](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L17) | +| `SESSION_END` | `"endSession"` | "endSession" | [.testplane/src/events/index.ts:21](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L21) | +| `SESSION_START` | `"startSession"` | "startSession" | [.testplane/src/events/index.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L20) | +| `SUITE_BEGIN` | `"beginSuite"` | "beginSuite" | [.testplane/src/events/index.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L33) | +| `SUITE_END` | `"endSuite"` | "endSuite" | [.testplane/src/events/index.ts:34](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L34) | +| `TEST_BEGIN` | `"beginTest"` | "beginTest" | [.testplane/src/events/index.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L36) | +| `TEST_END` | `"endTest"` | "endTest" | [.testplane/src/events/index.ts:37](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L37) | +| `TEST_FAIL` | `"failTest"` | "failTest" | [.testplane/src/events/index.ts:40](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L40) | +| `TEST_PASS` | `"passTest"` | "passTest" | [.testplane/src/events/index.ts:39](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L39) | +| `TEST_PENDING` | `"pendingTest"` | "pendingTest" | [.testplane/src/events/index.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L41) | +| `UPDATE_REFERENCE` | `"updateReference"` | "updateReference" | [.testplane/src/events/index.ts:98](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L98) | +| `WARNING` | `"warning"` | "warning" | [.testplane/src/events/index.ts:62](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L62) | + +#### Defined in + +[.testplane/src/base-testplane.ts:49](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/base-testplane.ts#L49) ## Methods -### \[captureRejectionSymbol\]()? - -```ts -optional [captureRejectionSymbol]( - error, - event, ... - args): void -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `error` | `Error` | -| `event` | `string` | -| ...`args` | `any`[] | - -#### Returns - -`void` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:115 - -*** - -### addListener() - -```ts -addListener(eventName, listener): this -``` - -Alias for `emitter.on(eventName, listener)`. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| `listener` | (...`args`) => `void` | - -#### Returns - -`this` - -#### Since - -v0.1.26 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:475 - -*** - ### addTestToRun() ```ts @@ -287,72 +227,7 @@ addTestToRun(test, browserId): boolean #### Defined in -testplane-docs/.testplane/src/testplane.ts:152 - -*** - -### emit() - -```ts -emit(eventName, ...args): boolean -``` - -Synchronously calls each of the listeners registered for the event named`eventName`, in the order they were registered, passing the supplied arguments -to each. - -Returns `true` if the event had listeners, `false` otherwise. - -```js -const EventEmitter = require('events'); -const myEmitter = new EventEmitter(); - -// First listener -myEmitter.on('event', function firstListener() { - console.log('Helloooo! first listener'); -}); -// Second listener -myEmitter.on('event', function secondListener(arg1, arg2) { - console.log(`event with parameters ${arg1}, ${arg2} in second listener`); -}); -// Third listener -myEmitter.on('event', function thirdListener(...args) { - const parameters = args.join(', '); - console.log(`event with parameters ${parameters} in third listener`); -}); - -console.log(myEmitter.listeners('event')); - -myEmitter.emit('event', 1, 2, 3, 4, 5); - -// Prints: -// [ -// [Function: firstListener], -// [Function: secondListener], -// [Function: thirdListener] -// ] -// Helloooo! first listener -// event with parameters 1, 2 in second listener -// event with parameters 1, 2, 3, 4, 5 in third listener -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| ...`args` | `any`[] | - -#### Returns - -`boolean` - -#### Since - -v0.1.26 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:731 +[.testplane/src/testplane.ts:152](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L152) *** @@ -375,43 +250,7 @@ emitAndWait(event, ...args): Promise #### Defined in -testplane-docs/.testplane/src/events/async-emitter/index.ts:5 - -*** - -### eventNames() - -```ts -eventNames(): (string | symbol)[] -``` - -Returns an array listing the events for which the emitter has registered -listeners. The values in the array are strings or `Symbol`s. - -```js -const EventEmitter = require('events'); -const myEE = new EventEmitter(); -myEE.on('foo', () => {}); -myEE.on('bar', () => {}); - -const sym = Symbol('symbol'); -myEE.on(sym, () => {}); - -console.log(myEE.eventNames()); -// Prints: [ 'foo', 'bar', Symbol(symbol) ] -``` - -#### Returns - -(`string` \| `symbol`)[] - -#### Since - -v6.0.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:794 +[.testplane/src/events/async-emitter/index.ts:5](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/async-emitter/index.ts#L5) *** @@ -433,30 +272,7 @@ extendCli(parser): void #### Defined in -testplane-docs/.testplane/src/testplane.ts:75 - -*** - -### getMaxListeners() - -```ts -getMaxListeners(): number -``` - -Returns the current max listener value for the `EventEmitter` which is either -set by `emitter.setMaxListeners(n)` or defaults to defaultMaxListeners. - -#### Returns - -`number` - -#### Since - -v1.0.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:647 +[.testplane/src/testplane.ts:75](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L75) *** @@ -479,7 +295,7 @@ halt(err, timeout): void #### Defined in -testplane-docs/.testplane/src/testplane.ts:207 +[.testplane/src/testplane.ts:207](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L207) *** @@ -502,7 +318,7 @@ intercept(event, handler): this #### Defined in -testplane-docs/.testplane/src/base-testplane.ts:57 +[.testplane/src/base-testplane.ts:57](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/base-testplane.ts#L57) *** @@ -518,7 +334,7 @@ isFailed(): boolean #### Defined in -testplane-docs/.testplane/src/testplane.ts:187 +[.testplane/src/testplane.ts:187](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L187) *** @@ -534,195 +350,7 @@ isWorker(): boolean #### Defined in -testplane-docs/.testplane/src/testplane.ts:203 - -*** - -### listenerCount() - -```ts -listenerCount(eventName, listener?): number -``` - -Returns the number of listeners listening to the event named `eventName`. - -If `listener` is provided, it will return how many times the listener -is found in the list of the listeners of the event. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `eventName` | `string` \| `symbol` | Returns the number of listeners listening to the event named `eventName`. If `listener` is provided, it will return how many times the listener is found in the list of the listeners of the event. | -| `listener`? | `Function` | Returns the number of listeners listening to the event named `eventName`. If `listener` is provided, it will return how many times the listener is found in the list of the listeners of the event. | - -#### Returns - -`number` - -#### Since - -v3.2.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:741 - -*** - -### listeners() - -```ts -listeners(eventName): Function[] -``` - -Returns a copy of the array of listeners for the event named `eventName`. - -```js -server.on('connection', (stream) => { - console.log('someone connected!'); -}); -console.log(util.inspect(server.listeners('connection'))); -// Prints: [ [Function] ] -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | - -#### Returns - -`Function`[] - -#### Since - -v0.1.26 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:660 - -*** - -### off() - -```ts -off(eventName, listener): this -``` - -Alias for `emitter.removeListener()`. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| `listener` | (...`args`) => `void` | - -#### Returns - -`this` - -#### Since - -v10.0.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:620 - -*** - -### prependOnceListener() - -```ts -prependOnceListener(eventName, listener): this -``` - -Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this -listener is removed, and then invoked. - -```js -server.prependOnceListener('connection', (stream) => { - console.log('Ah, we have our first user!'); -}); -``` - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `eventName` | `string` \| `symbol` | Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this listener is removed, and then invoked. `server.prependOnceListener('connection', (stream) => { console.log('Ah, we have our first user!'); });` Returns a reference to the `EventEmitter`, so that calls can be chained. | -| `listener` | (...`args`) => `void` | Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this listener is removed, and then invoked. `server.prependOnceListener('connection', (stream) => { console.log('Ah, we have our first user!'); });` Returns a reference to the `EventEmitter`, so that calls can be chained. | - -#### Returns - -`this` - -#### Since - -v6.0.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:775 - -*** - -### rawListeners() - -```ts -rawListeners(eventName): Function[] -``` - -Returns a copy of the array of listeners for the event named `eventName`, -including any wrappers (such as those created by `.once()`). - -```js -const emitter = new EventEmitter(); -emitter.once('log', () => console.log('log once')); - -// Returns a new Array with a function `onceWrapper` which has a property -// `listener` which contains the original listener bound above -const listeners = emitter.rawListeners('log'); -const logFnWrapper = listeners[0]; - -// Logs "log once" to the console and does not unbind the `once` event -logFnWrapper.listener(); - -// Logs "log once" to the console and removes the listener -logFnWrapper(); - -emitter.on('log', () => console.log('log persistently')); -// Will return a new Array with a single function bound by `.on()` above -const newListeners = emitter.rawListeners('log'); - -// Logs "log persistently" twice -newListeners[0](); -emitter.emit('log'); -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | - -#### Returns - -`Function`[] - -#### Since - -v9.4.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:690 +[.testplane/src/testplane.ts:203](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L203) *** @@ -745,145 +373,7 @@ readTests(testPaths, __namedParameters): Promise #### Defined in -testplane-docs/.testplane/src/testplane.ts:156 - -*** - -### removeAllListeners() - -```ts -removeAllListeners(event?): this -``` - -Removes all listeners, or those of the specified `eventName`. - -It is bad practice to remove listeners added elsewhere in the code, -particularly when the `EventEmitter` instance was created by some other -component or module (e.g. sockets or file streams). - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `event`? | `string` \| `symbol` | - -#### Returns - -`this` - -#### Since - -v0.1.26 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:631 - -*** - -### removeListener() - -```ts -removeListener(eventName, listener): this -``` - -Removes the specified `listener` from the listener array for the event named`eventName`. - -```js -const callback = (stream) => { - console.log('someone connected!'); -}; -server.on('connection', callback); -// ... -server.removeListener('connection', callback); -``` - -`removeListener()` will remove, at most, one instance of a listener from the -listener array. If any single listener has been added multiple times to the -listener array for the specified `eventName`, then `removeListener()` must be -called multiple times to remove each instance. - -Once an event is emitted, all listeners attached to it at the -time of emitting are called in order. This implies that any`removeListener()` or `removeAllListeners()` calls _after_ emitting and _before_ the last listener finishes execution -will not remove them from`emit()` in progress. Subsequent events behave as expected. - -```js -const myEmitter = new MyEmitter(); - -const callbackA = () => { - console.log('A'); - myEmitter.removeListener('event', callbackB); -}; - -const callbackB = () => { - console.log('B'); -}; - -myEmitter.on('event', callbackA); - -myEmitter.on('event', callbackB); - -// callbackA removes listener callbackB but it will still be called. -// Internal listener array at time of emit [callbackA, callbackB] -myEmitter.emit('event'); -// Prints: -// A -// B - -// callbackB is now removed. -// Internal listener array [callbackA] -myEmitter.emit('event'); -// Prints: -// A -``` - -Because listeners are managed using an internal array, calling this will -change the position indices of any listener registered _after_ the listener -being removed. This will not impact the order in which listeners are called, -but it means that any copies of the listener array as returned by -the `emitter.listeners()` method will need to be recreated. - -When a single function has been added as a handler multiple times for a single -event (as in the example below), `removeListener()` will remove the most -recently added instance. In the example the `once('ping')`listener is removed: - -```js -const ee = new EventEmitter(); - -function pong() { - console.log('pong'); -} - -ee.on('ping', pong); -ee.once('ping', pong); -ee.removeListener('ping', pong); - -ee.emit('ping'); -ee.emit('ping'); -``` - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| `listener` | (...`args`) => `void` | - -#### Returns - -`this` - -#### Since - -v0.1.26 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:615 +[.testplane/src/testplane.ts:156](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L156) *** @@ -906,101 +396,7 @@ run(testPaths, __namedParameters): Promise #### Defined in -testplane-docs/.testplane/src/testplane.ts:89 - -*** - -### setMaxListeners() - -```ts -setMaxListeners(n): this -``` - -By default `EventEmitter`s will print a warning if more than `10` listeners are -added for a particular event. This is a useful default that helps finding -memory leaks. The `emitter.setMaxListeners()` method allows the limit to be -modified for this specific `EventEmitter` instance. The value can be set to`Infinity` (or `0`) to indicate an unlimited number of listeners. - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `n` | `number` | - -#### Returns - -`this` - -#### Since - -v0.3.5 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:641 - -*** - -### addAbortListener() - -```ts -static addAbortListener(signal, resource): Disposable -``` - -**`Experimental`** - -Listens once to the `abort` event on the provided `signal`. - -Listening to the `abort` event on abort signals is unsafe and may -lead to resource leaks since another third party with the signal can -call `e.stopImmediatePropagation()`. Unfortunately Node.js cannot change -this since it would violate the web standard. Additionally, the original -API makes it easy to forget to remove listeners. - -This API allows safely using `AbortSignal`s in Node.js APIs by solving these -two issues by listening to the event such that `stopImmediatePropagation` does -not prevent the listener from running. - -Returns a disposable so that it may be unsubscribed from more easily. - -```js -import { addAbortListener } from 'node:events'; - -function example(signal) { - let disposable; - try { - signal.addEventListener('abort', (e) => e.stopImmediatePropagation()); - disposable = addAbortListener(signal, (e) => { - // Do something when signal is aborted. - }); - } finally { - disposable?.[Symbol.dispose](); - } -} -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `signal` | `AbortSignal` | -| `resource` | (`event`) => `void` | - -#### Returns - -`Disposable` - -Disposable that removes the `abort` listener. - -#### Since - -v18.18.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:394 +[.testplane/src/testplane.ts:89](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L89) *** @@ -1029,380 +425,4 @@ static create(this, config?): T #### Defined in -testplane-docs/.testplane/src/base-testplane.ts:21 - -*** - -### getEventListeners() - -```ts -static getEventListeners(emitter, name): Function[] -``` - -Returns a copy of the array of listeners for the event named `eventName`. - -For `EventEmitter`s this behaves exactly the same as calling `.listeners` on -the emitter. - -For `EventTarget`s this is the only way to get the event listeners for the -event target. This is useful for debugging and diagnostic purposes. - -```js -const { getEventListeners, EventEmitter } = require('events'); - -{ - const ee = new EventEmitter(); - const listener = () => console.log('Events are fun'); - ee.on('foo', listener); - getEventListeners(ee, 'foo'); // [listener] -} -{ - const et = new EventTarget(); - const listener = () => console.log('Events are fun'); - et.addEventListener('foo', listener); - getEventListeners(et, 'foo'); // [listener] -} -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `emitter` | `EventEmitter` \| `_DOMEventTarget` | -| `name` | `string` \| `symbol` | - -#### Returns - -`Function`[] - -#### Since - -v15.2.0, v14.17.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:312 - -*** - -### getMaxListeners() - -```ts -static getMaxListeners(emitter): number -``` - -Returns the current max listener value for the `EventEmitter` which is either -set by `emitter.setMaxListeners(n)` or defaults to defaultMaxListeners. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `emitter` | `EventEmitter` \| `_DOMEventTarget` | - -#### Returns - -`number` - -#### Since - -v1.0.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:341 - -*** - -### ~~listenerCount()~~ - -```ts -static listenerCount(emitter, eventName): number -``` - -Returns the number of listeners listening to the event named `eventName`. - -If `listener` is provided, it will return how many times the listener -is found in the list of the listeners of the event. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `emitter` | `EventEmitter` | Returns the number of listeners listening to the event named `eventName`. If `listener` is provided, it will return how many times the listener is found in the list of the listeners of the event. | -| `eventName` | `string` \| `symbol` | Returns the number of listeners listening to the event named `eventName`. If `listener` is provided, it will return how many times the listener is found in the list of the listeners of the event. | - -#### Returns - -`number` - -#### Since - -v3.2.0 - -#### Deprecated - -Since v3.2.0 - Use `listenerCount` instead. - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:284 - -*** - -### on() - -```ts -static on( - emitter, - eventName, -options?): AsyncIterableIterator -``` - -```js -const { on, EventEmitter } = require('events'); - -(async () => { - const ee = new EventEmitter(); - - // Emit later on - process.nextTick(() => { - ee.emit('foo', 'bar'); - ee.emit('foo', 42); - }); - - for await (const event of on(ee, 'foo')) { - // The execution of this inner block is synchronous and it - // processes one event at a time (even with await). Do not use - // if concurrent execution is required. - console.log(event); // prints ['bar'] [42] - } - // Unreachable here -})(); -``` - -Returns an `AsyncIterator` that iterates `eventName` events. It will throw -if the `EventEmitter` emits `'error'`. It removes all listeners when -exiting the loop. The `value` returned by each iteration is an array -composed of the emitted event arguments. - -An `AbortSignal` can be used to cancel waiting on events: - -```js -const { on, EventEmitter } = require('events'); -const ac = new AbortController(); - -(async () => { - const ee = new EventEmitter(); - - // Emit later on - process.nextTick(() => { - ee.emit('foo', 'bar'); - ee.emit('foo', 42); - }); - - for await (const event of on(ee, 'foo', { signal: ac.signal })) { - // The execution of this inner block is synchronous and it - // processes one event at a time (even with await). Do not use - // if concurrent execution is required. - console.log(event); // prints ['bar'] [42] - } - // Unreachable here -})(); - -process.nextTick(() => ac.abort()); -``` - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `emitter` | `EventEmitter` | - | -| `eventName` | `string` | `const { on, EventEmitter } = require('events'); (async () => { const ee = new EventEmitter(); // Emit later on process.nextTick(() => { ee.emit('foo', 'bar'); ee.emit('foo', 42); }); for await (const event of on(ee, 'foo')) { // The execution of this inner block is synchronous and it // processes one event at a time (even with await). Do not use // if concurrent execution is required. console.log(event); // prints ['bar'] [42] } // Unreachable here })();` Returns an `AsyncIterator` that iterates `eventName` events. It will throw if the `EventEmitter` emits `'error'`. It removes all listeners when exiting the loop. The `value` returned by each iteration is an array composed of the emitted event arguments. An `AbortSignal` can be used to cancel waiting on events: `const { on, EventEmitter } = require('events'); const ac = new AbortController(); (async () => { const ee = new EventEmitter(); // Emit later on process.nextTick(() => { ee.emit('foo', 'bar'); ee.emit('foo', 42); }); for await (const event of on(ee, 'foo', { signal: ac.signal })) { // The execution of this inner block is synchronous and it // processes one event at a time (even with await). Do not use // if concurrent execution is required. console.log(event); // prints ['bar'] [42] } // Unreachable here })(); process.nextTick(() => ac.abort());` | -| `options`? | `StaticEventEmitterOptions` | - | - -#### Returns - -`AsyncIterableIterator`\<`any`\> - -that iterates `eventName` events emitted by the `emitter` - -#### Since - -v13.6.0, v12.16.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:263 - -*** - -### once() - -#### once(emitter, eventName, options) - -```ts -static once( - emitter, - eventName, -options?): Promise -``` - -Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given -event or that is rejected if the `EventEmitter` emits `'error'` while waiting. -The `Promise` will resolve with an array of all the arguments emitted to the -given event. - -This method is intentionally generic and works with the web platform [EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface, which has no special`'error'` event -semantics and does not listen to the `'error'` event. - -```js -const { once, EventEmitter } = require('events'); - -async function run() { - const ee = new EventEmitter(); - - process.nextTick(() => { - ee.emit('myevent', 42); - }); - - const [value] = await once(ee, 'myevent'); - console.log(value); - - const err = new Error('kaboom'); - process.nextTick(() => { - ee.emit('error', err); - }); - - try { - await once(ee, 'myevent'); - } catch (err) { - console.log('error happened', err); - } -} - -run(); -``` - -The special handling of the `'error'` event is only used when `events.once()`is used to wait for another event. If `events.once()` is used to wait for the -'`error'` event itself, then it is treated as any other kind of event without -special handling: - -```js -const { EventEmitter, once } = require('events'); - -const ee = new EventEmitter(); - -once(ee, 'error') - .then(([err]) => console.log('ok', err.message)) - .catch((err) => console.log('error', err.message)); - -ee.emit('error', new Error('boom')); - -// Prints: ok boom -``` - -An `AbortSignal` can be used to cancel waiting for the event: - -```js -const { EventEmitter, once } = require('events'); - -const ee = new EventEmitter(); -const ac = new AbortController(); - -async function foo(emitter, event, signal) { - try { - await once(emitter, event, { signal }); - console.log('event emitted!'); - } catch (error) { - if (error.name === 'AbortError') { - console.error('Waiting for the event was canceled!'); - } else { - console.error('There was an error', error.message); - } - } -} - -foo(ee, 'foo', ac.signal); -ac.abort(); // Abort waiting for the event -ee.emit('foo'); // Prints: Waiting for the event was canceled! -``` - -##### Parameters - -| Parameter | Type | -| ------ | ------ | -| `emitter` | `_NodeEventTarget` | -| `eventName` | `string` \| `symbol` | -| `options`? | `StaticEventEmitterOptions` | - -##### Returns - -`Promise`\<`any`[]\> - -##### Since - -v11.13.0, v10.16.0 - -##### Defined in - -testplane/node\_modules/@types/node/events.d.ts:199 - -#### once(emitter, eventName, options) - -```ts -static once( - emitter, - eventName, -options?): Promise -``` - -##### Parameters - -| Parameter | Type | -| ------ | ------ | -| `emitter` | `_DOMEventTarget` | -| `eventName` | `string` | -| `options`? | `StaticEventEmitterOptions` | - -##### Returns - -`Promise`\<`any`[]\> - -##### Defined in - -testplane/node\_modules/@types/node/events.d.ts:204 - -*** - -### setMaxListeners() - -```ts -static setMaxListeners(n?, ...eventTargets?): void -``` - -By default `EventEmitter`s will print a warning if more than `10` listeners are -added for a particular event. This is a useful default that helps finding -memory leaks. The `emitter.setMaxListeners()` method allows the limit to be -modified for this specific `EventEmitter` instance. The value can be set to`Infinity` (or `0`) to indicate an unlimited number of listeners. - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `n`? | `number` | By default `EventEmitter`s will print a warning if more than `10` listeners are added for a particular event. This is a useful default that helps finding memory leaks. The `emitter.setMaxListeners()` method allows the limit to be modified for this specific `EventEmitter` instance. The value can be set to`Infinity` (or `0`) to indicate an unlimited number of listeners. Returns a reference to the `EventEmitter`, so that calls can be chained. | -| ...`eventTargets`? | (`EventEmitter` \| `_DOMEventTarget`)[] | - | - -#### Returns - -`void` - -#### Since - -v0.3.5 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:359 +[.testplane/src/base-testplane.ts:21](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/base-testplane.ts#L21) diff --git a/docs/api-reference/classes/TestplaneInternalError.mdx b/docs/api-reference/classes/TestplaneInternalError.mdx index aa54e1e..f421a62 100644 --- a/docs/api-reference/classes/TestplaneInternalError.mdx +++ b/docs/api-reference/classes/TestplaneInternalError.mdx @@ -30,43 +30,12 @@ new TestplaneInternalError(message): TestplaneInternalError #### Defined in -testplane-docs/.testplane/src/errors/testplane-internal-error.ts:2 +[.testplane/src/errors/testplane-internal-error.ts:2](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors/testplane-internal-error.ts#L2) ## Properties -| Property | Modifier | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | - | `Error.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `public` | `string` | - | `Error.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `stack?` | `public` | `string` | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Type | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | +| `message` | `string` | `Error.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `string` | `Error.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `stack?` | `string` | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/docs/api-reference/interfaces/AfterFileReadData.mdx b/docs/api-reference/interfaces/AfterFileReadData.mdx index fc4002a..5265fcd 100644 --- a/docs/api-reference/interfaces/AfterFileReadData.mdx +++ b/docs/api-reference/interfaces/AfterFileReadData.mdx @@ -10,7 +10,7 @@ | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | -| `browser` | `string` | - | testplane-docs/.testplane/src/types/index.ts:176 | -| `file` | `string` | - | testplane-docs/.testplane/src/types/index.ts:177 | -| ~~`hermione`~~ | [`GlobalHelper`](GlobalHelper.mdx) | **Deprecated** Use `testplane` instead | testplane-docs/.testplane/src/types/index.ts:175 | -| `testplane` | [`GlobalHelper`](GlobalHelper.mdx) | - | testplane-docs/.testplane/src/types/index.ts:171 | +| `browser` | `string` | - | [.testplane/src/types/index.ts:176](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L176) | +| `file` | `string` | - | [.testplane/src/types/index.ts:177](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L177) | +| ~~`hermione`~~ | [`GlobalHelper`](GlobalHelper.mdx) | **Deprecated** Use `testplane` instead | [.testplane/src/types/index.ts:175](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L175) | +| `testplane` | [`GlobalHelper`](GlobalHelper.mdx) | - | [.testplane/src/types/index.ts:171](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L171) | diff --git a/docs/api-reference/interfaces/AssertViewOpts.mdx b/docs/api-reference/interfaces/AssertViewOpts.mdx index 142574c..5e3c24d 100644 --- a/docs/api-reference/interfaces/AssertViewOpts.mdx +++ b/docs/api-reference/interfaces/AssertViewOpts.mdx @@ -10,13 +10,13 @@ | Property | Type | Default value | Description | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | ------ | -| `allowViewportOverflow?` | `boolean` | `false` | Disables check that element is outside of the viewport left, top, right or bottom bounds. **Remarks** By default Testplane throws an error if element is outside the viewport bounds. This option disables check that element is outside of the viewport left, top, right or bottom bounds. And in this case if browser option [https://github.com/gemini-testing/testplane#compositeimage compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `false`, then only visible part of the element will be captured. But if [https://github.com/gemini-testing/testplane#compositeimage compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `true` (default), then in the resulting screenshot will appear the whole element with not visible parts outside of the bottom bounds of viewport. | `Partial.allowViewportOverflow` | testplane-docs/.testplane/src/config/types.ts:45 | -| `antialiasingTolerance?` | `number` | `4` | Minimum difference in brightness (zero by default) between the darkest/lightest pixel (which is adjacent to the antialiasing pixel) and theirs adjacent pixels. Overrides config https://github.com/gemini-testing/testplane#browsers browsers.https://github.com/gemini-testing/testplane#antialiasingTolerance antialiasingTolerance value. **Remarks** Read more about this option in [https://github.com/gemini-testing/looks-same#comparing-images-with-ignoring-antialiasing looks-same](https://github.com/gemini-testing/looks-same#comparing-images-with-ignoring-antialiasing) | - | testplane-docs/.testplane/src/browser/commands/types.ts:26 | -| `captureElementFromTop?` | `boolean` | `true` | Ability to set capture element from the top area or from current position. **Remarks** In the first case viewport will be scrolled to the top of the element. | `Partial.captureElementFromTop` | testplane-docs/.testplane/src/config/types.ts:33 | -| `compositeImage?` | `boolean` | `true` | Allows testing of regions which bottom bounds are outside of a viewport height. Overrides config https://github.com/gemini-testing/testplane#browsers browsers.https://github.com/gemini-testing/testplane#compositeImage compositeImage value. **Remarks** In the resulting screenshot the area which fits the viewport bounds will be joined with the area which is outside of the viewport height. | - | testplane-docs/.testplane/src/browser/commands/types.ts:36 | -| `disableAnimation?` | `boolean` | `true` | Ability to disable animations and transitions while making a screenshot **Remarks** Usefull when you capture screenshot of a page, having animations and transitions. Iframe animations are only disabled when using webdriver protocol. | - | testplane-docs/.testplane/src/browser/commands/types.ts:67 | -| `ignoreDiffPixelCount?` | `number` \| \`$\{number\}%\` | `0` | Ability to ignore a small amount of different pixels to classify screenshots as being "identical" **Examples** `5` `'1.5%'` **Remarks** Useful when you encounter a few pixels difference that cannot be eliminated using the tolerance and antialiasingTolerance settings. **Note** This should be considered a last resort and only used in small number of cases where necessary. | - | testplane-docs/.testplane/src/browser/commands/types.ts:82 | -| `ignoreElements?` | `string` \| `string`[] | `[]` | DOM-node selectors which will be ignored (painted with a black rectangle) when comparing images. | `Partial.ignoreElements` | testplane-docs/.testplane/src/config/types.ts:24 | -| `screenshotDelay?` | `number` | `0` | Allows to specify a delay (in milliseconds) before making any screenshot. Overrides config https://github.com/gemini-testing/testplane#browsers browsers.https://github.com/gemini-testing/testplane#screenshotDelay screenshotDelay value. **Remarks** This is useful when the page has elements which are animated or if you do not want to screen a scrollbar. | - | testplane-docs/.testplane/src/browser/commands/types.ts:46 | -| `selectorToScroll?` | `string` | `undefined` | Ability to set DOM-node selector which should be scroll when the captured element does not completely fit on the screen. **Remarks** Useful when you capture the modal (popup). In this case a duplicate of the modal appears on the screenshot. That happens because we scroll the page using `window` selector, which scroll only the background of the modal, and the modal itself remains in place. Default value is `undefined` (it means scroll relative to `window`). Works only when `compositeImage` is `true` (default). | - | testplane-docs/.testplane/src/browser/commands/types.ts:57 | -| `tolerance?` | `number` | `2.3` | Maximum allowed difference between colors. Overrides config https://github.com/gemini-testing/testplane#browsers browsers.https://github.com/gemini-testing/testplane#tolerance tolerance value. **Remarks** Indicates maximum allowed CIEDE2000 difference between colors. Used only in non-strict mode. Increasing global default is not recommended, prefer changing tolerance for particular suites or states instead. By default it's 2.3 which should be enough for the most cases. | - | testplane-docs/.testplane/src/browser/commands/types.ts:16 | +| `allowViewportOverflow?` | `boolean` | `false` | Disables check that element is outside of the viewport left, top, right or bottom bounds. **Remarks** By default Testplane throws an error if element is outside the viewport bounds. This option disables check that element is outside of the viewport left, top, right or bottom bounds. And in this case if browser option [https://github.com/gemini-testing/testplane#compositeimage compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `false`, then only visible part of the element will be captured. But if [https://github.com/gemini-testing/testplane#compositeimage compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `true` (default), then in the resulting screenshot will appear the whole element with not visible parts outside of the bottom bounds of viewport. | `Partial.allowViewportOverflow` | [.testplane/src/config/types.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L45) | +| `antialiasingTolerance?` | `number` | `4` | Minimum difference in brightness (zero by default) between the darkest/lightest pixel (which is adjacent to the antialiasing pixel) and theirs adjacent pixels. Overrides config https://github.com/gemini-testing/testplane#browsers browsers.https://github.com/gemini-testing/testplane#antialiasingTolerance antialiasingTolerance value. **Remarks** Read more about this option in [https://github.com/gemini-testing/looks-same#comparing-images-with-ignoring-antialiasing looks-same](https://github.com/gemini-testing/looks-same#comparing-images-with-ignoring-antialiasing) | - | [.testplane/src/browser/commands/types.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/types.ts#L26) | +| `captureElementFromTop?` | `boolean` | `true` | Ability to set capture element from the top area or from current position. **Remarks** In the first case viewport will be scrolled to the top of the element. | `Partial.captureElementFromTop` | [.testplane/src/config/types.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L33) | +| `compositeImage?` | `boolean` | `true` | Allows testing of regions which bottom bounds are outside of a viewport height. Overrides config https://github.com/gemini-testing/testplane#browsers browsers.https://github.com/gemini-testing/testplane#compositeImage compositeImage value. **Remarks** In the resulting screenshot the area which fits the viewport bounds will be joined with the area which is outside of the viewport height. | - | [.testplane/src/browser/commands/types.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/types.ts#L36) | +| `disableAnimation?` | `boolean` | `true` | Ability to disable animations and transitions while making a screenshot **Remarks** Usefull when you capture screenshot of a page, having animations and transitions. Iframe animations are only disabled when using webdriver protocol. | - | [.testplane/src/browser/commands/types.ts:67](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/types.ts#L67) | +| `ignoreDiffPixelCount?` | `number` \| \`$\{number\}%\` | `0` | Ability to ignore a small amount of different pixels to classify screenshots as being "identical" **Examples** `5` `'1.5%'` **Remarks** Useful when you encounter a few pixels difference that cannot be eliminated using the tolerance and antialiasingTolerance settings. **Note** This should be considered a last resort and only used in small number of cases where necessary. | - | [.testplane/src/browser/commands/types.ts:82](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/types.ts#L82) | +| `ignoreElements?` | `string` \| `string`[] | `[]` | DOM-node selectors which will be ignored (painted with a black rectangle) when comparing images. | `Partial.ignoreElements` | [.testplane/src/config/types.ts:24](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L24) | +| `screenshotDelay?` | `number` | `0` | Allows to specify a delay (in milliseconds) before making any screenshot. Overrides config https://github.com/gemini-testing/testplane#browsers browsers.https://github.com/gemini-testing/testplane#screenshotDelay screenshotDelay value. **Remarks** This is useful when the page has elements which are animated or if you do not want to screen a scrollbar. | - | [.testplane/src/browser/commands/types.ts:46](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/types.ts#L46) | +| `selectorToScroll?` | `string` | `undefined` | Ability to set DOM-node selector which should be scroll when the captured element does not completely fit on the screen. **Remarks** Useful when you capture the modal (popup). In this case a duplicate of the modal appears on the screenshot. That happens because we scroll the page using `window` selector, which scroll only the background of the modal, and the modal itself remains in place. Default value is `undefined` (it means scroll relative to `window`). Works only when `compositeImage` is `true` (default). | - | [.testplane/src/browser/commands/types.ts:57](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/types.ts#L57) | +| `tolerance?` | `number` | `2.3` | Maximum allowed difference between colors. Overrides config https://github.com/gemini-testing/testplane#browsers browsers.https://github.com/gemini-testing/testplane#tolerance tolerance value. **Remarks** Indicates maximum allowed CIEDE2000 difference between colors. Used only in non-strict mode. Increasing global default is not recommended, prefer changing tolerance for particular suites or states instead. By default it's 2.3 which should be enough for the most cases. | - | [.testplane/src/browser/commands/types.ts:16](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/types.ts#L16) | diff --git a/docs/api-reference/interfaces/AssertViewOptsConfig.mdx b/docs/api-reference/interfaces/AssertViewOptsConfig.mdx index 030940f..b4bf56e 100644 --- a/docs/api-reference/interfaces/AssertViewOptsConfig.mdx +++ b/docs/api-reference/interfaces/AssertViewOptsConfig.mdx @@ -6,6 +6,6 @@ | Property | Type | Default value | Description | Defined in | | ------ | ------ | ------ | ------ | ------ | -| `allowViewportOverflow` | `boolean` | `false` | Disables check that element is outside of the viewport left, top, right or bottom bounds. **Remarks** By default Testplane throws an error if element is outside the viewport bounds. This option disables check that element is outside of the viewport left, top, right or bottom bounds. And in this case if browser option [https://github.com/gemini-testing/testplane#compositeimage compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `false`, then only visible part of the element will be captured. But if [https://github.com/gemini-testing/testplane#compositeimage compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `true` (default), then in the resulting screenshot will appear the whole element with not visible parts outside of the bottom bounds of viewport. | testplane-docs/.testplane/src/config/types.ts:45 | -| `captureElementFromTop` | `boolean` | `true` | Ability to set capture element from the top area or from current position. **Remarks** In the first case viewport will be scrolled to the top of the element. | testplane-docs/.testplane/src/config/types.ts:33 | -| `ignoreElements` | `string` \| `string`[] | `[]` | DOM-node selectors which will be ignored (painted with a black rectangle) when comparing images. | testplane-docs/.testplane/src/config/types.ts:24 | +| `allowViewportOverflow` | `boolean` | `false` | Disables check that element is outside of the viewport left, top, right or bottom bounds. **Remarks** By default Testplane throws an error if element is outside the viewport bounds. This option disables check that element is outside of the viewport left, top, right or bottom bounds. And in this case if browser option [https://github.com/gemini-testing/testplane#compositeimage compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `false`, then only visible part of the element will be captured. But if [https://github.com/gemini-testing/testplane#compositeimage compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `true` (default), then in the resulting screenshot will appear the whole element with not visible parts outside of the bottom bounds of viewport. | [.testplane/src/config/types.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L45) | +| `captureElementFromTop` | `boolean` | `true` | Ability to set capture element from the top area or from current position. **Remarks** In the first case viewport will be scrolled to the top of the element. | [.testplane/src/config/types.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L33) | +| `ignoreElements` | `string` \| `string`[] | `[]` | DOM-node selectors which will be ignored (painted with a black rectangle) when comparing images. | [.testplane/src/config/types.ts:24](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L24) | diff --git a/docs/api-reference/interfaces/AssertViewResultDiff.mdx b/docs/api-reference/interfaces/AssertViewResultDiff.mdx index 0846dbf..c94c0d3 100644 --- a/docs/api-reference/interfaces/AssertViewResultDiff.mdx +++ b/docs/api-reference/interfaces/AssertViewResultDiff.mdx @@ -6,14 +6,14 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `currImg` | [`ImageInfo`](ImageInfo.mdx) | testplane-docs/.testplane/src/types/index.ts:83 | -| `diffBuffer?` | `ArrayBuffer` | testplane-docs/.testplane/src/types/index.ts:84 | -| `diffClusters` | `CoordBounds`[] | testplane-docs/.testplane/src/types/index.ts:85 | -| `diffOpts` | [`DiffOptions`](DiffOptions.mdx) | testplane-docs/.testplane/src/types/index.ts:86 | -| `diffRatio` | `number` | testplane-docs/.testplane/src/types/index.ts:93 | -| `differentPixels` | `number` | testplane-docs/.testplane/src/types/index.ts:92 | -| `message` | `string` | testplane-docs/.testplane/src/types/index.ts:87 | -| `name` | `"ImageDiffError"` | testplane-docs/.testplane/src/types/index.ts:88 | -| `refImg` | [`RefImageInfo`](RefImageInfo.mdx) | testplane-docs/.testplane/src/types/index.ts:89 | -| `stack` | `string` | testplane-docs/.testplane/src/types/index.ts:90 | -| `stateName` | `string` | testplane-docs/.testplane/src/types/index.ts:91 | +| `currImg` | [`ImageInfo`](ImageInfo.mdx) | [.testplane/src/types/index.ts:83](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L83) | +| `diffBuffer?` | `ArrayBuffer` | [.testplane/src/types/index.ts:84](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L84) | +| `diffClusters` | `CoordBounds`[] | [.testplane/src/types/index.ts:85](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L85) | +| `diffOpts` | [`DiffOptions`](DiffOptions.mdx) | [.testplane/src/types/index.ts:86](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L86) | +| `diffRatio` | `number` | [.testplane/src/types/index.ts:93](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L93) | +| `differentPixels` | `number` | [.testplane/src/types/index.ts:92](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L92) | +| `message` | `string` | [.testplane/src/types/index.ts:87](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L87) | +| `name` | `"ImageDiffError"` | [.testplane/src/types/index.ts:88](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L88) | +| `refImg` | [`RefImageInfo`](RefImageInfo.mdx) | [.testplane/src/types/index.ts:89](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L89) | +| `stack` | `string` | [.testplane/src/types/index.ts:90](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L90) | +| `stateName` | `string` | [.testplane/src/types/index.ts:91](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L91) | diff --git a/docs/api-reference/interfaces/AssertViewResultNoRefImage.mdx b/docs/api-reference/interfaces/AssertViewResultNoRefImage.mdx index a6a86f0..c4e57e0 100644 --- a/docs/api-reference/interfaces/AssertViewResultNoRefImage.mdx +++ b/docs/api-reference/interfaces/AssertViewResultNoRefImage.mdx @@ -6,9 +6,9 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `currImg` | [`ImageInfo`](ImageInfo.mdx) | testplane-docs/.testplane/src/types/index.ts:97 | -| `message` | `string` | testplane-docs/.testplane/src/types/index.ts:98 | -| `name` | `"NoRefImageError"` | testplane-docs/.testplane/src/types/index.ts:99 | -| `refImg` | [`RefImageInfo`](RefImageInfo.mdx) | testplane-docs/.testplane/src/types/index.ts:100 | -| `stack` | `string` | testplane-docs/.testplane/src/types/index.ts:101 | -| `stateName` | `string` | testplane-docs/.testplane/src/types/index.ts:102 | +| `currImg` | [`ImageInfo`](ImageInfo.mdx) | [.testplane/src/types/index.ts:97](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L97) | +| `message` | `string` | [.testplane/src/types/index.ts:98](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L98) | +| `name` | `"NoRefImageError"` | [.testplane/src/types/index.ts:99](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L99) | +| `refImg` | [`RefImageInfo`](RefImageInfo.mdx) | [.testplane/src/types/index.ts:100](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L100) | +| `stack` | `string` | [.testplane/src/types/index.ts:101](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L101) | +| `stateName` | `string` | [.testplane/src/types/index.ts:102](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L102) | diff --git a/docs/api-reference/interfaces/AssertViewResultSuccess.mdx b/docs/api-reference/interfaces/AssertViewResultSuccess.mdx index 66fbcf6..0b5cea8 100644 --- a/docs/api-reference/interfaces/AssertViewResultSuccess.mdx +++ b/docs/api-reference/interfaces/AssertViewResultSuccess.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `refImg` | [`RefImageInfo`](RefImageInfo.mdx) | testplane-docs/.testplane/src/types/index.ts:78 | -| `stateName` | `string` | testplane-docs/.testplane/src/types/index.ts:79 | +| `refImg` | [`RefImageInfo`](RefImageInfo.mdx) | [.testplane/src/types/index.ts:78](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L78) | +| `stateName` | `string` | [.testplane/src/types/index.ts:79](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L79) | diff --git a/docs/api-reference/interfaces/BeforeFileReadData.mdx b/docs/api-reference/interfaces/BeforeFileReadData.mdx index 72559ac..ad47023 100644 --- a/docs/api-reference/interfaces/BeforeFileReadData.mdx +++ b/docs/api-reference/interfaces/BeforeFileReadData.mdx @@ -10,8 +10,8 @@ | Property | Type | Description | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | -| `browser` | `string` | - | [`AfterFileReadData`](AfterFileReadData.mdx).`browser` | testplane-docs/.testplane/src/types/index.ts:176 | -| `file` | `string` | - | [`AfterFileReadData`](AfterFileReadData.mdx).`file` | testplane-docs/.testplane/src/types/index.ts:177 | -| ~~`hermione`~~ | [`GlobalHelper`](GlobalHelper.mdx) | **Deprecated** Use `testplane` instead | [`AfterFileReadData`](AfterFileReadData.mdx).`hermione` | testplane-docs/.testplane/src/types/index.ts:175 | -| `testParser` | `TestParserAPI` | - | - | testplane-docs/.testplane/src/types/index.ts:181 | -| `testplane` | [`GlobalHelper`](GlobalHelper.mdx) | - | [`AfterFileReadData`](AfterFileReadData.mdx).`testplane` | testplane-docs/.testplane/src/types/index.ts:171 | +| `browser` | `string` | - | [`AfterFileReadData`](AfterFileReadData.mdx).`browser` | [.testplane/src/types/index.ts:176](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L176) | +| `file` | `string` | - | [`AfterFileReadData`](AfterFileReadData.mdx).`file` | [.testplane/src/types/index.ts:177](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L177) | +| ~~`hermione`~~ | [`GlobalHelper`](GlobalHelper.mdx) | **Deprecated** Use `testplane` instead | [`AfterFileReadData`](AfterFileReadData.mdx).`hermione` | [.testplane/src/types/index.ts:175](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L175) | +| `testParser` | `TestParserAPI` | - | - | [.testplane/src/types/index.ts:181](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L181) | +| `testplane` | [`GlobalHelper`](GlobalHelper.mdx) | - | [`AfterFileReadData`](AfterFileReadData.mdx).`testplane` | [.testplane/src/types/index.ts:171](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L171) | diff --git a/docs/api-reference/interfaces/BrowserHistory.mdx b/docs/api-reference/interfaces/BrowserHistory.mdx index e60e2fe..3070b03 100644 --- a/docs/api-reference/interfaces/BrowserHistory.mdx +++ b/docs/api-reference/interfaces/BrowserHistory.mdx @@ -6,4 +6,4 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `runGroup` | (`callstack`: `Callstack`, `name`: `string`, `fn`: () => `unknown`) => `Promise`\<`unknown`\> | testplane-docs/.testplane/src/types/index.ts:185 | +| `runGroup` | (`callstack`: `Callstack`, `name`: `string`, `fn`: () => `unknown`) => `Promise`\<`unknown`\> | [.testplane/src/types/index.ts:185](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L185) | diff --git a/docs/api-reference/interfaces/BrowserInfo.mdx b/docs/api-reference/interfaces/BrowserInfo.mdx index cd0c869..4197243 100644 --- a/docs/api-reference/interfaces/BrowserInfo.mdx +++ b/docs/api-reference/interfaces/BrowserInfo.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `browserId` | `string` | testplane-docs/.testplane/src/types/index.ts:32 | -| `sessionId` | `string` | testplane-docs/.testplane/src/types/index.ts:33 | +| `browserId` | `string` | [.testplane/src/types/index.ts:32](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L32) | +| `sessionId` | `string` | [.testplane/src/types/index.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L33) | diff --git a/docs/api-reference/interfaces/BuildDiffOptsConfig.mdx b/docs/api-reference/interfaces/BuildDiffOptsConfig.mdx index af5bdf1..8640873 100644 --- a/docs/api-reference/interfaces/BuildDiffOptsConfig.mdx +++ b/docs/api-reference/interfaces/BuildDiffOptsConfig.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `ignoreAntialiasing` | `boolean` | testplane-docs/.testplane/src/config/types.ts:14 | -| `ignoreCaret` | `boolean` | testplane-docs/.testplane/src/config/types.ts:15 | +| `ignoreAntialiasing` | `boolean` | [.testplane/src/config/types.ts:14](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L14) | +| `ignoreCaret` | `boolean` | [.testplane/src/config/types.ts:15](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L15) | diff --git a/docs/api-reference/interfaces/CommandHistory.mdx b/docs/api-reference/interfaces/CommandHistory.mdx index 6be0bf8..6d92994 100644 --- a/docs/api-reference/interfaces/CommandHistory.mdx +++ b/docs/api-reference/interfaces/CommandHistory.mdx @@ -6,10 +6,10 @@ | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | -| `a` | `unknown`[] | Arguments: array of passed arguments | testplane-docs/.testplane/src/types/index.ts:111 | -| `c` | [`CommandHistory`](CommandHistory.mdx)[] | Children: array of children commands | testplane-docs/.testplane/src/types/index.ts:121 | -| `d` | `number` | Duration | testplane-docs/.testplane/src/types/index.ts:117 | -| `n` | `string` | Name: command name | testplane-docs/.testplane/src/types/index.ts:109 | -| `s` | `"b"` \| `"e"` | Scope: scope of execution (browser or element) | testplane-docs/.testplane/src/types/index.ts:119 | -| `te` | `number` | Time end | testplane-docs/.testplane/src/types/index.ts:115 | -| `ts` | `number` | Time start | testplane-docs/.testplane/src/types/index.ts:113 | +| `a` | `unknown`[] | Arguments: array of passed arguments | [.testplane/src/types/index.ts:111](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L111) | +| `c` | [`CommandHistory`](CommandHistory.mdx)[] | Children: array of children commands | [.testplane/src/types/index.ts:121](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L121) | +| `d` | `number` | Duration | [.testplane/src/types/index.ts:117](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L117) | +| `n` | `string` | Name: command name | [.testplane/src/types/index.ts:109](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L109) | +| `s` | `"b"` \| `"e"` | Scope: scope of execution (browser or element) | [.testplane/src/types/index.ts:119](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L119) | +| `te` | `number` | Time end | [.testplane/src/types/index.ts:115](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L115) | +| `ts` | `number` | Time start | [.testplane/src/types/index.ts:113](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L113) | diff --git a/docs/api-reference/interfaces/CommonConfig.mdx b/docs/api-reference/interfaces/CommonConfig.mdx index 662b570..edf685c 100644 --- a/docs/api-reference/interfaces/CommonConfig.mdx +++ b/docs/api-reference/interfaces/CommonConfig.mdx @@ -10,72 +10,72 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `antialiasingTolerance` | `number` | testplane-docs/.testplane/src/config/types.ts:133 | -| `assertViewOpts` | [`AssertViewOptsConfig`](AssertViewOptsConfig.mdx) | testplane-docs/.testplane/src/config/types.ts:136 | -| `automationProtocol` | `"webdriver"` \| `"devtools"` | testplane-docs/.testplane/src/config/types.ts:97 | -| `baseUrl` | `string` | testplane-docs/.testplane/src/config/types.ts:104 | -| `buildDiffOpts` | [`BuildDiffOptsConfig`](BuildDiffOptsConfig.mdx) | testplane-docs/.testplane/src/config/types.ts:135 | -| `calibrate` | `boolean` | testplane-docs/.testplane/src/config/types.ts:127 | -| `compareOpts` | [`CompareOptsConfig`](CompareOptsConfig.mdx) | testplane-docs/.testplane/src/config/types.ts:134 | -| `compositeImage` | `boolean` | testplane-docs/.testplane/src/config/types.ts:128 | -| `configPath?` | `string` | testplane-docs/.testplane/src/config/types.ts:96 | -| `desiredCapabilities` | `null` \| `Capabilities` | testplane-docs/.testplane/src/config/types.ts:98 | -| `devServer` | \{ `args`: `string`[]; `command`: `null` \| `string`; `cwd`: `null` \| `string`; `env`: `Record`\<`string`, `string`\>; `logs`: `boolean`; `readinessProbe`: `ReadinessProbe`; \} | testplane-docs/.testplane/src/config/types.ts:170 | -| `devServer.args` | `string`[] | testplane-docs/.testplane/src/config/types.ts:174 | -| `devServer.command` | `null` \| `string` | testplane-docs/.testplane/src/config/types.ts:171 | -| `devServer.cwd` | `null` \| `string` | testplane-docs/.testplane/src/config/types.ts:172 | -| `devServer.env` | `Record`\<`string`, `string`\> | testplane-docs/.testplane/src/config/types.ts:173 | -| `devServer.logs` | `boolean` | testplane-docs/.testplane/src/config/types.ts:175 | -| `devServer.readinessProbe` | `ReadinessProbe` | testplane-docs/.testplane/src/config/types.ts:176 | -| `expectOpts` | [`ExpectOptsConfig`](ExpectOptsConfig.mdx) | testplane-docs/.testplane/src/config/types.ts:137 | -| `gridUrl` | `string` | testplane-docs/.testplane/src/config/types.ts:103 | -| `headers` | `null` \| `Record`\<`string`, `string`\> | testplane-docs/.testplane/src/config/types.ts:142 | -| `headless` | `null` \| `boolean` \| `"old"` \| `"new"` | testplane-docs/.testplane/src/config/types.ts:153 | -| `httpTimeout` | `number` | testplane-docs/.testplane/src/config/types.ts:109 | -| `isolation` | `boolean` | testplane-docs/.testplane/src/config/types.ts:154 | -| `key` | `null` \| `string` | testplane-docs/.testplane/src/config/types.ts:149 | -| `lastFailed` | \{ `input`: `string` \| `string`[]; `only`: `boolean`; `output`: `string`; \} | testplane-docs/.testplane/src/config/types.ts:156 | -| `lastFailed.input` | `string` \| `string`[] | testplane-docs/.testplane/src/config/types.ts:158 | -| `lastFailed.only` | `boolean` | testplane-docs/.testplane/src/config/types.ts:157 | -| `lastFailed.output` | `string` | testplane-docs/.testplane/src/config/types.ts:159 | -| `meta` | \{\} | testplane-docs/.testplane/src/config/types.ts:138 | -| `openAndWaitOpts` | \{ `failOnNetworkError`: `boolean`; `ignoreNetworkErrorsPatterns`: (`string` \| `RegExp`)[]; `timeout`: `number`; `waitNetworkIdle`: `boolean`; `waitNetworkIdleTimeout`: `number`; \} | testplane-docs/.testplane/src/config/types.ts:162 | -| `openAndWaitOpts.failOnNetworkError` | `boolean` | testplane-docs/.testplane/src/config/types.ts:166 | -| `openAndWaitOpts.ignoreNetworkErrorsPatterns` | (`string` \| `RegExp`)[] | testplane-docs/.testplane/src/config/types.ts:167 | -| `openAndWaitOpts.timeout?` | `number` | testplane-docs/.testplane/src/config/types.ts:163 | -| `openAndWaitOpts.waitNetworkIdle` | `boolean` | testplane-docs/.testplane/src/config/types.ts:164 | -| `openAndWaitOpts.waitNetworkIdleTimeout` | `number` | testplane-docs/.testplane/src/config/types.ts:165 | -| `orientation` | `null` \| `"landscape"` \| `"portrait"` | testplane-docs/.testplane/src/config/types.ts:140 | -| `pageLoadTimeout` | `null` \| `number` | testplane-docs/.testplane/src/config/types.ts:111 | -| `region` | `null` \| `string` | testplane-docs/.testplane/src/config/types.ts:150 | -| `resetCursor` | `boolean` | testplane-docs/.testplane/src/config/types.ts:141 | -| `retry` | `number` | testplane-docs/.testplane/src/config/types.ts:107 | -| `saveHistoryMode` | `"all"` \| `"none"` \| `"onlyFailed"` | testplane-docs/.testplane/src/config/types.ts:117 | -| `screenshotDelay` | `number` | testplane-docs/.testplane/src/config/types.ts:131 | -| `screenshotMode` | `"auto"` \| `"fullpage"` \| `"viewport"` | testplane-docs/.testplane/src/config/types.ts:130 | -| `screenshotPath` | `null` \| `string` | testplane-docs/.testplane/src/config/types.ts:125 | -| `sessionEnvFlags` | `Record`\< \| `"isW3C"` \| `"isAndroid"` \| `"isMobile"` \| `"isIOS"` \| `"isSauce"` \| `"isSeleniumStandalone"` \| `"isChrome"`, `boolean`\> | testplane-docs/.testplane/src/config/types.ts:99 | -| `sessionQuitTimeout` | `null` \| `number` | testplane-docs/.testplane/src/config/types.ts:113 | -| `sessionRequestTimeout` | `null` \| `number` | testplane-docs/.testplane/src/config/types.ts:112 | -| `sessionsPerBrowser` | `number` | testplane-docs/.testplane/src/config/types.ts:105 | -| `strictSSL` | `null` \| `boolean` | testplane-docs/.testplane/src/config/types.ts:147 | -| `strictTestsOrder` | `boolean` | testplane-docs/.testplane/src/config/types.ts:129 | -| `system` | [`SystemConfig`](SystemConfig.mdx) | testplane-docs/.testplane/src/config/types.ts:152 | -| `takeScreenshotOnFails` | \{ `assertViewFail`: `boolean`; `testFail`: `boolean`; \} | testplane-docs/.testplane/src/config/types.ts:118 | -| `takeScreenshotOnFails.assertViewFail` | `boolean` | testplane-docs/.testplane/src/config/types.ts:120 | -| `takeScreenshotOnFails.testFail` | `boolean` | testplane-docs/.testplane/src/config/types.ts:119 | -| `takeScreenshotOnFailsMode` | `"fullpage"` \| `"viewport"` | testplane-docs/.testplane/src/config/types.ts:123 | -| `takeScreenshotOnFailsTimeout` | `null` \| `number` | testplane-docs/.testplane/src/config/types.ts:122 | -| `testTimeout` | `null` \| `number` | testplane-docs/.testplane/src/config/types.ts:114 | -| `testsPerSession` | `number` | testplane-docs/.testplane/src/config/types.ts:106 | -| `tolerance` | `number` | testplane-docs/.testplane/src/config/types.ts:132 | -| `transformRequest` | (`req`: `RequestOptions`) => `RequestOptions` | testplane-docs/.testplane/src/config/types.ts:144 | -| `transformResponse` | (`res`: `Response`, `req`: `RequestOptions`) => `Response` | testplane-docs/.testplane/src/config/types.ts:145 | -| `urlHttpTimeout` | `null` \| `number` | testplane-docs/.testplane/src/config/types.ts:110 | -| `user` | `null` \| `string` | testplane-docs/.testplane/src/config/types.ts:148 | -| `waitInterval` | `number` | testplane-docs/.testplane/src/config/types.ts:116 | -| `waitTimeout` | `number` | testplane-docs/.testplane/src/config/types.ts:115 | -| `windowSize` | `null` \| `string` \| \{ `height`: `number`; `width`: `number`; \} | testplane-docs/.testplane/src/config/types.ts:139 | +| `antialiasingTolerance` | `number` | [.testplane/src/config/types.ts:133](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L133) | +| `assertViewOpts` | [`AssertViewOptsConfig`](AssertViewOptsConfig.mdx) | [.testplane/src/config/types.ts:136](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L136) | +| `automationProtocol` | `"webdriver"` \| `"devtools"` | [.testplane/src/config/types.ts:97](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L97) | +| `baseUrl` | `string` | [.testplane/src/config/types.ts:104](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L104) | +| `buildDiffOpts` | [`BuildDiffOptsConfig`](BuildDiffOptsConfig.mdx) | [.testplane/src/config/types.ts:135](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L135) | +| `calibrate` | `boolean` | [.testplane/src/config/types.ts:127](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L127) | +| `compareOpts` | [`CompareOptsConfig`](CompareOptsConfig.mdx) | [.testplane/src/config/types.ts:134](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L134) | +| `compositeImage` | `boolean` | [.testplane/src/config/types.ts:128](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L128) | +| `configPath?` | `string` | [.testplane/src/config/types.ts:96](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L96) | +| `desiredCapabilities` | `null` \| `Capabilities` | [.testplane/src/config/types.ts:98](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L98) | +| `devServer` | \{ `args`: `string`[]; `command`: `null` \| `string`; `cwd`: `null` \| `string`; `env`: `Record`\<`string`, `string`\>; `logs`: `boolean`; `readinessProbe`: `ReadinessProbe`; \} | [.testplane/src/config/types.ts:170](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L170) | +| `devServer.args` | `string`[] | [.testplane/src/config/types.ts:174](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L174) | +| `devServer.command` | `null` \| `string` | [.testplane/src/config/types.ts:171](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L171) | +| `devServer.cwd` | `null` \| `string` | [.testplane/src/config/types.ts:172](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L172) | +| `devServer.env` | `Record`\<`string`, `string`\> | [.testplane/src/config/types.ts:173](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L173) | +| `devServer.logs` | `boolean` | [.testplane/src/config/types.ts:175](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L175) | +| `devServer.readinessProbe` | `ReadinessProbe` | [.testplane/src/config/types.ts:176](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L176) | +| `expectOpts` | [`ExpectOptsConfig`](ExpectOptsConfig.mdx) | [.testplane/src/config/types.ts:137](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L137) | +| `gridUrl` | `string` | [.testplane/src/config/types.ts:103](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L103) | +| `headers` | `null` \| `Record`\<`string`, `string`\> | [.testplane/src/config/types.ts:142](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L142) | +| `headless` | `null` \| `boolean` \| `"old"` \| `"new"` | [.testplane/src/config/types.ts:153](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L153) | +| `httpTimeout` | `number` | [.testplane/src/config/types.ts:109](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L109) | +| `isolation` | `boolean` | [.testplane/src/config/types.ts:154](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L154) | +| `key` | `null` \| `string` | [.testplane/src/config/types.ts:149](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L149) | +| `lastFailed` | \{ `input`: `string` \| `string`[]; `only`: `boolean`; `output`: `string`; \} | [.testplane/src/config/types.ts:156](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L156) | +| `lastFailed.input` | `string` \| `string`[] | [.testplane/src/config/types.ts:158](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L158) | +| `lastFailed.only` | `boolean` | [.testplane/src/config/types.ts:157](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L157) | +| `lastFailed.output` | `string` | [.testplane/src/config/types.ts:159](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L159) | +| `meta` | \{\} | [.testplane/src/config/types.ts:138](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L138) | +| `openAndWaitOpts` | \{ `failOnNetworkError`: `boolean`; `ignoreNetworkErrorsPatterns`: (`string` \| `RegExp`)[]; `timeout`: `number`; `waitNetworkIdle`: `boolean`; `waitNetworkIdleTimeout`: `number`; \} | [.testplane/src/config/types.ts:162](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L162) | +| `openAndWaitOpts.failOnNetworkError` | `boolean` | [.testplane/src/config/types.ts:166](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L166) | +| `openAndWaitOpts.ignoreNetworkErrorsPatterns` | (`string` \| `RegExp`)[] | [.testplane/src/config/types.ts:167](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L167) | +| `openAndWaitOpts.timeout?` | `number` | [.testplane/src/config/types.ts:163](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L163) | +| `openAndWaitOpts.waitNetworkIdle` | `boolean` | [.testplane/src/config/types.ts:164](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L164) | +| `openAndWaitOpts.waitNetworkIdleTimeout` | `number` | [.testplane/src/config/types.ts:165](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L165) | +| `orientation` | `null` \| `"landscape"` \| `"portrait"` | [.testplane/src/config/types.ts:140](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L140) | +| `pageLoadTimeout` | `null` \| `number` | [.testplane/src/config/types.ts:111](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L111) | +| `region` | `null` \| `string` | [.testplane/src/config/types.ts:150](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L150) | +| `resetCursor` | `boolean` | [.testplane/src/config/types.ts:141](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L141) | +| `retry` | `number` | [.testplane/src/config/types.ts:107](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L107) | +| `saveHistoryMode` | `"all"` \| `"none"` \| `"onlyFailed"` | [.testplane/src/config/types.ts:117](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L117) | +| `screenshotDelay` | `number` | [.testplane/src/config/types.ts:131](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L131) | +| `screenshotMode` | `"auto"` \| `"fullpage"` \| `"viewport"` | [.testplane/src/config/types.ts:130](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L130) | +| `screenshotPath` | `null` \| `string` | [.testplane/src/config/types.ts:125](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L125) | +| `sessionEnvFlags` | `Record`\< \| `"isW3C"` \| `"isAndroid"` \| `"isMobile"` \| `"isIOS"` \| `"isSauce"` \| `"isSeleniumStandalone"` \| `"isChrome"`, `boolean`\> | [.testplane/src/config/types.ts:99](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L99) | +| `sessionQuitTimeout` | `null` \| `number` | [.testplane/src/config/types.ts:113](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L113) | +| `sessionRequestTimeout` | `null` \| `number` | [.testplane/src/config/types.ts:112](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L112) | +| `sessionsPerBrowser` | `number` | [.testplane/src/config/types.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L105) | +| `strictSSL` | `null` \| `boolean` | [.testplane/src/config/types.ts:147](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L147) | +| `strictTestsOrder` | `boolean` | [.testplane/src/config/types.ts:129](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L129) | +| `system` | [`SystemConfig`](SystemConfig.mdx) | [.testplane/src/config/types.ts:152](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L152) | +| `takeScreenshotOnFails` | \{ `assertViewFail`: `boolean`; `testFail`: `boolean`; \} | [.testplane/src/config/types.ts:118](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L118) | +| `takeScreenshotOnFails.assertViewFail` | `boolean` | [.testplane/src/config/types.ts:120](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L120) | +| `takeScreenshotOnFails.testFail` | `boolean` | [.testplane/src/config/types.ts:119](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L119) | +| `takeScreenshotOnFailsMode` | `"fullpage"` \| `"viewport"` | [.testplane/src/config/types.ts:123](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L123) | +| `takeScreenshotOnFailsTimeout` | `null` \| `number` | [.testplane/src/config/types.ts:122](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L122) | +| `testTimeout` | `null` \| `number` | [.testplane/src/config/types.ts:114](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L114) | +| `testsPerSession` | `number` | [.testplane/src/config/types.ts:106](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L106) | +| `tolerance` | `number` | [.testplane/src/config/types.ts:132](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L132) | +| `transformRequest` | (`req`: `RequestOptions`) => `RequestOptions` | [.testplane/src/config/types.ts:144](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L144) | +| `transformResponse` | (`res`: `Response`, `req`: `RequestOptions`) => `Response` | [.testplane/src/config/types.ts:145](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L145) | +| `urlHttpTimeout` | `null` \| `number` | [.testplane/src/config/types.ts:110](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L110) | +| `user` | `null` \| `string` | [.testplane/src/config/types.ts:148](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L148) | +| `waitInterval` | `number` | [.testplane/src/config/types.ts:116](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L116) | +| `waitTimeout` | `number` | [.testplane/src/config/types.ts:115](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L115) | +| `windowSize` | `null` \| `string` \| \{ `height`: `number`; `width`: `number`; \} | [.testplane/src/config/types.ts:139](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L139) | ## Methods @@ -97,7 +97,7 @@ prepareBrowser(browser): null | void #### Defined in -testplane-docs/.testplane/src/config/types.ts:124 +[.testplane/src/config/types.ts:124](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L124) *** @@ -119,7 +119,7 @@ screenshotsDir(test): string #### Defined in -testplane-docs/.testplane/src/config/types.ts:126 +[.testplane/src/config/types.ts:126](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L126) *** @@ -143,4 +143,4 @@ shouldRetry(testInfo): null | boolean #### Defined in -testplane-docs/.testplane/src/config/types.ts:108 +[.testplane/src/config/types.ts:108](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L108) diff --git a/docs/api-reference/interfaces/CompareOptsConfig.mdx b/docs/api-reference/interfaces/CompareOptsConfig.mdx index cd6964b..9fdd13d 100644 --- a/docs/api-reference/interfaces/CompareOptsConfig.mdx +++ b/docs/api-reference/interfaces/CompareOptsConfig.mdx @@ -6,6 +6,6 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `clustersSize` | `number` | testplane-docs/.testplane/src/config/types.ts:9 | -| `shouldCluster` | `boolean` | testplane-docs/.testplane/src/config/types.ts:8 | -| `stopOnFirstFail` | `boolean` | testplane-docs/.testplane/src/config/types.ts:10 | +| `clustersSize` | `number` | [.testplane/src/config/types.ts:9](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L9) | +| `shouldCluster` | `boolean` | [.testplane/src/config/types.ts:8](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L8) | +| `stopOnFirstFail` | `boolean` | [.testplane/src/config/types.ts:10](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L10) | diff --git a/docs/api-reference/interfaces/DiffOptions.mdx b/docs/api-reference/interfaces/DiffOptions.mdx index df740a3..4254892 100644 --- a/docs/api-reference/interfaces/DiffOptions.mdx +++ b/docs/api-reference/interfaces/DiffOptions.mdx @@ -8,18 +8,8 @@ ## Properties -| Property | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | -| `antialiasingTolerance?` | `number` | Sometimes the antialiasing algorithm can work incorrectly due to some features of the browser rendering engine. Use the option antialiasingTolerance to make the algorithm less strict. With this option you can specify the minimum difference in brightness (zero by default) between the darkest/lightest pixel (which is adjacent to the antialiasing pixel) and theirs adjacent pixels. We recommend that you don't increase this value above 10. If you need to increase more than 10 then this is definitely not antialiasing. | `LooksSameOptions.antialiasingTolerance` | testplane/node\_modules/looks-same/index.d.ts:139 | -| `clustersSize?` | `number` | Radius for every diff cluster | `LooksSameOptions.clustersSize` | testplane/node\_modules/looks-same/index.d.ts:152 | -| `createDiffImage?` | `boolean` | If you need both to compare images and create diff image | `LooksSameOptions.createDiffImage` | testplane/node\_modules/looks-same/index.d.ts:156 | -| `current` | `string` | - | - | testplane-docs/.testplane/src/types/index.ts:72 | -| `diffColor` | `string` | - | - | testplane-docs/.testplane/src/types/index.ts:74 | -| `ignoreAntialiasing?` | `boolean` | Some images has difference while comparing because of antialiasing. These diffs will be ignored by default. You can use ignoreAntialiasing option with false value to disable ignoring such diffs. In that way antialiased pixels will be marked as diffs. | `LooksSameOptions.ignoreAntialiasing` | testplane/node\_modules/looks-same/index.d.ts:130 | -| `ignoreCaret?` | `boolean` | Text caret in text input elements it is a pain for visual regression tasks, because it is always blinks. These diffs will be ignored by default. You can use `ignoreCaret` option with `false` value to disable ignoring such diffs. In that way text caret will be marked as diffs. | `LooksSameOptions.ignoreCaret` | testplane/node\_modules/looks-same/index.d.ts:124 | -| `pixelRatio?` | `number` | Some devices can have different proportion between physical and logical screen resolutions also known as pixel ratio. Default value for this proportion is 1. This param also affects the comparison result, so it can be set manually with pixelRatio option. | `LooksSameOptions.pixelRatio` | testplane/node\_modules/looks-same/index.d.ts:118 | -| `reference` | `string` | - | - | testplane-docs/.testplane/src/types/index.ts:73 | -| `shouldCluster?` | `boolean` | Responsible for diff bounds clustering | `LooksSameOptions.shouldCluster` | testplane/node\_modules/looks-same/index.d.ts:148 | -| `stopOnFirstFail?` | `boolean` | Responsible for diff area which will be returned when comparing images. Diff bounds will contain the whole diff if stopOnFirstFail is false and only first diff pixel - otherwise. | `LooksSameOptions.stopOnFirstFail` | testplane/node\_modules/looks-same/index.d.ts:144 | -| `strict?` | `boolean` | By default, it will detect only noticeable differences. If you wish to detect any difference, use strict options. | `LooksSameOptions.strict` | testplane/node\_modules/looks-same/index.d.ts:108 | -| `tolerance?` | `number` | You can also adjust the ΔE value that will be treated as error in non-strict mode. | `LooksSameOptions.tolerance` | testplane/node\_modules/looks-same/index.d.ts:112 | +| Property | Type | Defined in | +| ------ | ------ | ------ | +| `current` | `string` | [.testplane/src/types/index.ts:72](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L72) | +| `diffColor` | `string` | [.testplane/src/types/index.ts:74](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L74) | +| `reference` | `string` | [.testplane/src/types/index.ts:73](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L73) | diff --git a/docs/api-reference/interfaces/ErrorDetails.mdx b/docs/api-reference/interfaces/ErrorDetails.mdx index f5eeb87..4823100 100644 --- a/docs/api-reference/interfaces/ErrorDetails.mdx +++ b/docs/api-reference/interfaces/ErrorDetails.mdx @@ -6,6 +6,6 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `data?` | `unknown` | testplane-docs/.testplane/src/types/index.ts:53 | -| `filePath` | `string` | testplane-docs/.testplane/src/types/index.ts:54 | -| `title` | `string` | testplane-docs/.testplane/src/types/index.ts:52 | +| `data?` | `unknown` | [.testplane/src/types/index.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L53) | +| `filePath` | `string` | [.testplane/src/types/index.ts:54](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L54) | +| `title` | `string` | [.testplane/src/types/index.ts:52](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L52) | diff --git a/docs/api-reference/interfaces/ExecutionThreadToolCtx.mdx b/docs/api-reference/interfaces/ExecutionThreadToolCtx.mdx index 47daa55..e8c4c21 100644 --- a/docs/api-reference/interfaces/ExecutionThreadToolCtx.mdx +++ b/docs/api-reference/interfaces/ExecutionThreadToolCtx.mdx @@ -6,9 +6,9 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `assertViewResults` | \{ `add`: (`result`) => `void`; `get`: () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[]; `hasFails`: () => `boolean`; `hasState`: (`stateName`) => `boolean`; `toRawObject`: () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[]; \} | testplane-docs/.testplane/src/types/index.ts:125 | -| `assertViewResults.add` | (`result`: [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)) => `void` | testplane-docs/.testplane/src/types/index.ts:126 | -| `assertViewResults.get` | () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | testplane-docs/.testplane/src/types/index.ts:130 | -| `assertViewResults.hasFails` | () => `boolean` | testplane-docs/.testplane/src/types/index.ts:127 | -| `assertViewResults.hasState` | (`stateName`: `string`) => `boolean` | testplane-docs/.testplane/src/types/index.ts:128 | -| `assertViewResults.toRawObject` | () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | testplane-docs/.testplane/src/types/index.ts:129 | +| `assertViewResults` | \{ `add`: (`result`) => `void`; `get`: () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[]; `hasFails`: () => `boolean`; `hasState`: (`stateName`) => `boolean`; `toRawObject`: () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[]; \} | [.testplane/src/types/index.ts:125](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L125) | +| `assertViewResults.add` | (`result`: [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)) => `void` | [.testplane/src/types/index.ts:126](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L126) | +| `assertViewResults.get` | () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | [.testplane/src/types/index.ts:130](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L130) | +| `assertViewResults.hasFails` | () => `boolean` | [.testplane/src/types/index.ts:127](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L127) | +| `assertViewResults.hasState` | (`stateName`: `string`) => `boolean` | [.testplane/src/types/index.ts:128](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L128) | +| `assertViewResults.toRawObject` | () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | [.testplane/src/types/index.ts:129](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L129) | diff --git a/docs/api-reference/interfaces/ExpectOptsConfig.mdx b/docs/api-reference/interfaces/ExpectOptsConfig.mdx index 8ad07b9..7fedb69 100644 --- a/docs/api-reference/interfaces/ExpectOptsConfig.mdx +++ b/docs/api-reference/interfaces/ExpectOptsConfig.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `interval` | `number` | testplane-docs/.testplane/src/config/types.ts:50 | -| `wait` | `number` | testplane-docs/.testplane/src/config/types.ts:49 | +| `interval` | `number` | [.testplane/src/config/types.ts:50](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L50) | +| `wait` | `number` | [.testplane/src/config/types.ts:49](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L49) | diff --git a/docs/api-reference/interfaces/GlobalHelper.mdx b/docs/api-reference/interfaces/GlobalHelper.mdx index 14fb338..5df7c73 100644 --- a/docs/api-reference/interfaces/GlobalHelper.mdx +++ b/docs/api-reference/interfaces/GlobalHelper.mdx @@ -6,9 +6,9 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `also` | `AlsoController` | testplane-docs/.testplane/src/types/index.ts:165 | -| `browser` | (`browserName`: `string`) => `BrowserVersionController` | testplane-docs/.testplane/src/types/index.ts:166 | -| `config` | `ConfigController` | testplane-docs/.testplane/src/types/index.ts:167 | -| `ctx` | [`TestplaneCtx`](TestplaneCtx.mdx) | testplane-docs/.testplane/src/types/index.ts:162 | -| `only` | `OnlyController` | testplane-docs/.testplane/src/types/index.ts:164 | -| `skip` | `SkipController` | testplane-docs/.testplane/src/types/index.ts:163 | +| `also` | `AlsoController` | [.testplane/src/types/index.ts:165](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L165) | +| `browser` | (`browserName`: `string`) => `BrowserVersionController` | [.testplane/src/types/index.ts:166](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L166) | +| `config` | `ConfigController` | [.testplane/src/types/index.ts:167](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L167) | +| `ctx` | [`TestplaneCtx`](TestplaneCtx.mdx) | [.testplane/src/types/index.ts:162](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L162) | +| `only` | `OnlyController` | [.testplane/src/types/index.ts:164](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L164) | +| `skip` | `SkipController` | [.testplane/src/types/index.ts:163](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L163) | diff --git a/docs/api-reference/interfaces/ImageBase64.mdx b/docs/api-reference/interfaces/ImageBase64.mdx index 48a744d..9ecfa74 100644 --- a/docs/api-reference/interfaces/ImageBase64.mdx +++ b/docs/api-reference/interfaces/ImageBase64.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `base64` | `string` | testplane-docs/.testplane/src/types/index.ts:47 | -| `size` | [`ImageSize`](ImageSize.mdx) | testplane-docs/.testplane/src/types/index.ts:48 | +| `base64` | `string` | [.testplane/src/types/index.ts:47](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L47) | +| `size` | [`ImageSize`](ImageSize.mdx) | [.testplane/src/types/index.ts:48](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L48) | diff --git a/docs/api-reference/interfaces/ImageInfo.mdx b/docs/api-reference/interfaces/ImageInfo.mdx index 5391b1e..7e062ee 100644 --- a/docs/api-reference/interfaces/ImageInfo.mdx +++ b/docs/api-reference/interfaces/ImageInfo.mdx @@ -10,5 +10,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `path` | `string` | testplane-docs/.testplane/src/types/index.ts:63 | -| `size` | [`ImageSize`](ImageSize.mdx) | testplane-docs/.testplane/src/types/index.ts:64 | +| `path` | `string` | [.testplane/src/types/index.ts:63](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L63) | +| `size` | [`ImageSize`](ImageSize.mdx) | [.testplane/src/types/index.ts:64](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L64) | diff --git a/docs/api-reference/interfaces/ImageSize.mdx b/docs/api-reference/interfaces/ImageSize.mdx index 9b34c8f..a9e9b00 100644 --- a/docs/api-reference/interfaces/ImageSize.mdx +++ b/docs/api-reference/interfaces/ImageSize.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `height` | `number` | testplane-docs/.testplane/src/types/index.ts:43 | -| `width` | `number` | testplane-docs/.testplane/src/types/index.ts:42 | +| `height` | `number` | [.testplane/src/types/index.ts:43](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L43) | +| `width` | `number` | [.testplane/src/types/index.ts:42](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L42) | diff --git a/docs/api-reference/interfaces/InterceptData.mdx b/docs/api-reference/interfaces/InterceptData.mdx index 3cb78fc..6f1dbe8 100644 --- a/docs/api-reference/interfaces/InterceptData.mdx +++ b/docs/api-reference/interfaces/InterceptData.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `data?` | [`Test`](../classes/Test.mdx) | testplane-docs/.testplane/src/events/types.ts:6 | -| `event?` | [`InterceptedEvent`](../type-aliases/InterceptedEvent.mdx) | testplane-docs/.testplane/src/events/types.ts:5 | +| `data?` | [`Test`](../classes/Test.mdx) | [.testplane/src/events/types.ts:6](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/types.ts#L6) | +| `event?` | [`InterceptedEvent`](../type-aliases/InterceptedEvent.mdx) | [.testplane/src/events/types.ts:5](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/types.ts#L5) | diff --git a/docs/api-reference/interfaces/MochaOpts.mdx b/docs/api-reference/interfaces/MochaOpts.mdx index 33e2cb8..cec6040 100644 --- a/docs/api-reference/interfaces/MochaOpts.mdx +++ b/docs/api-reference/interfaces/MochaOpts.mdx @@ -6,6 +6,6 @@ | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | -| `grep?` | `string` \| `RegExp` | string or regexp to filter tests with. | testplane-docs/.testplane/src/config/types.ts:61 | -| `slow?` | `number` | milliseconds to wait before considering a test slow. | testplane-docs/.testplane/src/config/types.ts:55 | -| `timeout?` | `number` | timeout in milliseconds or time string like '1s'. | testplane-docs/.testplane/src/config/types.ts:58 | +| `grep?` | `string` \| `RegExp` | string or regexp to filter tests with. | [.testplane/src/config/types.ts:61](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L61) | +| `slow?` | `number` | milliseconds to wait before considering a test slow. | [.testplane/src/config/types.ts:55](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L55) | +| `timeout?` | `number` | timeout in milliseconds or time string like '1s'. | [.testplane/src/config/types.ts:58](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L58) | diff --git a/docs/api-reference/interfaces/ReadTestsOpts.mdx b/docs/api-reference/interfaces/ReadTestsOpts.mdx index 88f4fbc..ca07eb1 100644 --- a/docs/api-reference/interfaces/ReadTestsOpts.mdx +++ b/docs/api-reference/interfaces/ReadTestsOpts.mdx @@ -10,12 +10,12 @@ | Property | Type | Inherited from | Defined in | | ------ | ------ | ------ | ------ | -| `browsers` | `string`[] | `Pick.browsers` | testplane-docs/.testplane/src/testplane.ts:23 | -| `grep` | `RegExp` | `Pick.grep` | testplane-docs/.testplane/src/testplane.ts:25 | -| `ignore` | `string` \| `string`[] | - | testplane-docs/.testplane/src/testplane.ts:49 | -| `replMode` | \{ `beforeTest`: `boolean`; `enabled`: `boolean`; `onFail`: `boolean`; \} | `Pick.replMode` | testplane-docs/.testplane/src/testplane.ts:33 | -| `replMode.beforeTest` | `boolean` | - | testplane-docs/.testplane/src/testplane.ts:35 | -| `replMode.enabled` | `boolean` | - | testplane-docs/.testplane/src/testplane.ts:34 | -| `replMode.onFail` | `boolean` | - | testplane-docs/.testplane/src/testplane.ts:36 | -| `sets` | `string`[] | `Pick.sets` | testplane-docs/.testplane/src/testplane.ts:24 | -| `silent` | `boolean` | - | testplane-docs/.testplane/src/testplane.ts:48 | +| `browsers` | `string`[] | `Pick.browsers` | [.testplane/src/testplane.ts:23](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L23) | +| `grep` | `RegExp` | `Pick.grep` | [.testplane/src/testplane.ts:25](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L25) | +| `ignore` | `string` \| `string`[] | - | [.testplane/src/testplane.ts:49](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L49) | +| `replMode` | \{ `beforeTest`: `boolean`; `enabled`: `boolean`; `onFail`: `boolean`; \} | `Pick.replMode` | [.testplane/src/testplane.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L33) | +| `replMode.beforeTest` | `boolean` | - | [.testplane/src/testplane.ts:35](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L35) | +| `replMode.enabled` | `boolean` | - | [.testplane/src/testplane.ts:34](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L34) | +| `replMode.onFail` | `boolean` | - | [.testplane/src/testplane.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L36) | +| `sets` | `string`[] | `Pick.sets` | [.testplane/src/testplane.ts:24](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L24) | +| `silent` | `boolean` | - | [.testplane/src/testplane.ts:48](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L48) | diff --git a/docs/api-reference/interfaces/RefImageInfo.mdx b/docs/api-reference/interfaces/RefImageInfo.mdx index 3c77d75..4a275d4 100644 --- a/docs/api-reference/interfaces/RefImageInfo.mdx +++ b/docs/api-reference/interfaces/RefImageInfo.mdx @@ -10,6 +10,6 @@ | Property | Type | Inherited from | Defined in | | ------ | ------ | ------ | ------ | -| `path` | `string` | [`ImageInfo`](ImageInfo.mdx).`path` | testplane-docs/.testplane/src/types/index.ts:63 | -| `relativePath` | `string` | - | testplane-docs/.testplane/src/types/index.ts:68 | -| `size` | [`ImageSize`](ImageSize.mdx) | [`ImageInfo`](ImageInfo.mdx).`size` | testplane-docs/.testplane/src/types/index.ts:64 | +| `path` | `string` | [`ImageInfo`](ImageInfo.mdx).`path` | [.testplane/src/types/index.ts:63](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L63) | +| `relativePath` | `string` | - | [.testplane/src/types/index.ts:68](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L68) | +| `size` | [`ImageSize`](ImageSize.mdx) | [`ImageInfo`](ImageInfo.mdx).`size` | [.testplane/src/types/index.ts:64](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L64) | diff --git a/docs/api-reference/interfaces/RootSuite.mdx b/docs/api-reference/interfaces/RootSuite.mdx index ce72ca0..aeed1a1 100644 --- a/docs/api-reference/interfaces/RootSuite.mdx +++ b/docs/api-reference/interfaces/RootSuite.mdx @@ -10,8 +10,8 @@ | Property | Modifier | Type | Default value | Overrides | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | ------ | ------ | -| `parent` | `public` | `null` \| [`Suite`](../classes/Suite.mdx) | `null` | - | [`Suite`](../classes/Suite.mdx).`parent` | testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:6 | -| `root` | `public` | `true` | `undefined` | [`Suite`](../classes/Suite.mdx).[`root`](../classes/Suite.mdx#root) | - | testplane-docs/.testplane/src/types/index.ts:28 | +| `parent` | `public` | `null` \| [`Suite`](../classes/Suite.mdx) | `null` | - | [`Suite`](../classes/Suite.mdx).`parent` | [.testplane/src/test-reader/test-object/test-object.ts:6](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L6) | +| `root` | `public` | `true` | `undefined` | [`Suite`](../classes/Suite.mdx).[`root`](../classes/Suite.mdx#root) | - | [.testplane/src/types/index.ts:28](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L28) | ## Accessors @@ -31,7 +31,7 @@ get afterEachHooks(): Hook[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:95 +[.testplane/src/test-reader/test-object/suite.ts:95](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L95) *** @@ -51,7 +51,7 @@ get beforeEachHooks(): Hook[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:91 +[.testplane/src/test-reader/test-object/suite.ts:91](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L91) *** @@ -81,7 +81,7 @@ set browserId(id): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:93 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:93](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L93) *** @@ -111,7 +111,7 @@ set browserVersion(version): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:101 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:101](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L101) *** @@ -141,7 +141,7 @@ set disabled(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:69 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:69](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L69) *** @@ -161,7 +161,7 @@ get file(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:45 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L45) *** @@ -181,7 +181,7 @@ get hasBrowserVersionOverwritten(): boolean #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:105 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L105) *** @@ -201,7 +201,7 @@ get id(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:41 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L41) *** @@ -231,7 +231,7 @@ set pending(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:53 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L53) *** @@ -261,7 +261,7 @@ set silentSkip(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:77 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:77](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L77) *** @@ -291,7 +291,7 @@ set skipReason(reason): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:61 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:61](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L61) *** @@ -311,7 +311,7 @@ get suites(): Suite[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:83 +[.testplane/src/test-reader/test-object/suite.ts:83](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L83) *** @@ -331,7 +331,7 @@ get tests(): Test[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:87 +[.testplane/src/test-reader/test-object/suite.ts:87](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L87) *** @@ -361,7 +361,7 @@ set timeout(timeout): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:85 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:85](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L85) *** @@ -381,7 +381,7 @@ get title(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:16 +[.testplane/src/test-reader/test-object/test-object.ts:16](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L16) ## Methods @@ -407,7 +407,7 @@ addAfterEachHook(hook): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:41 +[.testplane/src/test-reader/test-object/suite.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L41) *** @@ -433,7 +433,7 @@ addBeforeEachHook(hook): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:37 +[.testplane/src/test-reader/test-object/suite.ts:37](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L37) *** @@ -459,7 +459,7 @@ addSuite(suite): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:29 +[.testplane/src/test-reader/test-object/suite.ts:29](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L29) *** @@ -485,7 +485,7 @@ addTest(test): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:33 +[.testplane/src/test-reader/test-object/suite.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L33) *** @@ -511,7 +511,7 @@ afterEach(fn): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:49 +[.testplane/src/test-reader/test-object/suite.ts:49](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L49) *** @@ -537,7 +537,7 @@ assign(src): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:20 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L20) *** @@ -563,7 +563,7 @@ beforeEach(fn): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:45 +[.testplane/src/test-reader/test-object/suite.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L45) *** @@ -583,7 +583,7 @@ disable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:31 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:31](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L31) *** @@ -609,7 +609,7 @@ eachTest(cb): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:60 +[.testplane/src/test-reader/test-object/suite.ts:60](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L60) *** @@ -629,7 +629,7 @@ enable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:36 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L36) *** @@ -655,7 +655,7 @@ filterTests(cb): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:70 +[.testplane/src/test-reader/test-object/suite.ts:70](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L70) *** @@ -675,7 +675,7 @@ fullTitle(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:30 +[.testplane/src/test-reader/test-object/test-object.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L30) *** @@ -695,7 +695,7 @@ getTests(): Test[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:65 +[.testplane/src/test-reader/test-object/suite.ts:65](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L65) *** @@ -721,7 +721,7 @@ skip(__namedParameters): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:26 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L26) *** @@ -741,4 +741,4 @@ titlePath(): string[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:20 +[.testplane/src/test-reader/test-object/test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L20) diff --git a/docs/api-reference/interfaces/RunOpts.mdx b/docs/api-reference/interfaces/RunOpts.mdx index 7cf2653..7ce00c5 100644 --- a/docs/api-reference/interfaces/RunOpts.mdx +++ b/docs/api-reference/interfaces/RunOpts.mdx @@ -6,17 +6,17 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `browsers` | `string`[] | testplane-docs/.testplane/src/testplane.ts:23 | -| `devtools` | `boolean` | testplane-docs/.testplane/src/testplane.ts:38 | -| `grep` | `RegExp` | testplane-docs/.testplane/src/testplane.ts:25 | -| `inspectMode` | \{ `inspect`: `boolean`; `inspectBrk`: `boolean`; \} | testplane-docs/.testplane/src/testplane.ts:28 | -| `inspectMode.inspect` | `boolean` | testplane-docs/.testplane/src/testplane.ts:29 | -| `inspectMode.inspectBrk` | `boolean` | testplane-docs/.testplane/src/testplane.ts:30 | -| `replMode` | \{ `beforeTest`: `boolean`; `enabled`: `boolean`; `onFail`: `boolean`; \} | testplane-docs/.testplane/src/testplane.ts:33 | -| `replMode.beforeTest` | `boolean` | testplane-docs/.testplane/src/testplane.ts:35 | -| `replMode.enabled` | `boolean` | testplane-docs/.testplane/src/testplane.ts:34 | -| `replMode.onFail` | `boolean` | testplane-docs/.testplane/src/testplane.ts:36 | -| `reporters` | `string`[] | testplane-docs/.testplane/src/testplane.ts:32 | -| `requireModules` | `string`[] | testplane-docs/.testplane/src/testplane.ts:27 | -| `sets` | `string`[] | testplane-docs/.testplane/src/testplane.ts:24 | -| `updateRefs` | `boolean` | testplane-docs/.testplane/src/testplane.ts:26 | +| `browsers` | `string`[] | [.testplane/src/testplane.ts:23](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L23) | +| `devtools` | `boolean` | [.testplane/src/testplane.ts:38](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L38) | +| `grep` | `RegExp` | [.testplane/src/testplane.ts:25](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L25) | +| `inspectMode` | \{ `inspect`: `boolean`; `inspectBrk`: `boolean`; \} | [.testplane/src/testplane.ts:28](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L28) | +| `inspectMode.inspect` | `boolean` | [.testplane/src/testplane.ts:29](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L29) | +| `inspectMode.inspectBrk` | `boolean` | [.testplane/src/testplane.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L30) | +| `replMode` | \{ `beforeTest`: `boolean`; `enabled`: `boolean`; `onFail`: `boolean`; \} | [.testplane/src/testplane.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L33) | +| `replMode.beforeTest` | `boolean` | [.testplane/src/testplane.ts:35](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L35) | +| `replMode.enabled` | `boolean` | [.testplane/src/testplane.ts:34](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L34) | +| `replMode.onFail` | `boolean` | [.testplane/src/testplane.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L36) | +| `reporters` | `string`[] | [.testplane/src/testplane.ts:32](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L32) | +| `requireModules` | `string`[] | [.testplane/src/testplane.ts:27](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L27) | +| `sets` | `string`[] | [.testplane/src/testplane.ts:24](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L24) | +| `updateRefs` | `boolean` | [.testplane/src/testplane.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L26) | diff --git a/docs/api-reference/interfaces/SetsConfig.mdx b/docs/api-reference/interfaces/SetsConfig.mdx index b85b741..13f0dba 100644 --- a/docs/api-reference/interfaces/SetsConfig.mdx +++ b/docs/api-reference/interfaces/SetsConfig.mdx @@ -6,6 +6,6 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `browsers?` | `string`[] | testplane-docs/.testplane/src/config/types.ts:183 | -| `files` | `string` \| `string`[] | testplane-docs/.testplane/src/config/types.ts:181 | -| `ignoreFiles?` | `string`[] | testplane-docs/.testplane/src/config/types.ts:182 | +| `browsers?` | `string`[] | [.testplane/src/config/types.ts:183](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L183) | +| `files` | `string` \| `string`[] | [.testplane/src/config/types.ts:181](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L181) | +| `ignoreFiles?` | `string`[] | [.testplane/src/config/types.ts:182](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L182) | diff --git a/docs/api-reference/interfaces/SystemConfig.mdx b/docs/api-reference/interfaces/SystemConfig.mdx index dd63434..a53d8e0 100644 --- a/docs/api-reference/interfaces/SystemConfig.mdx +++ b/docs/api-reference/interfaces/SystemConfig.mdx @@ -6,15 +6,15 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `ctx` | \{\} | testplane-docs/.testplane/src/config/types.ts:68 | -| `debug` | `boolean` | testplane-docs/.testplane/src/config/types.ts:65 | -| `diffColor` | `string` | testplane-docs/.testplane/src/config/types.ts:72 | -| `expectOpts` | [`ExpectOptsConfig`](ExpectOptsConfig.mdx) | testplane-docs/.testplane/src/config/types.ts:67 | -| `fileExtensions` | `string`[] | testplane-docs/.testplane/src/config/types.ts:75 | -| `mochaOpts` | [`MochaOpts`](MochaOpts.mdx) | testplane-docs/.testplane/src/config/types.ts:66 | -| `parallelLimit` | `number` | testplane-docs/.testplane/src/config/types.ts:74 | -| `patternsOnReject` | `string`[] | testplane-docs/.testplane/src/config/types.ts:69 | -| `tempDir` | `string` | testplane-docs/.testplane/src/config/types.ts:73 | -| `testRunEnv` | `"nodejs"` \| `"browser"` \| [`"browser"`, `BrowserTestRunEnvOptions`] | testplane-docs/.testplane/src/config/types.ts:76 | -| `testsPerWorker` | `number` | testplane-docs/.testplane/src/config/types.ts:71 | -| `workers` | `number` | testplane-docs/.testplane/src/config/types.ts:70 | +| `ctx` | \{\} | [.testplane/src/config/types.ts:68](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L68) | +| `debug` | `boolean` | [.testplane/src/config/types.ts:65](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L65) | +| `diffColor` | `string` | [.testplane/src/config/types.ts:72](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L72) | +| `expectOpts` | [`ExpectOptsConfig`](ExpectOptsConfig.mdx) | [.testplane/src/config/types.ts:67](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L67) | +| `fileExtensions` | `string`[] | [.testplane/src/config/types.ts:75](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L75) | +| `mochaOpts` | [`MochaOpts`](MochaOpts.mdx) | [.testplane/src/config/types.ts:66](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L66) | +| `parallelLimit` | `number` | [.testplane/src/config/types.ts:74](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L74) | +| `patternsOnReject` | `string`[] | [.testplane/src/config/types.ts:69](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L69) | +| `tempDir` | `string` | [.testplane/src/config/types.ts:73](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L73) | +| `testRunEnv` | `"nodejs"` \| `"browser"` \| [`"browser"`, `BrowserTestRunEnvOptions`] | [.testplane/src/config/types.ts:76](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L76) | +| `testsPerWorker` | `number` | [.testplane/src/config/types.ts:71](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L71) | +| `workers` | `number` | [.testplane/src/config/types.ts:70](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L70) | diff --git a/docs/api-reference/interfaces/TestError.mdx b/docs/api-reference/interfaces/TestError.mdx index e19e9d8..56e39ff 100644 --- a/docs/api-reference/interfaces/TestError.mdx +++ b/docs/api-reference/interfaces/TestError.mdx @@ -10,8 +10,8 @@ | Property | Type | Inherited from | Defined in | | ------ | ------ | ------ | ------ | -| `details` | [`ErrorDetails`](ErrorDetails.mdx) | - | testplane-docs/.testplane/src/types/index.ts:59 | -| `message` | `string` | `Error.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `string` | `Error.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `screenshot?` | [`ImageBase64`](ImageBase64.mdx) | - | testplane-docs/.testplane/src/types/index.ts:58 | -| `stack?` | `string` | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | +| `details` | [`ErrorDetails`](ErrorDetails.mdx) | - | [.testplane/src/types/index.ts:59](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L59) | +| `message` | `string` | `Error.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `string` | `Error.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `screenshot?` | [`ImageBase64`](ImageBase64.mdx) | - | [.testplane/src/types/index.ts:58](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L58) | +| `stack?` | `string` | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/docs/api-reference/interfaces/TestFunctionCtx.mdx b/docs/api-reference/interfaces/TestFunctionCtx.mdx index f7f7092..495215a 100644 --- a/docs/api-reference/interfaces/TestFunctionCtx.mdx +++ b/docs/api-reference/interfaces/TestFunctionCtx.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `browser` | `Browser` | testplane-docs/.testplane/src/test-reader/test-object/types.ts:22 | -| `currentTest` | [`Test`](../classes/Test.mdx) | testplane-docs/.testplane/src/test-reader/test-object/types.ts:23 | +| `browser` | `Browser` | [.testplane/src/test-reader/test-object/types.ts:22](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/types.ts#L22) | +| `currentTest` | [`Test`](../classes/Test.mdx) | [.testplane/src/test-reader/test-object/types.ts:23](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/types.ts#L23) | diff --git a/docs/api-reference/interfaces/TestResult.mdx b/docs/api-reference/interfaces/TestResult.mdx index eb227eb..da452c6 100644 --- a/docs/api-reference/interfaces/TestResult.mdx +++ b/docs/api-reference/interfaces/TestResult.mdx @@ -14,18 +14,18 @@ | Property | Modifier | Type | Default value | Description | Overrides | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | ------ | ------ | ------ | -| `assertViewResults` | `public` | [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:135 | -| `description?` | `public` | `string` | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:136 | -| `duration` | `public` | `number` | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:137 | -| `err?` | `public` | [`TestError`](TestError.mdx) | `undefined` | - | [`Test`](../classes/Test.mdx).`err` | - | testplane-docs/.testplane/src/types/index.ts:138 | -| `fn` | `public` | `TestFunction`\<[`TestFunctionCtx`](TestFunctionCtx.mdx)\> | `undefined` | - | - | [`Test`](../classes/Test.mdx).`fn` | testplane-docs/.testplane/src/test-reader/test-object/test.ts:10 | -| ~~`hermioneCtx`~~ | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | **Deprecated** Use `testplaneCtx` instead | - | - | testplane-docs/.testplane/src/types/index.ts:143 | -| `history` | `public` | [`CommandHistory`](CommandHistory.mdx) | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:144 | -| `meta` | `public` | \{\} | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:145 | -| `parent` | `public` | `null` \| [`Suite`](../classes/Suite.mdx) | `null` | - | - | [`Test`](../classes/Test.mdx).`parent` | testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:6 | -| `sessionId` | `public` | `string` | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:146 | -| `startTime` | `public` | `number` | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:147 | -| `testplaneCtx` | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:139 | +| `assertViewResults` | `public` | [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | `undefined` | - | - | - | [.testplane/src/types/index.ts:135](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L135) | +| `description?` | `public` | `string` | `undefined` | - | - | - | [.testplane/src/types/index.ts:136](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L136) | +| `duration` | `public` | `number` | `undefined` | - | - | - | [.testplane/src/types/index.ts:137](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L137) | +| `err?` | `public` | [`TestError`](TestError.mdx) | `undefined` | - | [`Test`](../classes/Test.mdx).`err` | - | [.testplane/src/types/index.ts:138](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L138) | +| `fn` | `public` | `TestFunction`\<[`TestFunctionCtx`](TestFunctionCtx.mdx)\> | `undefined` | - | - | [`Test`](../classes/Test.mdx).`fn` | [.testplane/src/test-reader/test-object/test.ts:10](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L10) | +| ~~`hermioneCtx`~~ | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | **Deprecated** Use `testplaneCtx` instead | - | - | [.testplane/src/types/index.ts:143](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L143) | +| `history` | `public` | [`CommandHistory`](CommandHistory.mdx) | `undefined` | - | - | - | [.testplane/src/types/index.ts:144](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L144) | +| `meta` | `public` | \{\} | `undefined` | - | - | - | [.testplane/src/types/index.ts:145](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L145) | +| `parent` | `public` | `null` \| [`Suite`](../classes/Suite.mdx) | `null` | - | - | [`Test`](../classes/Test.mdx).`parent` | [.testplane/src/test-reader/test-object/test-object.ts:6](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L6) | +| `sessionId` | `public` | `string` | `undefined` | - | - | - | [.testplane/src/types/index.ts:146](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L146) | +| `startTime` | `public` | `number` | `undefined` | - | - | - | [.testplane/src/types/index.ts:147](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L147) | +| `testplaneCtx` | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | - | - | - | [.testplane/src/types/index.ts:139](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L139) | ## Accessors @@ -55,7 +55,7 @@ set browserId(id): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:93 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:93](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L93) *** @@ -85,7 +85,7 @@ set browserVersion(version): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:101 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:101](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L101) *** @@ -115,7 +115,7 @@ set disabled(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:69 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:69](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L69) *** @@ -135,7 +135,7 @@ get file(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:45 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L45) *** @@ -155,7 +155,7 @@ get hasBrowserVersionOverwritten(): boolean #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:105 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L105) *** @@ -175,7 +175,7 @@ get id(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:41 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L41) *** @@ -205,7 +205,7 @@ set pending(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:53 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L53) *** @@ -235,7 +235,7 @@ set silentSkip(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:77 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:77](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L77) *** @@ -265,7 +265,7 @@ set skipReason(reason): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:61 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:61](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L61) *** @@ -295,7 +295,7 @@ set timeout(timeout): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:85 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:85](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L85) *** @@ -315,7 +315,7 @@ get title(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:16 +[.testplane/src/test-reader/test-object/test-object.ts:16](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L16) ## Methods @@ -341,7 +341,7 @@ assign(src): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:20 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L20) *** @@ -361,7 +361,7 @@ clone(): Test #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test.ts:23 +[.testplane/src/test-reader/test-object/test.ts:23](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L23) *** @@ -381,7 +381,7 @@ disable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:31 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:31](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L31) *** @@ -401,7 +401,7 @@ enable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:36 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L36) *** @@ -421,7 +421,7 @@ fullTitle(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:30 +[.testplane/src/test-reader/test-object/test-object.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L30) *** @@ -447,7 +447,7 @@ skip(__namedParameters): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:26 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L26) *** @@ -467,4 +467,4 @@ titlePath(): string[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:20 +[.testplane/src/test-reader/test-object/test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L20) diff --git a/docs/api-reference/interfaces/TestResultWithRetries.mdx b/docs/api-reference/interfaces/TestResultWithRetries.mdx index 17a76c6..854689c 100644 --- a/docs/api-reference/interfaces/TestResultWithRetries.mdx +++ b/docs/api-reference/interfaces/TestResultWithRetries.mdx @@ -10,19 +10,19 @@ | Property | Modifier | Type | Default value | Description | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | ------ | ------ | -| `assertViewResults` | `public` | [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | `undefined` | - | [`TestResult`](TestResult.mdx).`assertViewResults` | testplane-docs/.testplane/src/types/index.ts:135 | -| `description?` | `public` | `string` | `undefined` | - | [`TestResult`](TestResult.mdx).`description` | testplane-docs/.testplane/src/types/index.ts:136 | -| `duration` | `public` | `number` | `undefined` | - | [`TestResult`](TestResult.mdx).`duration` | testplane-docs/.testplane/src/types/index.ts:137 | -| `err?` | `public` | [`TestError`](TestError.mdx) | `undefined` | - | [`TestResult`](TestResult.mdx).`err` | testplane-docs/.testplane/src/types/index.ts:138 | -| `fn` | `public` | `TestFunction`\<[`TestFunctionCtx`](TestFunctionCtx.mdx)\> | `undefined` | - | [`TestResult`](TestResult.mdx).`fn` | testplane-docs/.testplane/src/test-reader/test-object/test.ts:10 | -| ~~`hermioneCtx`~~ | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | **Deprecated** Use `testplaneCtx` instead | [`TestResult`](TestResult.mdx).`hermioneCtx` | testplane-docs/.testplane/src/types/index.ts:143 | -| `history` | `public` | [`CommandHistory`](CommandHistory.mdx) | `undefined` | - | [`TestResult`](TestResult.mdx).`history` | testplane-docs/.testplane/src/types/index.ts:144 | -| `meta` | `public` | \{\} | `undefined` | - | [`TestResult`](TestResult.mdx).`meta` | testplane-docs/.testplane/src/types/index.ts:145 | -| `parent` | `public` | `null` \| [`Suite`](../classes/Suite.mdx) | `null` | - | [`TestResult`](TestResult.mdx).`parent` | testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:6 | -| `retriesLeft` | `public` | `number` | `undefined` | - | - | testplane-docs/.testplane/src/types/index.ts:151 | -| `sessionId` | `public` | `string` | `undefined` | - | [`TestResult`](TestResult.mdx).`sessionId` | testplane-docs/.testplane/src/types/index.ts:146 | -| `startTime` | `public` | `number` | `undefined` | - | [`TestResult`](TestResult.mdx).`startTime` | testplane-docs/.testplane/src/types/index.ts:147 | -| `testplaneCtx` | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | - | [`TestResult`](TestResult.mdx).`testplaneCtx` | testplane-docs/.testplane/src/types/index.ts:139 | +| `assertViewResults` | `public` | [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | `undefined` | - | [`TestResult`](TestResult.mdx).`assertViewResults` | [.testplane/src/types/index.ts:135](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L135) | +| `description?` | `public` | `string` | `undefined` | - | [`TestResult`](TestResult.mdx).`description` | [.testplane/src/types/index.ts:136](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L136) | +| `duration` | `public` | `number` | `undefined` | - | [`TestResult`](TestResult.mdx).`duration` | [.testplane/src/types/index.ts:137](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L137) | +| `err?` | `public` | [`TestError`](TestError.mdx) | `undefined` | - | [`TestResult`](TestResult.mdx).`err` | [.testplane/src/types/index.ts:138](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L138) | +| `fn` | `public` | `TestFunction`\<[`TestFunctionCtx`](TestFunctionCtx.mdx)\> | `undefined` | - | [`TestResult`](TestResult.mdx).`fn` | [.testplane/src/test-reader/test-object/test.ts:10](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L10) | +| ~~`hermioneCtx`~~ | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | **Deprecated** Use `testplaneCtx` instead | [`TestResult`](TestResult.mdx).`hermioneCtx` | [.testplane/src/types/index.ts:143](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L143) | +| `history` | `public` | [`CommandHistory`](CommandHistory.mdx) | `undefined` | - | [`TestResult`](TestResult.mdx).`history` | [.testplane/src/types/index.ts:144](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L144) | +| `meta` | `public` | \{\} | `undefined` | - | [`TestResult`](TestResult.mdx).`meta` | [.testplane/src/types/index.ts:145](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L145) | +| `parent` | `public` | `null` \| [`Suite`](../classes/Suite.mdx) | `null` | - | [`TestResult`](TestResult.mdx).`parent` | [.testplane/src/test-reader/test-object/test-object.ts:6](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L6) | +| `retriesLeft` | `public` | `number` | `undefined` | - | - | [.testplane/src/types/index.ts:151](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L151) | +| `sessionId` | `public` | `string` | `undefined` | - | [`TestResult`](TestResult.mdx).`sessionId` | [.testplane/src/types/index.ts:146](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L146) | +| `startTime` | `public` | `number` | `undefined` | - | [`TestResult`](TestResult.mdx).`startTime` | [.testplane/src/types/index.ts:147](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L147) | +| `testplaneCtx` | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | - | [`TestResult`](TestResult.mdx).`testplaneCtx` | [.testplane/src/types/index.ts:139](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L139) | ## Accessors @@ -52,7 +52,7 @@ set browserId(id): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:93 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:93](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L93) *** @@ -82,7 +82,7 @@ set browserVersion(version): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:101 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:101](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L101) *** @@ -112,7 +112,7 @@ set disabled(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:69 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:69](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L69) *** @@ -132,7 +132,7 @@ get file(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:45 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L45) *** @@ -152,7 +152,7 @@ get hasBrowserVersionOverwritten(): boolean #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:105 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L105) *** @@ -172,7 +172,7 @@ get id(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:41 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L41) *** @@ -202,7 +202,7 @@ set pending(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:53 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L53) *** @@ -232,7 +232,7 @@ set silentSkip(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:77 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:77](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L77) *** @@ -262,7 +262,7 @@ set skipReason(reason): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:61 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:61](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L61) *** @@ -292,7 +292,7 @@ set timeout(timeout): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:85 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:85](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L85) *** @@ -312,7 +312,7 @@ get title(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:16 +[.testplane/src/test-reader/test-object/test-object.ts:16](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L16) ## Methods @@ -338,7 +338,7 @@ assign(src): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:20 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L20) *** @@ -358,7 +358,7 @@ clone(): Test #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test.ts:23 +[.testplane/src/test-reader/test-object/test.ts:23](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L23) *** @@ -378,7 +378,7 @@ disable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:31 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:31](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L31) *** @@ -398,7 +398,7 @@ enable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:36 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L36) *** @@ -418,7 +418,7 @@ fullTitle(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:30 +[.testplane/src/test-reader/test-object/test-object.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L30) *** @@ -444,7 +444,7 @@ skip(__namedParameters): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:26 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L26) *** @@ -464,4 +464,4 @@ titlePath(): string[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:20 +[.testplane/src/test-reader/test-object/test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L20) diff --git a/docs/api-reference/interfaces/WdioBrowser.mdx b/docs/api-reference/interfaces/WdioBrowser.mdx deleted file mode 100644 index 018dfdc..0000000 --- a/docs/api-reference/interfaces/WdioBrowser.mdx +++ /dev/null @@ -1,10465 +0,0 @@ -[testplane](../README.mdx) / WdioBrowser - -# Interface: ~~WdioBrowser~~ - -## Deprecated - -use `WebdriverIO.Browser` instead - -## Extends - -- `Omit`\<`BrowserBase`, `"on"` \| `"once"`\>.`BidiEventHandler`.`BidiHandler`.`ProtocolCommands`.`BrowserCommandsType` - -## Properties - -| Property | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | -| ~~`$`~~ | (...`args`: [`Selector`]) => `ChainablePromiseElement`\<`Element`\> | - | `BrowserCommandsType.$` | | -| ~~`$$`~~ | (...`args`: [`HTMLElement`[] \| `Selector` \| `ElementReference`[] \| `Element`[]]) => `ChainablePromiseArray`\<`ElementArray`\> | - | `BrowserCommandsType.$$` | | -| ~~`CDP_SESSIONS`~~ | `Record`\<`string`, `CDPSession`\> | - | `BrowserCommandsType.CDP_SESSIONS` | testplane/node\_modules/webdriverio/build/commands/browser/mock.d.ts:6 | -| ~~`SESSION_MOCKS`~~ | `Record`\<`string`, `Set`\<`Interception`\>\> | - | `BrowserCommandsType.SESSION_MOCKS` | testplane/node\_modules/webdriverio/build/commands/browser/mock.d.ts:5 | -| ~~`action`~~ | (`this`: `Browser`, `type`: `"key"`, `opts`?: `Pick`\<`BaseActionParams`, `"id"`\>) => `KeyAction`(`this`: `Browser`, `type`: `"pointer"`, `opts`?: `BaseActionParams`) => `PointerAction`(`this`: `Browser`, `type`: `"wheel"`, `opts`?: `Pick`\<`BaseActionParams`, `"id"`\>) => `WheelAction` | - | `BrowserCommandsType.action` | testplane/node\_modules/webdriverio/build/commands/browser/action.d.ts:151 | -| ~~`actions`~~ | (`this`: `Browser`, `actions`: (`KeyAction` \| `PointerAction` \| `WheelAction`)[]) => `Promise`\<`void`\> | - | `BrowserCommandsType.actions` | testplane/node\_modules/webdriverio/build/commands/browser/actions.d.ts:28 | -| ~~`call`~~ | \<`T`\>(`fn`: () => `T`) => `T` \| `Promise`\<`T`\> | - | `BrowserCommandsType.call` | testplane/node\_modules/webdriverio/build/commands/browser/call.d.ts:43 | -| ~~`capabilities`~~ | `RemoteCapability` | Applied capabilities used in the current session. Note: these can differ from the actual requested capabilities if the remote end couldn't provide an exact match. | `Omit.capabilities` | testplane/node\_modules/webdriverio/build/types.d.ts:154 | -| ~~`commandList`~~ | `string`[] | - | `Omit.commandList` | testplane/node\_modules/webdriverio/build/types.d.ts:169 | -| ~~`custom$`~~ | (...`args`: [`string`, `...strategyArguments: any[]`]) => `ChainablePromiseElement`\<`Element`\> | - | `BrowserCommandsType.custom$` | | -| ~~`custom$$`~~ | (...`args`: [`string`, `...strategyArguments: any[]`]) => `ChainablePromiseArray`\<`ElementArray`\> | - | `BrowserCommandsType.custom$$` | | -| ~~`debug`~~ | (`this`: `Browser`, `commandTimeout`?: `number`) => `Promise`\<`unknown`\> | - | `BrowserCommandsType.debug` | testplane/node\_modules/webdriverio/build/commands/browser/debug.d.ts:31 | -| ~~`deleteCookies`~~ | (`this`: `Browser`, `names`?: `string` \| `string`[]) => `Promise`\<`void`\> \| `Promise`\<`void`[]\> | - | `BrowserCommandsType.deleteCookies` | testplane/node\_modules/webdriverio/build/commands/browser/deleteCookies.d.ts:11 | -| ~~`downloadFile`~~ | (`this`: `Browser`, `fileName`: `string`, `targetDirectory`: `string`) => `Promise`\<`object`\> | - | `BrowserCommandsType.downloadFile` | testplane/node\_modules/webdriverio/build/commands/browser/downloadFile.d.ts:43 | -| ~~`emulate`~~ | \<`Scope`\>(`this`: `Browser`, `scope`: `Scope`, `options`: `EmulationOptions`\[`Scope`\]) => `Promise`\<`void`\> | - | `BrowserCommandsType.emulate` | testplane/node\_modules/webdriverio/build/commands/browser/emulate.d.ts:34 | -| ~~`execute`~~ | \<`ReturnValue`, `InnerArguments`\>(`this`: `Browser` \| `MultiRemoteBrowser` \| `Element`, `script`: `string` \| (...`innerArgs`) => `ReturnValue`, ...`args`: `InnerArguments`) => `Promise`\<`ReturnValue`\> | - | `BrowserCommandsType.execute` | testplane/node\_modules/webdriverio/build/commands/browser/execute.d.ts:36 | -| ~~`executeAsync`~~ | \<`ReturnValue`, `InnerArguments`\>(`this`: `Browser` \| `Element`, `script`: `string` \| (...`args`) => `void`, ...`args`: `InnerArguments`) => `Promise`\<`ReturnValue`\> | - | `BrowserCommandsType.executeAsync` | testplane/node\_modules/webdriverio/build/commands/browser/executeAsync.d.ts:44 | -| ~~`getCookies`~~ | (`this`: `Browser`, `names`?: `string` \| `string`[]) => `Promise`\<`Cookie`[]\> | - | `BrowserCommandsType.getCookies` | testplane/node\_modules/webdriverio/build/commands/browser/getCookies.d.ts:33 | -| ~~`getPuppeteer`~~ | (`this`: `Browser`) => `Promise`\<`PuppeteerBrowser`\> | - | `BrowserCommandsType.getPuppeteer` | testplane/node\_modules/webdriverio/build/commands/browser/getPuppeteer.d.ts:37 | -| ~~`getWindowSize`~~ | (`this`: `Browser`) => `Promise`\<`BrowserSize`\> | - | `BrowserCommandsType.getWindowSize` | testplane/node\_modules/webdriverio/build/commands/browser/getWindowSize.d.ts:23 | -| ~~`isAndroid`~~ | `boolean` | - | `Omit.isAndroid` | testplane/node\_modules/webdriver/build/types.d.ts:16 | -| ~~`isBidi`~~ | `boolean` | - | `Omit.isBidi` | testplane/node\_modules/webdriver/build/types.d.ts:22 | -| ~~`isChromium`~~ | `boolean` | - | `Omit.isChromium` | testplane/node\_modules/webdriver/build/types.d.ts:14 | -| ~~`isDevTools`~~ | `boolean` | - | `Omit.isDevTools` | testplane/node\_modules/webdriver/build/types.d.ts:21 | -| ~~`isFirefox`~~ | `boolean` | - | `Omit.isFirefox` | testplane/node\_modules/webdriver/build/types.d.ts:15 | -| ~~`isIOS`~~ | `boolean` | - | `Omit.isIOS` | testplane/node\_modules/webdriver/build/types.d.ts:18 | -| ~~`isMobile`~~ | `boolean` | - | `Omit.isMobile` | testplane/node\_modules/webdriver/build/types.d.ts:17 | -| ~~`isMultiremote`~~ | `false` | - | `Omit.isMultiremote` | testplane/node\_modules/webdriverio/build/types.d.ts:183 | -| ~~`isSauce`~~ | `boolean` | - | `Omit.isSauce` | testplane/node\_modules/webdriver/build/types.d.ts:19 | -| ~~`isSeleniumStandalone`~~ | `boolean` | - | `Omit.isSeleniumStandalone` | testplane/node\_modules/webdriver/build/types.d.ts:20 | -| ~~`isW3C`~~ | `boolean` | - | `Omit.isW3C` | testplane/node\_modules/webdriver/build/types.d.ts:13 | -| ~~`keys`~~ | (`this`: `Browser`, `value`: `string` \| `string`[]) => `Promise`\<`void`\> | - | `BrowserCommandsType.keys` | testplane/node\_modules/webdriverio/build/commands/browser/keys.d.ts:22 | -| ~~`mock`~~ | (`this`: `Browser`, `url`: `string` \| `RegExp`, `filterOptions`?: `MockFilterOptions`) => `Promise`\<`Mock`\> | - | `BrowserCommandsType.mock` | testplane/node\_modules/webdriverio/build/commands/browser/mock.d.ts:113 | -| ~~`mockClearAll`~~ | () => `Promise`\<`void`\> | - | `BrowserCommandsType.mockClearAll` | testplane/node\_modules/webdriverio/build/commands/browser/mockClearAll.d.ts:27 | -| ~~`mockRestoreAll`~~ | () => `Promise`\<`void`\> | - | `BrowserCommandsType.mockRestoreAll` | testplane/node\_modules/webdriverio/build/commands/browser/mockRestoreAll.d.ts:25 | -| ~~`newWindow`~~ | (`this`: `Browser`, `url`: `string`, `__namedParameters`?: `NewWindowOptions`) => `Promise`\<`string`\> | - | `BrowserCommandsType.newWindow` | testplane/node\_modules/webdriverio/build/commands/browser/newWindow.d.ts:40 | -| ~~`options`~~ | `WebdriverIO` \| `Testrunner` | Applied WebdriverIO options (options that aren't officially part of WebdriverIO are stripped out of this object). | `Omit.options` | testplane/node\_modules/webdriverio/build/types.d.ts:163 | -| ~~`pause`~~ | (`this`: `Browser`, `milliseconds`?: `number`) => `Promise`\<`unknown`\> | - | `BrowserCommandsType.pause` | testplane/node\_modules/webdriverio/build/commands/browser/pause.d.ts:22 | -| ~~`puppeteer?`~~ | `Browser` | Puppeteer instance | `Omit.puppeteer` | testplane/node\_modules/webdriverio/build/types.d.ts:167 | -| ~~`react$`~~ | (...`args`: [`string`, `ReactSelectorOptions?`]) => `ChainablePromiseElement`\<`Element`\> | - | `BrowserCommandsType.react$` | | -| ~~`react$$`~~ | (...`args`: [`string`, `ReactSelectorOptions?`]) => `ChainablePromiseArray`\<`ElementArray`\> | - | `BrowserCommandsType.react$$` | | -| ~~`reloadSession`~~ | (`this`: `Browser`, `newCapabilities`?: `Capabilities`) => `Promise`\<`string`\> | - | `BrowserCommandsType.reloadSession` | testplane/node\_modules/webdriverio/build/commands/browser/reloadSession.d.ts:51 | -| ~~`requestedCapabilities`~~ | `RemoteCapability` | Requested capabilities defined in the config object. | `Omit.requestedCapabilities` | testplane/node\_modules/webdriverio/build/types.d.ts:158 | -| ~~`savePDF`~~ | (`this`: `Browser`, `filepath`: `string`, `options`?: `PDFPrintOptions`) => `Promise`\<`Buffer`\> | - | `BrowserCommandsType.savePDF` | testplane/node\_modules/webdriverio/build/commands/browser/savePDF.d.ts:44 | -| ~~`saveRecordingScreen`~~ | (`this`: `Browser`, `filepath`: `string`) => `Promise`\<`Buffer`\> | - | `BrowserCommandsType.saveRecordingScreen` | testplane/node\_modules/webdriverio/build/commands/browser/saveRecordingScreen.d.ts:27 | -| ~~`saveScreenshot`~~ | (`this`: `Browser`, `filepath`: `string`) => `Promise`\<`Buffer`\> | - | `BrowserCommandsType.saveScreenshot` | testplane/node\_modules/webdriverio/build/commands/browser/saveScreenshot.d.ts:28 | -| ~~`scroll`~~ | (`this`: `Browser`, `x`?: `number`, `y`?: `number`) => `void` \| `Promise`\<`void`\> | - | `BrowserCommandsType.scroll` | testplane/node\_modules/webdriverio/build/commands/browser/scroll.d.ts:24 | -| ~~`sessionId`~~ | `string` | Session id for the current running session | `Omit.sessionId` | testplane/node\_modules/webdriverio/build/types.d.ts:149 | -| ~~`setCookies`~~ | (`this`: `Browser`, `cookieObjs`: `Cookie` \| `Cookie`[]) => `Promise`\<`void`\> | - | `BrowserCommandsType.setCookies` | testplane/node\_modules/webdriverio/build/commands/browser/setCookies.d.ts:56 | -| ~~`setTimeout`~~ | (`this`: `Browser`, `timeouts`: `Partial`\<`Timeouts`\>) => `Promise`\<`void`\> | - | `BrowserCommandsType.setTimeout` | testplane/node\_modules/webdriverio/build/commands/browser/setTimeout.d.ts:37 | -| ~~`setWindowSize`~~ | (`this`: `Browser`, `width`: `number`, `height`: `number`) => `Promise`\<`void`\> | - | `BrowserCommandsType.setWindowSize` | testplane/node\_modules/webdriverio/build/commands/browser/setWindowSize.d.ts:19 | -| ~~`shadow$`~~ | (...`args`: [`string`]) => `ChainablePromiseElement`\<`Element`\> | - | `BrowserCommandsType.shadow$` | | -| ~~`shadow$$`~~ | (...`args`: [`string`]) => `ChainablePromiseArray`\<`ElementArray`\> | - | `BrowserCommandsType.shadow$$` | | -| ~~`strategies`~~ | `Map`\<`any`, `any`\> | - | `Omit.strategies` | testplane/node\_modules/webdriverio/build/types.d.ts:168 | -| ~~`switchWindow`~~ | (`this`: `Browser`, `matcher`: `string` \| `RegExp`) => `Promise`\<`string`\> | - | `BrowserCommandsType.switchWindow` | testplane/node\_modules/webdriverio/build/commands/browser/switchWindow.d.ts:29 | -| ~~`throttle`~~ | (`this`: `Browser`, `params`: `ThrottleOptions`) => `Promise`\<`void`\> | - | `BrowserCommandsType.throttle` | testplane/node\_modules/webdriverio/build/commands/browser/throttle.d.ts:5 | -| ~~`throttleNetwork`~~ | (`this`: `Browser`, `params`: `ThrottleOptions`) => `Promise`\<`null`\> | - | `BrowserCommandsType.throttleNetwork` | testplane/node\_modules/webdriverio/build/commands/browser/throttleNetwork.d.ts:2 | -| ~~`touchAction`~~ | (`this`: `Browser`, `actions`: `TouchActions`) => `Promise`\<`void`\> | - | `BrowserCommandsType.touchAction` | testplane/node\_modules/webdriverio/build/commands/browser/touchAction.d.ts:73 | -| ~~`uploadFile`~~ | (`this`: `Browser`, `localPath`: `string`) => `Promise`\<`string`\> | - | `BrowserCommandsType.uploadFile` | testplane/node\_modules/webdriverio/build/commands/browser/uploadFile.d.ts:31 | -| ~~`url`~~ | (`this`: `Browser`, `path`: `string`) => `Promise`\<`string`\> | - | `BrowserCommandsType.url` | testplane/node\_modules/webdriverio/build/commands/browser/url.d.ts:37 | -| ~~`waitUntil`~~ | \<`ReturnValue`\>(`this`: `Browser` \| `Element`, `condition`: () => `ReturnValue` \| `Promise`\<`ReturnValue`\>, `__namedParameters`?: `Partial`\<`WaitUntilOptions`\>) => `Promise`\<`Exclude`\<`ReturnValue`, `boolean`\>\> | - | `BrowserCommandsType.waitUntil` | testplane/node\_modules/webdriverio/build/commands/browser/waitUntil.d.ts:21 | - -## Accessors - -### ~~isConnected~~ - -```ts -get isConnected(): boolean -``` - -#### Returns - -`boolean` - -#### Inherited from - -`BidiHandler.isConnected` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/core.d.ts:12 - -*** - -### ~~socket~~ - -```ts -get socket(): WebSocket -``` - -#### Returns - -`WebSocket` - -#### Inherited from - -`BidiHandler.socket` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/core.d.ts:11 - -## Methods - -### ~~\[captureRejectionSymbol\]()?~~ - -```ts -optional [captureRejectionSymbol]( - error, - event, ... - args): void -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `error` | `Error` | -| `event` | `string` | -| ...`args` | `any`[] | - -#### Returns - -`void` - -#### Inherited from - -`Omit.[captureRejectionSymbol]` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:115 - -*** - -### ~~\_getWindowSize()~~ - -```ts -_getWindowSize(): Promise -``` - -Jsonwp Protocol Command - -Get the size of the current focused window. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidwindowwindowhandlesize - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands._getWindowSize` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:193 - -*** - -### ~~\_setWindowSize()~~ - -```ts -_setWindowSize(width, height): Promise -``` - -Jsonwp Protocol Command - -Change the size of the current focused window. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `width` | `number` | -| `height` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidwindowwindowhandlesize - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands._setWindowSize` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:202 - -*** - -### ~~acceptAlert()~~ - -```ts -acceptAlert(): Promise -``` - -Webdriver Protocol Command - -The Accept Alert command accepts a simple dialog if present, otherwise error. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-accept-alert - -#### Inherited from - -`ProtocolCommands.acceptAlert` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:450 - -*** - -### ~~activateApp()~~ - -```ts -activateApp(appId): Promise -``` - -Appium Protocol Command - -Activate the given app onto the device - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `appId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/activate-app/ - -#### Inherited from - -`ProtocolCommands.activateApp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:154 - -*** - -### ~~activateIME()~~ - -```ts -activateIME(engine): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `engine` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactivate - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.activateIME` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:525 - -*** - -### ~~addCommand()~~ - -```ts -addCommand( - name, - func, - attachToElement?, - proto?, - instances?): void -``` - -add command to `browser` or `element` scope - -#### Type Parameters - -| Type Parameter | Default type | -| ------ | ------ | -| `IsElement` *extends* `boolean` | `false` | - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `string` | -| `func` | `AddCommandFn` \| `AddCommandFnScoped`\<[`WdioBrowser`](WdioBrowser.mdx), `IsElement`\> | -| `attachToElement`? | `IsElement` | -| `proto`? | `Record`\<`string`, `any`\> | -| `instances`? | `Record`\<`string`, `Browser` \| `MultiRemoteBrowser`\> | - -#### Returns - -`void` - -#### Inherited from - -`Omit.addCommand` - -#### Defined in - -testplane/node\_modules/webdriverio/build/types.d.ts:135 - -*** - -### ~~addCookie()~~ - -```ts -addCookie(cookie): Promise -``` - -Webdriver Protocol Command - -The Add Cookie command adds a single cookie to the cookie store associated with the active document's address. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `cookie` | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-adding-a-cookie - -#### Inherited from - -`ProtocolCommands.addCookie` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:394 - -*** - -### ~~addCredential()~~ - -```ts -addCredential( - authenticatorId, - credentialId, - isResidentCredential, - rpId, - privateKey, - userHandle, - signCount, -largeBlob?): Promise -``` - -Webdriver Protocol Command - -Injects a Public Key Credential Source into an existing Virtual Authenticator. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `authenticatorId` | `string` | -| `credentialId` | `string` | -| `isResidentCredential` | `boolean` | -| `rpId` | `string` | -| `privateKey` | `string` | -| `userHandle` | `string` | -| `signCount` | `number` | -| `largeBlob`? | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://www.w3.org/TR/webauthn-2/#sctn-automation-add-credential - -#### Inherited from - -`ProtocolCommands.addCredential` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:593 - -*** - -### ~~addListener()~~ - -```ts -addListener(eventName, listener): this -``` - -Alias for `emitter.on(eventName, listener)`. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| `listener` | (...`args`) => `void` | - -#### Returns - -`this` - -#### Since - -v0.1.26 - -#### Inherited from - -`Omit.addListener` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:475 - -*** - -### ~~addLocatorStrategy()~~ - -```ts -addLocatorStrategy(name, func): void -``` - -create custom selector - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `string` | -| `func` | (`selector`, `root`) => `CustomLocatorReturnValue` \| (`selector`) => `CustomLocatorReturnValue` | - -#### Returns - -`void` - -#### Inherited from - -`Omit.addLocatorStrategy` - -#### Defined in - -testplane/node\_modules/webdriverio/build/types.d.ts:143 - -*** - -### ~~addVirtualAuthenticator()~~ - -```ts -addVirtualAuthenticator( - protocol?, - transport?, - hasResidentKey?, - hasUserVerification?, - isUserConsenting?, - isUserVerified?, - extensions?, -uvm?): Promise -``` - -Webdriver Protocol Command - -Creates a software [Virtual Authenticator](https://www.w3.org/TR/webauthn-2/#virtual-authenticators). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `protocol`? | `string` | -| `transport`? | `string` | -| `hasResidentKey`? | `boolean` | -| `hasUserVerification`? | `boolean` | -| `isUserConsenting`? | `boolean` | -| `isUserVerified`? | `boolean` | -| `extensions`? | `string`[] | -| `uvm`? | `object`[] | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://www.w3.org/TR/webauthn-2/#sctn-automation-add-virtual-authenticator - -#### Inherited from - -`ProtocolCommands.addVirtualAuthenticator` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:577 - -*** - -### ~~assertPerformance()~~ - -```ts -assertPerformance(name, metrics?): Promise -``` - -Saucelabs Protocol Command - -Assert against the performance baseline of your app. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `string` | -| `metrics`? | `string`[] | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands - -#### Example - -```js -// test performance for a page -browser.url('https://webdriver.io') -const hasRegression = browser.assertPerformance({ - name: 'my performance test', // make sure that the name is also set in the sauce options in your capabilities - metrics: ['score', 'firstPaint'] -}) -``` - -#### Inherited from - -`ProtocolCommands.assertPerformance` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:147 - -*** - -### ~~back()~~ - -```ts -back(): Promise -``` - -Webdriver Protocol Command - -The Back command causes the browser to traverse one step backward in the joint session history of the current top-level browsing context. This is equivalent to pressing the back button in the browser chrome or calling `window.history.back`. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-back - -#### Inherited from - -`ProtocolCommands.back` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:66 - -*** - -### ~~background()~~ - -```ts -background(seconds): Promise -``` - -Appium Protocol Command - -Send the currently running app for this session to the background. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `seconds` | `null` \| `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/background-app/ - -#### Deprecated - -Use `driver.execute('mobile: backgroundApp', { ... })` instead - -#### Inherited from - -`ProtocolCommands.background` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:349 - -*** - -### ~~browserClose()~~ - -```ts -browserClose(params): Promise -``` - -WebDriver Bidi command to send command method "browser.close" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `EmptyParams` | WebDriver Bidi command to send command method "browser.close" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browser-close - -#### Inherited from - -`BidiHandler.browserClose` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:60 - -*** - -### ~~browsingContextActivate()~~ - -```ts -browsingContextActivate(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.activate" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextActivateParameters` | WebDriver Bidi command to send command method "browsingContext.activate" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate - -#### Inherited from - -`BidiHandler.browsingContextActivate` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:67 - -*** - -### ~~browsingContextCaptureScreenshot()~~ - -```ts -browsingContextCaptureScreenshot(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.captureScreenshot" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextCaptureScreenshotParameters` | WebDriver Bidi command to send command method "browsingContext.captureScreenshot" with parameters. | - -#### Returns - -`Promise`\<`BrowsingContextCaptureScreenshotResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-captureScreenshot - -#### Inherited from - -`BidiHandler.browsingContextCaptureScreenshot` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:74 - -*** - -### ~~browsingContextClose()~~ - -```ts -browsingContextClose(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.close" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextCloseParameters` | WebDriver Bidi command to send command method "browsingContext.close" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-close - -#### Inherited from - -`BidiHandler.browsingContextClose` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:81 - -*** - -### ~~browsingContextCreate()~~ - -```ts -browsingContextCreate(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.create" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextCreateParameters` | WebDriver Bidi command to send command method "browsingContext.create" with parameters. | - -#### Returns - -`Promise`\<`BrowsingContextCreateResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-create - -#### Inherited from - -`BidiHandler.browsingContextCreate` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:88 - -*** - -### ~~browsingContextGetTree()~~ - -```ts -browsingContextGetTree(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.getTree" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextGetTreeParameters` | WebDriver Bidi command to send command method "browsingContext.getTree" with parameters. | - -#### Returns - -`Promise`\<`BrowsingContextGetTreeResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-getTree - -#### Inherited from - -`BidiHandler.browsingContextGetTree` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:95 - -*** - -### ~~browsingContextHandleUserPrompt()~~ - -```ts -browsingContextHandleUserPrompt(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.handleUserPrompt" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextHandleUserPromptParameters` | WebDriver Bidi command to send command method "browsingContext.handleUserPrompt" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-handleUserPrompt - -#### Inherited from - -`BidiHandler.browsingContextHandleUserPrompt` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:102 - -*** - -### ~~browsingContextLocateNodes()~~ - -```ts -browsingContextLocateNodes(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.locateNodes" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextLocateNodesParameters` | WebDriver Bidi command to send command method "browsingContext.locateNodes" with parameters. | - -#### Returns - -`Promise`\<`BrowsingContextLocateNodesResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-locateNodes - -#### Inherited from - -`BidiHandler.browsingContextLocateNodes` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:109 - -*** - -### ~~browsingContextNavigate()~~ - -```ts -browsingContextNavigate(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.navigate" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextNavigateParameters` | WebDriver Bidi command to send command method "browsingContext.navigate" with parameters. | - -#### Returns - -`Promise`\<`BrowsingContextNavigateResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-navigate - -#### Inherited from - -`BidiHandler.browsingContextNavigate` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:116 - -*** - -### ~~browsingContextPrint()~~ - -```ts -browsingContextPrint(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.print" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextPrintParameters` | WebDriver Bidi command to send command method "browsingContext.print" with parameters. | - -#### Returns - -`Promise`\<`BrowsingContextPrintResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-print - -#### Inherited from - -`BidiHandler.browsingContextPrint` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:123 - -*** - -### ~~browsingContextReload()~~ - -```ts -browsingContextReload(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.reload" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextReloadParameters` | WebDriver Bidi command to send command method "browsingContext.reload" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-reload - -#### Inherited from - -`BidiHandler.browsingContextReload` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:130 - -*** - -### ~~browsingContextSetViewport()~~ - -```ts -browsingContextSetViewport(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.setViewport" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextSetViewportParameters` | WebDriver Bidi command to send command method "browsingContext.setViewport" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-setViewport - -#### Inherited from - -`BidiHandler.browsingContextSetViewport` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:137 - -*** - -### ~~browsingContextTraverseHistory()~~ - -```ts -browsingContextTraverseHistory(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.traverseHistory" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextTraverseHistoryParameters` | WebDriver Bidi command to send command method "browsingContext.traverseHistory" with parameters. | - -#### Returns - -`Promise`\<`BrowsingContextTraverseHistoryResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-traverseHistory - -#### Inherited from - -`BidiHandler.browsingContextTraverseHistory` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:144 - -*** - -### ~~buttonDown()~~ - -```ts -buttonDown(button?): Promise -``` - -Jsonwp Protocol Command - -Click and hold the left mouse button (at the coordinates set by the last moveto command). Note that the next mouse-related command that should follow is buttonup . Any other mouse command (such as click or another call to buttondown) will yield undefined behaviour. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `button`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidbuttondown - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a click gesture! - -#### Inherited from - -`ProtocolCommands.buttonDown` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:561 - -*** - -### ~~buttonUp()~~ - -```ts -buttonUp(button?): Promise -``` - -Jsonwp Protocol Command - -Releases the mouse button previously held (where the mouse is currently at). Must be called once for every buttondown command issued. See the note in click and buttondown about implications of out-of-order commands. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `button`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidbuttonup - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a click gesture! - -#### Inherited from - -`ProtocolCommands.buttonUp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:570 - -*** - -### ~~clearLocalStorage()~~ - -```ts -clearLocalStorage(): Promise -``` - -Jsonwp Protocol Command - -Clear the storage. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storage - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.clearLocalStorage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:669 - -*** - -### ~~clearMockCalls()~~ - -```ts -clearMockCalls(mockId, restore?): Promise -``` - -Saucelabs Protocol Command - -Clear list of mock calls. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `mockId` | `string` | -| `restore`? | `boolean` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands - -#### Inherited from - -`ProtocolCommands.clearMockCalls` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:185 - -*** - -### ~~clearSessionStorage()~~ - -```ts -clearSessionStorage(): Promise -``` - -Jsonwp Protocol Command - -Clear the storage. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidsession_storage - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.clearSessionStorage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:723 - -*** - -### ~~closeApp()~~ - -```ts -closeApp(): Promise -``` - -Appium Protocol Command - -Close an app on device. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/close-app/ - -#### Deprecated - -Use `driver.execute('mobile: terminateApp', { ... })` instead - -#### Inherited from - -`ProtocolCommands.closeApp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:340 - -*** - -### ~~closeWindow()~~ - -```ts -closeWindow(): Promise -``` - -Webdriver Protocol Command - -The Close Window command closes the current top-level browsing context. Once done, if there are no more top-level browsing contexts open, the WebDriver session itself is closed. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-close-window - -#### Inherited from - -`ProtocolCommands.closeWindow` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:106 - -*** - -### ~~compareImages()~~ - -```ts -compareImages( - mode, - firstImage, - secondImage, -options): Promise -``` - -Appium Protocol Command - -This feature conducts image comparisons utilizing the capabilities of the OpenCV framework. Please note that for this functionality to work, both the OpenCV framework and the opencv4nodejs module must be installed on the machine where the Appium server is operational. ***Furthermore, you'll need to have the [`images-plugin`](https://github.com/appium/appium/tree/master/packages/images-plugin) plugin installed to use this feature with Appium 2.0.*** - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `mode` | `string` | -| `firstImage` | `string` | -| `secondImage` | `string` | -| `options` | `object` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/writing-running-appium/image-comparison/ - -#### Inherited from - -`ProtocolCommands.compareImages` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:563 - -*** - -### ~~connect()~~ - -```ts -connect(): Promise -``` - -#### Returns - -`Promise`\<`void`\> - -#### Inherited from - -`BidiHandler.connect` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/core.d.ts:10 - -*** - -### ~~createMockSensor()~~ - -```ts -createMockSensor( - mockSensorType, - maxSamplingFrequency, -minSamplingFrequency): Promise -``` - -Webdriver Protocol Command - -Creates a mock sensor to emulate sensors like Ambient Light Sensor. __Note:__ this feature has not landed in all browsers yet. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `mockSensorType` | `string` | -| `maxSamplingFrequency` | `number` | -| `minSamplingFrequency` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/sensors/#create-mock-sensor-command - -#### Inherited from - -`ProtocolCommands.createMockSensor` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:537 - -*** - -### ~~createWindow()~~ - -```ts -createWindow(type): Promise -``` - -Webdriver Protocol Command - -Create a new top-level browsing context. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `type` | `"tab"` \| `"window"` | - -#### Returns - -`Promise`\<`WindowHandle`\> - -#### Ref - -https://w3c.github.io/webdriver/#new-window - -#### Inherited from - -`ProtocolCommands.createWindow` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:122 - -*** - -### ~~deactivateIME()~~ - -```ts -deactivateIME(): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimedeactivate - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.deactivateIME` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:516 - -*** - -### ~~deleteAllCookies()~~ - -```ts -deleteAllCookies(): Promise -``` - -Webdriver Protocol Command - -The Delete All Cookies command allows deletion of all cookies associated with the active document's address. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-delete-all-cookies - -#### Inherited from - -`ProtocolCommands.deleteAllCookies` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:402 - -*** - -### ~~deleteCookie()~~ - -```ts -deleteCookie(name): Promise -``` - -Webdriver Protocol Command - -The Delete Cookie command allows you to delete either a single cookie by parameter name, or all the cookies associated with the active document's address if name is undefined. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-delete-cookie - -#### Inherited from - -`ProtocolCommands.deleteCookie` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:418 - -*** - -### ~~deleteDownloadableFiles()~~ - -```ts -deleteDownloadableFiles(): Promise -``` - -Selenium Protocol Command - -Remove all downloadable files from remote machine on which the browser is running. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://www.seleniumhq.org/ - -#### Inherited from - -`ProtocolCommands.deleteDownloadableFiles` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:34 - -*** - -### ~~deleteLocalStorageItem()~~ - -```ts -deleteLocalStorageItem(key): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `key` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidlocal_storagekeykey - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.deleteLocalStorageItem` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:687 - -*** - -### ~~deleteMockSensor()~~ - -```ts -deleteMockSensor(type): Promise -``` - -Webdriver Protocol Command - -The Delete Session command closes any top-level browsing contexts associated with the current session, terminates the connection, and finally closes the current session. __Note:__ this feature has not landed in all browsers yet. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `type` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/sensors/#delete-mock-sensor-command - -#### Inherited from - -`ProtocolCommands.deleteMockSensor` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:561 - -*** - -### ~~deleteNetworkConditions()~~ - -```ts -deleteNetworkConditions(): Promise -``` - -Chromium Protocol Command - -Disable any network throttling which might have been set. Equivalent of setting the `No throttling` preset. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L1724-L1745 - -#### Inherited from - -`ProtocolCommands.deleteNetworkConditions` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:155 - -*** - -### ~~deleteSession()~~ - -```ts -deleteSession(deleteSessionOpts?): Promise -``` - -Webdriver Protocol Command - -The Delete Session command closes any top-level browsing contexts associated with the current session, terminates the connection, and finally closes the current session. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `deleteSessionOpts`? | `DeleteSessionOpts` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-delete-session - -#### Inherited from - -`ProtocolCommands.deleteSession` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:18 - -*** - -### ~~deleteSessionStorageItem()~~ - -```ts -deleteSessionStorageItem(key): Promise -``` - -Jsonwp Protocol Command - -Remove the storage item for the given key. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `key` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidsession_storagekeykey - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.deleteSessionStorageItem` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:741 - -*** - -### ~~dismissAlert()~~ - -```ts -dismissAlert(): Promise -``` - -Webdriver Protocol Command - -The Dismiss Alert command dismisses a simple dialog if present, otherwise error. A request to dismiss an alert user prompt, which may not necessarily have a dismiss button, has the same effect as accepting it. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-dismiss-alert - -#### Inherited from - -`ProtocolCommands.dismissAlert` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:442 - -*** - -### ~~download()~~ - -```ts -download(name): Promise -``` - -Selenium Protocol Command - -Download a file from remote machine on which the browser is running. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://www.seleniumhq.org/ - -#### Inherited from - -`ProtocolCommands.download` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:26 - -*** - -### ~~elementClear()~~ - -```ts -elementClear(elementId): Promise -``` - -Webdriver Protocol Command - -The Element Clear command scrolls into view an editable or resettable element and then attempts to clear its selected files or text content. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-element-clear - -#### Inherited from - -`ProtocolCommands.elementClear` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:346 - -*** - -### ~~elementClick()~~ - -```ts -elementClick(elementId): Promise -``` - -Webdriver Protocol Command - -The Element Click command scrolls into view the element if it is not already pointer-interactable, and clicks its in-view center point. If the element's center point is obscured by another element, an element click intercepted error is returned. If the element is outside the viewport, an element not interactable error is returned. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-element-click - -#### Inherited from - -`ProtocolCommands.elementClick` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:338 - -*** - -### ~~elementEquals()~~ - -```ts -elementEquals(elementId, otherElementId): Promise -``` - -Jsonwp Protocol Command - -Compare elements with each other. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `otherElementId` | `string` | - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidequalsother - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.elementEquals` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:350 - -*** - -### ~~elementHover()~~ - -```ts -elementHover(elementId): Promise -``` - -Chromium Protocol Command - -Enable hover state for an element, which is reset upon next interaction. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/element_commands.cc#L126-L146 - -#### Inherited from - -`ProtocolCommands.elementHover` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:220 - -*** - -### ~~elementSendKeys()~~ - -```ts -elementSendKeys(elementId, text): Promise -``` - -Webdriver Protocol Command - -The Element Send Keys command scrolls into view the form control element and then sends the provided keys to the element. In case the element is not keyboard-interactable, an element not interactable error is returned.

The key input state used for input may be cleared mid-way through "typing" by sending the null key, which is U+E000 (NULL). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `text` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-element-send-keys - -#### Inherited from - -`ProtocolCommands.elementSendKeys` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:354 - -*** - -### ~~elementSubmit()~~ - -```ts -elementSubmit(elementId): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidsubmit - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.elementSubmit` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:359 - -*** - -### ~~emit()~~ - -```ts -emit(eventName, ...args): boolean -``` - -Synchronously calls each of the listeners registered for the event named`eventName`, in the order they were registered, passing the supplied arguments -to each. - -Returns `true` if the event had listeners, `false` otherwise. - -```js -const EventEmitter = require('events'); -const myEmitter = new EventEmitter(); - -// First listener -myEmitter.on('event', function firstListener() { - console.log('Helloooo! first listener'); -}); -// Second listener -myEmitter.on('event', function secondListener(arg1, arg2) { - console.log(`event with parameters ${arg1}, ${arg2} in second listener`); -}); -// Third listener -myEmitter.on('event', function thirdListener(...args) { - const parameters = args.join(', '); - console.log(`event with parameters ${parameters} in third listener`); -}); - -console.log(myEmitter.listeners('event')); - -myEmitter.emit('event', 1, 2, 3, 4, 5); - -// Prints: -// [ -// [Function: firstListener], -// [Function: secondListener], -// [Function: thirdListener] -// ] -// Helloooo! first listener -// event with parameters 1, 2 in second listener -// event with parameters 1, 2, 3, 4, 5 in third listener -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| ...`args` | `any`[] | - -#### Returns - -`boolean` - -#### Since - -v0.1.26 - -#### Inherited from - -`Omit.emit` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:731 - -*** - -### ~~endCoverage()~~ - -```ts -endCoverage(intent, path): Promise -``` - -Appium Protocol Command - -Get test coverage data. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `intent` | `string` | -| `path` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/end-test-coverage/ - -#### Inherited from - -`ProtocolCommands.endCoverage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:357 - -*** - -### ~~eventNames()~~ - -```ts -eventNames(): (string | symbol)[] -``` - -Returns an array listing the events for which the emitter has registered -listeners. The values in the array are strings or `Symbol`s. - -```js -const EventEmitter = require('events'); -const myEE = new EventEmitter(); -myEE.on('foo', () => {}); -myEE.on('bar', () => {}); - -const sym = Symbol('symbol'); -myEE.on(sym, () => {}); - -console.log(myEE.eventNames()); -// Prints: [ 'foo', 'bar', Symbol(symbol) ] -``` - -#### Returns - -(`string` \| `symbol`)[] - -#### Since - -v6.0.0 - -#### Inherited from - -`Omit.eventNames` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:794 - -*** - -### ~~executeAsyncScript()~~ - -```ts -executeAsyncScript(script, args): Promise -``` - -Webdriver Protocol Command - -The Execute Async Script command causes JavaScript to execute as an anonymous function. Unlike the Execute Script command, the result of the function is ignored. Instead an additional argument is provided as the final argument to the function. This is a function that, when called, returns its first argument as the response. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `script` | `string` | -| `args` | ( \| `undefined` \| `null` \| `string` \| `number` \| `boolean` \| `object`)[] | - -#### Returns - -`Promise`\<`any`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-execute-async-script - -#### Inherited from - -`ProtocolCommands.executeAsyncScript` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:378 - -*** - -### ~~executeDriverScript()~~ - -```ts -executeDriverScript( - script, - type?, -timeout?): Promise -``` - -Appium Protocol Command - -This command enables you to specify a WebdriverIO script as a string and transmit it to the Appium server for local execution on the server itself. This approach helps minimize potential latency associated with each command. ***To utilize this command with Appium 2.0, you must have the [`execute-driver-plugin`](https://github.com/appium/appium/tree/master/packages/execute-driver-plugin) plugin installed.*** - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `script` | `string` | -| `type`? | `string` | -| `timeout`? | `number` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/appium/appium/blob/master/docs/en/commands/session/execute-driver.md - -#### Inherited from - -`ProtocolCommands.executeDriverScript` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:539 - -*** - -### ~~executeScript()~~ - -```ts -executeScript(script, args): Promise -``` - -Webdriver Protocol Command - -The Execute Script command executes a JavaScript function in the context of the current browsing context and returns the return value of the function. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `script` | `string` | -| `args` | ( \| `undefined` \| `null` \| `string` \| `number` \| `boolean` \| `object`)[] | - -#### Returns - -`Promise`\<`any`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-execute-script - -#### Inherited from - -`ProtocolCommands.executeScript` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:370 - -*** - -### ~~file()~~ - -```ts -file(file): Promise -``` - -Chromium Protocol Command - -Upload a file to remote machine on which the browser is running. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `file` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L1037-L1065 - -#### Inherited from - -`ProtocolCommands.file` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:179 - -*** - -### ~~findElement()~~ - -```ts -findElement(using, value): Promise -``` - -Webdriver Protocol Command - -The Find Element command is used to find an element in the current browsing context that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `using` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`ElementReference`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-find-element - -#### Inherited from - -`ProtocolCommands.findElement` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:202 - -*** - -### ~~findElementFromElement()~~ - -```ts -findElementFromElement( - elementId, - using, -value): Promise -``` - -Webdriver Protocol Command - -The Find Element From Element command is used to find an element from a web element in the current browsing context that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `using` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`ElementReference`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-find-element-from-element - -#### Inherited from - -`ProtocolCommands.findElementFromElement` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:234 - -*** - -### ~~findElementFromShadowRoot()~~ - -```ts -findElementFromShadowRoot( - shadowId, - using, -value): Promise -``` - -Webdriver Protocol Command - -The Find Element From Shadow Root command is used to find an element within the shadow root of an element that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `shadowId` | `string` | -| `using` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`ElementReference`\> - -#### Ref - -https://w3c.github.io/webdriver/#find-element-from-shadow-root - -#### Inherited from - -`ProtocolCommands.findElementFromShadowRoot` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:210 - -*** - -### ~~findElements()~~ - -```ts -findElements(using, value): Promise -``` - -Webdriver Protocol Command - -The Find Elements command is used to find elements in the current browsing context that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `using` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`ElementReference`[]\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-find-elements - -#### Inherited from - -`ProtocolCommands.findElements` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:218 - -*** - -### ~~findElementsFromElement()~~ - -```ts -findElementsFromElement( - elementId, - using, -value): Promise -``` - -Webdriver Protocol Command - -The Find Elements From Element command is used to find elements from a web element in the current browsing context that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `using` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`ElementReference`[]\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-find-elements-from-element - -#### Inherited from - -`ProtocolCommands.findElementsFromElement` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:242 - -*** - -### ~~findElementsFromShadowRoot()~~ - -```ts -findElementsFromShadowRoot( - shadowId, - using, -value): Promise -``` - -Webdriver Protocol Command - -The Find Elements command is used to find elements within the shadow root of an element that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `shadowId` | `string` | -| `using` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`ElementReference`[]\> - -#### Ref - -https://w3c.github.io/webdriver/#find-elements-from-shadow-root - -#### Inherited from - -`ProtocolCommands.findElementsFromShadowRoot` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:226 - -*** - -### ~~fingerPrint()~~ - -```ts -fingerPrint(fingerprintId): Promise -``` - -Appium Protocol Command - -Authenticate users by using their finger print scans on supported emulators. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `fingerprintId` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/authentication/finger-print/ - -#### Inherited from - -`ProtocolCommands.fingerPrint` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:461 - -*** - -### ~~forward()~~ - -```ts -forward(): Promise -``` - -Webdriver Protocol Command - -The Forward command causes the browser to traverse one step forwards in the joint session history of the current top-level browsing context. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-forward - -#### Inherited from - -`ProtocolCommands.forward` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:74 - -*** - -### ~~freeze()~~ - -```ts -freeze(): Promise -``` - -Chromium Protocol Command - -Freeze the current page. Extension for [Page Lifecycle API](https://developers.google.com/web/updates/2018/07/page-lifecycle-api). - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L625-L633 - -#### Inherited from - -`ProtocolCommands.freeze` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:236 - -*** - -### ~~fullPageScreenshot()~~ - -```ts -fullPageScreenshot(): Promise -``` - -Gecko Protocol Command - -Captures a screenshot of the entire page. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://phabricator.services.mozilla.com/source/mozilla-central/browse/default/testing/geckodriver/src/command.rs$43-46 - -#### Inherited from - -`ProtocolCommands.fullPageScreenshot` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/gecko.d.ts:9 - -*** - -### ~~fullscreenWindow()~~ - -```ts -fullscreenWindow(): Promise -``` - -Webdriver Protocol Command - -The Fullscreen Window command invokes the window manager-specific “full screen” operation, if any, on the window containing the current top-level browsing context. This typically increases the window to the size of the physical display and can hide browser chrome elements such as toolbars. - -#### Returns - -`Promise`\<`RectReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-fullscreen-window - -#### Inherited from - -`ProtocolCommands.fullscreenWindow` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:194 - -*** - -### ~~generateTestReport()~~ - -```ts -generateTestReport(message, group): Promise -``` - -Webdriver Protocol Command - -Generates a report for testing. Extension for [Reporting API](https://developers.google.com/web/updates/2018/09/reportingapi). __Note:__ this feature has not landed in all browsers yet. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `message` | `string` | -| `group` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/reporting/#automation - -#### Inherited from - -`ProtocolCommands.generateTestReport` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:529 - -*** - -### ~~getActiveElement()~~ - -```ts -getActiveElement(): Promise -``` - -Webdriver Protocol Command - -Get Active Element returns the active element of the current browsing context’s document element. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement). - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-active-element - -#### Inherited from - -`ProtocolCommands.getActiveElement` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:258 - -*** - -### ~~getActiveEngine()~~ - -```ts -getActiveEngine(): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactive_engine - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getActiveEngine` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:498 - -*** - -### ~~getAlertText()~~ - -```ts -getAlertText(): Promise -``` - -Webdriver Protocol Command - -The Get Alert Text command returns the message of the current user prompt. If there is no current user prompt, it returns an error. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-alert-text - -#### Inherited from - -`ProtocolCommands.getAlertText` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:458 - -*** - -### ~~getAllCookies()~~ - -```ts -getAllCookies(): Promise -``` - -Webdriver Protocol Command - -The Get All Cookies command returns all cookies associated with the address of the current browsing context’s active document. - -#### Returns - -`Promise`\<`Cookie`[]\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-all-cookies - -#### Inherited from - -`ProtocolCommands.getAllCookies` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:386 - -*** - -### ~~getApplicationCacheStatus()~~ - -```ts -getApplicationCacheStatus(): Promise -``` - -Jsonwp Protocol Command - -Get the status of the html5 application cache. - -#### Returns - -`Promise`\<`number`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidapplication_cachestatus - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getApplicationCacheStatus` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:777 - -*** - -### ~~getAvailableEngines()~~ - -```ts -getAvailableEngines(): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeavailable_engines - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getAvailableEngines` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:489 - -*** - -### ~~getCastIssueMessage()~~ - -```ts -getCastIssueMessage(): Promise -``` - -Chromium Protocol Command - -Returns error message if there is any issue in a Cast session. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#751 - -#### Inherited from - -`ProtocolCommands.getCastIssueMessage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:276 - -*** - -### ~~getCastSinks()~~ - -```ts -getCastSinks(): Promise -``` - -Chromium Protocol Command - -Returns the list of cast sinks (Cast devices) available to the Chrome media router. - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#748 - -#### Inherited from - -`ProtocolCommands.getCastSinks` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:252 - -*** - -### ~~getClipboard()~~ - -```ts -getClipboard(contentType?): Promise -``` - -Appium Protocol Command - -Get the content of the system clipboard - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `contentType`? | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/clipboard/get-clipboard/ - -#### Inherited from - -`ProtocolCommands.getClipboard` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:477 - -*** - -### ~~getContext()~~ - -```ts -getContext(): Promise -``` - -Appium Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`Context`\> - -#### Ref - -https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts - -#### Inherited from - -`ProtocolCommands.getContext` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:10 - -*** - -### ~~getContexts()~~ - -```ts -getContexts(): Promise -``` - -Appium Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`Context`[]\> - -#### Ref - -https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts - -#### Inherited from - -`ProtocolCommands.getContexts` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:26 - -*** - -### ~~getCredentials()~~ - -```ts -getCredentials(authenticatorId): Promise -``` - -Webdriver Protocol Command - -Returns one Credential Parameters object for every Public Key Credential Source stored in a Virtual Authenticator, regardless of whether they were stored using Add Credential or `navigator.credentials.create()`. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `authenticatorId` | `string` | - -#### Returns - -`Promise`\<`Credential`[]\> - -#### Ref - -https://www.w3.org/TR/webauthn-2/#sctn-automation-get-credentials - -#### Inherited from - -`ProtocolCommands.getCredentials` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:601 - -*** - -### ~~getCurrentActivity()~~ - -```ts -getCurrentActivity(): Promise -``` - -Appium Protocol Command - -Get the name of the current Android activity. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/activity/current-activity/ - -#### Inherited from - -`ProtocolCommands.getCurrentActivity` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:130 - -*** - -### ~~getCurrentPackage()~~ - -```ts -getCurrentPackage(): Promise -``` - -Appium Protocol Command - -Get the name of the current Android package. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/activity/current-package/ - -#### Inherited from - -`ProtocolCommands.getCurrentPackage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:138 - -*** - -### ~~getDeviceTime()~~ - -```ts -getDeviceTime(): Promise -``` - -Appium Protocol Command - -Get the time on the device. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/system/system-time/ - -#### Inherited from - -`ProtocolCommands.getDeviceTime` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:298 - -*** - -### ~~getDisplayDensity()~~ - -```ts -getDisplayDensity(): Promise -``` - -Appium Protocol Command - -Get display density from device. - -#### Returns - -`Promise`\<`any`\> - -#### Ref - -https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints - -#### Inherited from - -`ProtocolCommands.getDisplayDensity` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:306 - -*** - -### ~~getDownloadableFiles()~~ - -```ts -getDownloadableFiles(): Promise -``` - -Selenium Protocol Command - -List files from remote machine available for download. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://www.seleniumhq.org/ - -#### Inherited from - -`ProtocolCommands.getDownloadableFiles` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:18 - -*** - -### ~~getElementAttribute()~~ - -```ts -getElementAttribute(elementId, name): Promise -``` - -Webdriver Protocol Command - -The Get Element Attribute command will return the attribute of a web element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `name` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-element-attribute - -#### Inherited from - -`ProtocolCommands.getElementAttribute` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:282 - -*** - -### ~~getElementCSSValue()~~ - -```ts -getElementCSSValue(elementId, propertyName): Promise -``` - -Webdriver Protocol Command - -The Get Element CSS Value command retrieves the computed value of the given CSS property of the given web element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `propertyName` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-element-css-value - -#### Inherited from - -`ProtocolCommands.getElementCSSValue` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:298 - -*** - -### ~~getElementComputedLabel()~~ - -```ts -getElementComputedLabel(elementId): Promise -``` - -Webdriver Protocol Command - -Get the accessible name of the element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#get-computed-label - -#### Inherited from - -`ProtocolCommands.getElementComputedLabel` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:498 - -*** - -### ~~getElementComputedRole()~~ - -```ts -getElementComputedRole(elementId): Promise -``` - -Webdriver Protocol Command - -Get the computed WAI-ARIA role of an element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#get-computed-role - -#### Inherited from - -`ProtocolCommands.getElementComputedRole` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:490 - -*** - -### ~~getElementLocation()~~ - -```ts -getElementLocation(elementId): Promise -``` - -Jsonwp Protocol Command - -Determine an element's location on the page. The point `(0, 0)` refers to the upper-left corner of the page. The element's coordinates are returned as a JSON object with `x` and `y` properties. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidlocation - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getElementLocation` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:307 - -*** - -### ~~getElementLocationInView()~~ - -```ts -getElementLocationInView(elementId): Promise -``` - -Jsonwp Protocol Command - -Determine an element's location on the screen once it has been scrolled into view.

__Note:__ This is considered an internal command and should only be used to determine an element's location for correctly generating native events. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidlocation_in_view - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getElementLocationInView` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:316 - -*** - -### ~~getElementProperty()~~ - -```ts -getElementProperty(elementId, name): Promise -``` - -Webdriver Protocol Command - -The Get Element Property command will return the result of getting a property of an element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `name` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-element-property - -#### Inherited from - -`ProtocolCommands.getElementProperty` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:290 - -*** - -### ~~getElementRect()~~ - -```ts -getElementRect(elementId): Promise -``` - -Webdriver Protocol Command - -The Get Element Rect command returns the dimensions and coordinates of the given web element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`RectReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-element-rect - -#### Inherited from - -`ProtocolCommands.getElementRect` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:322 - -*** - -### ~~getElementShadowRoot()~~ - -```ts -getElementShadowRoot(elementId): Promise -``` - -Webdriver Protocol Command - -Get the shadow root object of an element. The result object can be used to fetch elements within this shadow root using e.g. findElementFromShadowRoots or findElementsFromShadowRoots. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`ShadowElementReference`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-active-element - -#### Inherited from - -`ProtocolCommands.getElementShadowRoot` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:250 - -*** - -### ~~getElementSize()~~ - -```ts -getElementSize(elementId): Promise -``` - -Jsonwp Protocol Command - -Determine an element's size in pixels. The size will be returned as a JSON object with `width` and `height` properties. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidsize - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "getElementRect" command instead of "getElementSize"! - -#### Inherited from - -`ProtocolCommands.getElementSize` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:325 - -*** - -### ~~getElementTagName()~~ - -```ts -getElementTagName(elementId): Promise -``` - -Webdriver Protocol Command - -The Get Element Tag Name command returns the qualified element name of the given web element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-element-tag-name - -#### Inherited from - -`ProtocolCommands.getElementTagName` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:314 - -*** - -### ~~getElementText()~~ - -```ts -getElementText(elementId): Promise -``` - -Webdriver Protocol Command - -The Get Element Text command intends to return an element’s text "as rendered". An element's rendered text is also used for locating a elements by their link text and partial link text. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-element-text - -#### Inherited from - -`ProtocolCommands.getElementText` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:306 - -*** - -### ~~getElementValue()~~ - -```ts -getElementValue(elementId): Promise -``` - -Chromium Protocol Command - -Retrieves the value of a given form control element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`null` \| `string`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/element_commands.cc#L431-L443 - -#### Inherited from - -`ProtocolCommands.getElementValue` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:212 - -*** - -### ~~getEvents()~~ - -```ts -getEvents(type): Promise -``` - -Appium Protocol Command - -Get events stored in appium server. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `type` | `string`[] | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/appium/appium/blob/master/docs/en/commands/session/events/get-events.md - -#### Inherited from - -`ProtocolCommands.getEvents` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:547 - -*** - -### ~~getGeoLocation()~~ - -```ts -getGeoLocation(): Promise -``` - -Jsonwp Protocol Command - -Get the current geo location. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocation - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getGeoLocation` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:633 - -*** - -### ~~getHubConfig()~~ - -```ts -getHubConfig(): Promise -``` - -Selenium Protocol Command - -Receive hub config remotely. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/nicegraham/selenium-grid2-api#gridapihub - -#### Inherited from - -`ProtocolCommands.getHubConfig` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:42 - -*** - -### ~~getLocalStorage()~~ - -```ts -getLocalStorage(): Promise -``` - -Jsonwp Protocol Command - -Get all keys of the storage. - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storage - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.getLocalStorage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:651 - -*** - -### ~~getLocalStorageItem()~~ - -```ts -getLocalStorageItem(key): Promise -``` - -Jsonwp Protocol Command - -Get the storage item for the given key. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `key` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storagekeykey - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.getLocalStorageItem` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:678 - -*** - -### ~~getLocalStorageSize()~~ - -```ts -getLocalStorageSize(): Promise -``` - -Jsonwp Protocol Command - -Get the number of items in the storage. - -#### Returns - -`Promise`\<`number`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlocal_storagesize - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.getLocalStorageSize` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:696 - -*** - -### ~~getLogTypes()~~ - -```ts -getLogTypes(): Promise -``` - -Jsonwp Protocol Command - -Get available log types. - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlogtypes - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "devtools" instead to get logs! - -#### Inherited from - -`ProtocolCommands.getLogTypes` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:768 - -*** - -### ~~getLogs()~~ - -```ts -getLogs(type): Promise -``` - -Jsonwp Protocol Command - -Get the log for a given log type. Log buffer is reset after each request. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `type` | `string` | - -#### Returns - -`Promise`\<`object`[]\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlog - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "devtools" instead to get logs! - -#### Inherited from - -`ProtocolCommands.getLogs` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:759 - -*** - -### ~~getMaxListeners()~~ - -```ts -getMaxListeners(): number -``` - -Returns the current max listener value for the `EventEmitter` which is either -set by `emitter.setMaxListeners(n)` or defaults to defaultMaxListeners. - -#### Returns - -`number` - -#### Since - -v1.0.0 - -#### Inherited from - -`Omit.getMaxListeners` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:647 - -*** - -### ~~getMockCalls()~~ - -```ts -getMockCalls(mockId): Promise -``` - -Saucelabs Protocol Command - -Receive request information about requests that match the mocked resource. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `mockId` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands - -#### Inherited from - -`ProtocolCommands.getMockCalls` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:177 - -*** - -### ~~getMockSensor()~~ - -```ts -getMockSensor(type): Promise -``` - -Webdriver Protocol Command - -Retrieves information about a given type of mock sensor. __Note:__ this feature has not landed in all browsers yet. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `type` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://w3c.github.io/sensors/#get-mock-sensor-command - -#### Inherited from - -`ProtocolCommands.getMockSensor` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:545 - -*** - -### ~~getMozContext()~~ - -```ts -getMozContext(): Promise -``` - -Gecko Protocol Command - -Get the context that is currently in effect, e.g. `CHROME` or `CONTENT`. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/blob/586affe0cf675b1d5c8abc756defa4a46d95391b/javascript/node/selenium-webdriver/firefox.js#L615-L622 - -#### Example - -```js -console.log(await browser.getMozContext()); // outputs: 'CHROME' -``` - -#### Inherited from - -`ProtocolCommands.getMozContext` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/gecko.d.ts:21 - -*** - -### ~~getNamedCookie()~~ - -```ts -getNamedCookie(name): Promise -``` - -Webdriver Protocol Command - -The Get Named Cookie command returns the cookie with the requested name from the associated cookies in the cookie store of the current browsing context's active document. If no cookie is found, a no such cookie error is returned. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `string` | - -#### Returns - -`Promise`\<`Cookie`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-named-cookie - -#### Inherited from - -`ProtocolCommands.getNamedCookie` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:410 - -*** - -### ~~getNetworkConditions()~~ - -```ts -getNetworkConditions(): Promise -``` - -Chromium Protocol Command - -Get current network conditions used for emulation. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L839-L859 - -#### Inherited from - -`ProtocolCommands.getNetworkConditions` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:119 - -*** - -### ~~getNetworkConnection()~~ - -```ts -getNetworkConnection(): Promise -``` - -Chromium Protocol Command - -Get the connection type for network emulation. This command is only applicable when remote end replies with `networkConnectionEnabled` capability set to `true`. - -#### Returns - -`Promise`\<`number`\> - -#### Ref - -https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-modes - -#### Example - -```js -const browser = remote({ - capabilities: { - browserName: 'chrome', - 'goog:chromeOptions': { - // Network emulation requires device mode, which is only enabled when mobile emulation is on - mobileEmulation: { deviceName: 'iPad' }, - }, - } -}); -console.log(browser.getNetworkConnection()); // outputs: 6 (Both Wi-Fi and data) -``` - -#### Inherited from - -`ProtocolCommands.getNetworkConnection` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:90 - -*** - -### ~~getOrientation()~~ - -```ts -getOrientation(): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidorientation - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getOrientation` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:534 - -*** - -### ~~getPageIndex()~~ - -```ts -getPageIndex(): Promise -``` - -Mjsonwp Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#mobile-json-wire-protocol-endpoints - -#### Deprecated - -In Appium 2.0, this method is marked as deprecated and currently has no available alternatives. - -#### Inherited from - -`ProtocolCommands.getPageIndex` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/mjsonwp.d.ts:10 - -*** - -### ~~getPageLogs()~~ - -```ts -getPageLogs(type): Promise -``` - -Saucelabs Protocol Command - -Get webpage specific log information based on the last page load. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `type` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-ExtendedDebuggingTools - -#### Examples - -```js -// Get Network Logs -console.log(browser.getPageLogs('sauce:network')); -// -// outputs: -// [{ -// "url": "https://app.saucelabs.com/dashboard", -// "statusCode": 200, -// "method": "GET", -// "requestHeaders": { -// ... -// }, -// "responseHeaders": { -// ... -// }, -// "timing": { -// ... -// } -// }, {, -// ... -// }] -// -```* - -```js -// Get Performance Logs (needs capturePerformance capability see: https://wiki.saucelabs.com/display/DOCS/Measure+Page+Load+Performance+Using+Test+Automation#MeasurePageLoadPerformanceUsingTestAutomation-EnableYourScript) -console.log(browser.getPageLogs('sauce:performance')); -// -// outputs: -// { -// "speedIndex": 1472.023, -// "timeToFirstInteractive": 1243.214, -// "firstMeaningfulPaint": 892.643, -// ... -// } -// -``` - -#### Inherited from - -`ProtocolCommands.getPageLogs` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:48 - -*** - -### ~~getPageSource()~~ - -```ts -getPageSource(): Promise -``` - -Webdriver Protocol Command - -The Get Page Source command returns a string serialization of the DOM of the current browsing context active document. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-page-source - -#### Inherited from - -`ProtocolCommands.getPageSource` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:362 - -*** - -### ~~getPerformanceData()~~ - -```ts -getPerformanceData( - packageName, - dataType, -dataReadTimeout?): Promise -``` - -Appium Protocol Command - -Returns the information of the system state which is supported to read as like cpu, memory, network traffic, and battery. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `packageName` | `string` | -| `dataType` | `string` | -| `dataReadTimeout`? | `number` | - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/performance-data/get-performance-data/ - -#### Inherited from - -`ProtocolCommands.getPerformanceData` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:90 - -*** - -### ~~getPerformanceDataTypes()~~ - -```ts -getPerformanceDataTypes(): Promise -``` - -Appium Protocol Command - -Returns the information types of the system state which is supported to read as like cpu, memory, network traffic, and battery. - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/performance-data/performance-data-types/ - -#### Inherited from - -`ProtocolCommands.getPerformanceDataTypes` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:82 - -*** - -### ~~getSession()~~ - -```ts -getSession(): Promise -``` - -Jsonwp Protocol Command - -Retrieve the capabilities of the specified session. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionid - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getSession` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:36 - -*** - -### ~~getSessionStorage()~~ - -```ts -getSessionStorage(): Promise -``` - -Jsonwp Protocol Command - -Get all keys of the storage. - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidsession_storage - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.getSessionStorage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:705 - -*** - -### ~~getSessionStorageItem()~~ - -```ts -getSessionStorageItem(key): Promise -``` - -Jsonwp Protocol Command - -Get the storage item for the given key. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `key` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidsession_storagekeykey - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.getSessionStorageItem` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:732 - -*** - -### ~~getSessionStorageSize()~~ - -```ts -getSessionStorageSize(): Promise -``` - -Jsonwp Protocol Command - -Get the number of items in the storage. - -#### Returns - -`Promise`\<`number`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidsession_storagesize - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.getSessionStorageSize` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:750 - -*** - -### ~~getSessions()~~ - -```ts -getSessions(): Promise -``` - -Jsonwp Protocol Command - -Returns a list of the currently active sessions. Each session will be returned as a list of JSON objects containing `id` and `capabilities`. - -#### Returns - -`Promise`\<`object`[]\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessions - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getSessions` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:27 - -*** - -### ~~getSettings()~~ - -```ts -getSettings(): Promise -``` - -Appium Protocol Command - -Retrieve the current settings on the device. - -#### Returns - -`Promise`\<`SettingsReturn`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/session/settings/get-settings/ - -#### Inherited from - -`ProtocolCommands.getSettings` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:389 - -*** - -### ~~getStrings()~~ - -```ts -getStrings(language?, stringFile?): Promise -``` - -Appium Protocol Command - -Get app strings. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `language`? | `string` | -| `stringFile`? | `string` | - -#### Returns - -`Promise`\<`StringsReturn`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/get-app-strings/ - -#### Inherited from - -`ProtocolCommands.getStrings` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:365 - -*** - -### ~~getSystemBars()~~ - -```ts -getSystemBars(): Promise -``` - -Appium Protocol Command - -Retrieve visibility and bounds information of the status and navigation bars. - -#### Returns - -`Promise`\<`object`[]\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/system/system-bars/ - -#### Inherited from - -`ProtocolCommands.getSystemBars` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:290 - -*** - -### ~~getTimeouts()~~ - -```ts -getTimeouts(): Promise -``` - -Webdriver Protocol Command - -The Get Timeouts command gets timeout durations associated with the current session. - -#### Returns - -`Promise`\<`Timeouts`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-timeouts - -#### Inherited from - -`ProtocolCommands.getTimeouts` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:34 - -*** - -### ~~getTitle()~~ - -```ts -getTitle(): Promise -``` - -Webdriver Protocol Command - -The Get Title command returns the document title of the current top-level browsing context, equivalent to calling `document.title`. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-title - -#### Inherited from - -`ProtocolCommands.getTitle` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:90 - -*** - -### ~~getUrl()~~ - -```ts -getUrl(): Promise -``` - -Webdriver Protocol Command - -The Get Current URL command returns the URL of the current top-level browsing context. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-current-url - -#### Inherited from - -`ProtocolCommands.getUrl` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:50 - -*** - -### ~~getWindowHandle()~~ - -```ts -getWindowHandle(): Promise -``` - -Webdriver Protocol Command - -The Get Window Handle command returns the window handle for the current top-level browsing context. It can be used as an argument to Switch To Window. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-window-handle - -#### Inherited from - -`ProtocolCommands.getWindowHandle` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:98 - -*** - -### ~~getWindowHandles()~~ - -```ts -getWindowHandles(): Promise -``` - -Webdriver Protocol Command - -The Get Window Handles command returns a list of window handles for every open top-level browsing context. The order in which the window handles are returned is arbitrary. - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-window-handles - -#### Inherited from - -`ProtocolCommands.getWindowHandles` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:130 - -*** - -### ~~getWindowPosition()~~ - -```ts -getWindowPosition(): Promise -``` - -Jsonwp Protocol Command - -Get the position of the current focussed window. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidwindowwindowhandleposition - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getWindowPosition` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:175 - -*** - -### ~~getWindowRect()~~ - -```ts -getWindowRect(): Promise -``` - -Webdriver Protocol Command - -The Get Window Rect command returns the size and position on the screen of the operating system window corresponding to the current top-level browsing context. - -#### Returns - -`Promise`\<`RectReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-window-rect - -#### Inherited from - -`ProtocolCommands.getWindowRect` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:162 - -*** - -### ~~gridProxyDetails()~~ - -```ts -gridProxyDetails(id): Promise -``` - -Selenium Protocol Command - -Get proxy details. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `id` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/nicegraham/selenium-grid2-api#gridapiproxy - -#### Inherited from - -`ProtocolCommands.gridProxyDetails` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:58 - -*** - -### ~~gridTestSession()~~ - -```ts -gridTestSession(session): Promise -``` - -Selenium Protocol Command - -Get the details of the Selenium Grid node running a session. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `session` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/nicegraham/selenium-grid2-api#gridapitestsession - -#### Inherited from - -`ProtocolCommands.gridTestSession` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:50 - -*** - -### ~~gsmCall()~~ - -```ts -gsmCall(phoneNumber, action): Promise -``` - -Appium Protocol Command - -Make GSM call (Emulator only). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `phoneNumber` | `string` | -| `action` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/gsm-call/ - -#### Inherited from - -`ProtocolCommands.gsmCall` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:413 - -*** - -### ~~gsmSignal()~~ - -```ts -gsmSignal(signalStrength, signalStrengh?): Promise -``` - -Appium Protocol Command - -Set GSM signal strength (Emulator only). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `signalStrength` | `string` | -| `signalStrengh`? | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/gsm-signal/ - -#### Inherited from - -`ProtocolCommands.gsmSignal` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:421 - -*** - -### ~~gsmVoice()~~ - -```ts -gsmVoice(state): Promise -``` - -Appium Protocol Command - -Set GSM voice state (Emulator only). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `state` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/gsm-voice/ - -#### Inherited from - -`ProtocolCommands.gsmVoice` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:445 - -*** - -### ~~hideKeyboard()~~ - -```ts -hideKeyboard( - strategy?, - key?, - keyCode?, -keyName?): Promise -``` - -Appium Protocol Command - -Hide soft keyboard. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `strategy`? | `string` | -| `key`? | `string` | -| `keyCode`? | `string` | -| `keyName`? | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/keys/hide-keyboard/ - -#### Inherited from - -`ProtocolCommands.hideKeyboard` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:194 - -*** - -### ~~inputPerformActions()~~ - -```ts -inputPerformActions(params): Promise -``` - -WebDriver Bidi command to send command method "input.performActions" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `InputPerformActionsParameters` | WebDriver Bidi command to send command method "input.performActions" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-input-performActions - -#### Inherited from - -`BidiHandler.inputPerformActions` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:242 - -*** - -### ~~inputReleaseActions()~~ - -```ts -inputReleaseActions(params): Promise -``` - -WebDriver Bidi command to send command method "input.releaseActions" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `InputReleaseActionsParameters` | WebDriver Bidi command to send command method "input.releaseActions" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-input-releaseActions - -#### Inherited from - -`BidiHandler.inputReleaseActions` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:249 - -*** - -### ~~installAddOn()~~ - -```ts -installAddOn(addon, temporary): Promise -``` - -Gecko Protocol Command - -Installs a new addon with the current session. This function will return an ID that may later be used to uninstall the addon using `uninstallAddon`. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `addon` | `string` | -| `temporary` | `boolean` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/blob/586affe0cf675b1d5c8abc756defa4a46d95391b/javascript/node/selenium-webdriver/firefox.js#L647-L668 - -#### Example - -```js -// Create a buffer of the add on .zip file -const extension = await fs.promises.readFile('/path/to/extension.zip') -// Load extension in Firefox -const id = await browser.installAddOn(extension.toString('base64'), false); -``` - -#### Inherited from - -`ProtocolCommands.installAddOn` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/gecko.d.ts:50 - -*** - -### ~~installApp()~~ - -```ts -installApp(appPath): Promise -``` - -Appium Protocol Command - -Install the given app onto the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `appPath` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/install-app/ - -#### Inherited from - -`ProtocolCommands.installApp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:146 - -*** - -### ~~interceptRequest()~~ - -```ts -interceptRequest(rule): Promise -``` - -Saucelabs Protocol Command - -Allows modifying any request made by the browser. You can blacklist, modify, or redirect these as required for your tests. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `rule` | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-InterceptNetworkRequests - -#### Examples - -```js -// redirect a request -browser.interceptRequest({ - url: 'https://saucelabs.com', - redirect: 'https://google.com' -}) -```* - -```js -// Blacklist requests to 3rd party vendors -browser.interceptRequest({ - url: 'https://api.segment.io/v1/p', - error: 'Failed' -}) -```* - -```js -// Modify requests to REST API (Mock REST API response) -browser.interceptRequest({ - url: 'http://sampleapp.appspot.com/api/todos', - response: { - headers: { - 'x-custom-headers': 'foobar' - }, - body: [{ - title: 'My custom todo', - order: 1, - completed: false, - url: 'http://todo-backend-express.herokuapp.com/15727' - }] - } -}) -``` - -#### Inherited from - -`ProtocolCommands.interceptRequest` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:130 - -*** - -### ~~isAlertOpen()~~ - -```ts -isAlertOpen(): Promise -``` - -Chromium Protocol Command - -Whether a simple dialog is currently open. - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/alert_commands.cc#L42-L49 - -#### Example - -```js -console.log(browser.isAlertOpen()); // outputs: false -browser.execute('window.alert()'); -console.log(browser.isAlertOpen()); // outputs: true -``` - -#### Inherited from - -`ProtocolCommands.isAlertOpen` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:16 - -*** - -### ~~isAppInstalled()~~ - -```ts -isAppInstalled(appId): Promise -``` - -Appium Protocol Command - -Check whether the specified app is installed on the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `appId` | `string` | - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/is-app-installed/ - -#### Inherited from - -`ProtocolCommands.isAppInstalled` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:178 - -*** - -### ~~isAutoReporting()~~ - -```ts -isAutoReporting(): Promise -``` - -Chromium Protocol Command - -Whether it should automatically raises errors on browser logs. - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://codereview.chromium.org/101203012 - -#### Inherited from - -`ProtocolCommands.isAutoReporting` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:24 - -*** - -### ~~isElementDisplayed()~~ - -```ts -isElementDisplayed(elementId): Promise -``` - -Webdriver Protocol Command - -Is Element Displayed determines the visibility of an element which is guided by what is perceptually visible to the human eye. In this context, an element's displayedness does not relate to the `visibility` or `display` style properties. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://w3c.github.io/webdriver/#element-displayedness - -#### Inherited from - -`ProtocolCommands.isElementDisplayed` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:274 - -*** - -### ~~isElementEnabled()~~ - -```ts -isElementEnabled(elementId): Promise -``` - -Webdriver Protocol Command - -Is Element Enabled determines if the referenced element is enabled or not. This operation only makes sense on form controls. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-is-element-enabled - -#### Inherited from - -`ProtocolCommands.isElementEnabled` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:330 - -*** - -### ~~isElementSelected()~~ - -```ts -isElementSelected(elementId): Promise -``` - -Webdriver Protocol Command - -Is Element Selected determines if the referenced element is selected or not. This operation only makes sense on input elements of the Checkbox- and Radio Button states, or option elements. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-is-element-selected - -#### Inherited from - -`ProtocolCommands.isElementSelected` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:266 - -*** - -### ~~isIMEActivated()~~ - -```ts -isIMEActivated(): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactivated - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.isIMEActivated` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:507 - -*** - -### ~~isKeyboardShown()~~ - -```ts -isKeyboardShown(): Promise -``` - -Appium Protocol Command - -Whether or not the soft keyboard is shown. - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/keys/is-keyboard-shown/ - -#### Inherited from - -`ProtocolCommands.isKeyboardShown` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:202 - -*** - -### ~~isLoading()~~ - -```ts -isLoading(): Promise -``` - -Chromium Protocol Command - -Determines load status for active window handle. - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L783-L802 - -#### Example - -```js -console.log(browser.isLoading()); // outputs: false -browser.newWindow('https://webdriver.io'); -console.log(browser.isLoading()); // outputs: true -``` - -#### Inherited from - -`ProtocolCommands.isLoading` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:61 - -*** - -### ~~isLocked()~~ - -```ts -isLocked(): Promise -``` - -Appium Protocol Command - -Check whether the device is locked or not. - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/interactions/is-locked/ - -#### Inherited from - -`ProtocolCommands.isLocked` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:58 - -*** - -### ~~jankinessCheck()~~ - -```ts -jankinessCheck(): Promise -``` - -Saucelabs Protocol Command - -Perform a scroll test that evaluates the jankiness of the application. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands - -#### Example - -```js -// test performance for a page -browser.url('https://webdriver.io') -browser.jankinessCheck() -``` - -#### Inherited from - -`ProtocolCommands.jankinessCheck` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:161 - -*** - -### ~~launchApp()~~ - -```ts -launchApp(): Promise -``` - -Appium Protocol Command - -Launch an app on device. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/launch-app/ - -#### Deprecated - -For iOS, utilize `driver.execute('mobile: launchApp', { ... })`, and for Android, make use of `driver.execute('mobile: activateApp', { ... })`. - -#### Inherited from - -`ProtocolCommands.launchApp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:331 - -*** - -### ~~launchChromeApp()~~ - -```ts -launchChromeApp(id): Promise -``` - -Chromium Protocol Command - -Launches a Chrome app by specified id. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `id` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L521-L539 - -#### Example - -```js -import fs from 'fs' -const browser = remote({ - capabilities: { - browserName: 'chrome', - 'goog:chromeOptions': { - // Install upon starting browser in order to launch it - extensions: [ - // Entry should be a base64-encoded packed Chrome app (.crx) - fs.readFileSync('/absolute/path/app.crx').toString('base64') - ] - } - } -}); -browser.launchChromeApp('aohghmighlieiainnegkcijnfilokake')); // Google Docs (https://chrome.google.com/webstore/detail/docs/aohghmighlieiainnegkcijnfilokake) -``` - -#### Inherited from - -`ProtocolCommands.launchChromeApp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:204 - -*** - -### ~~listenerCount()~~ - -```ts -listenerCount(eventName, listener?): number -``` - -Returns the number of listeners listening to the event named `eventName`. - -If `listener` is provided, it will return how many times the listener -is found in the list of the listeners of the event. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `eventName` | `string` \| `symbol` | Returns the number of listeners listening to the event named `eventName`. If `listener` is provided, it will return how many times the listener is found in the list of the listeners of the event. | -| `listener`? | `Function` | Returns the number of listeners listening to the event named `eventName`. If `listener` is provided, it will return how many times the listener is found in the list of the listeners of the event. | - -#### Returns - -`number` - -#### Since - -v3.2.0 - -#### Inherited from - -`Omit.listenerCount` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:741 - -*** - -### ~~listeners()~~ - -```ts -listeners(eventName): Function[] -``` - -Returns a copy of the array of listeners for the event named `eventName`. - -```js -server.on('connection', (stream) => { - console.log('someone connected!'); -}); -console.log(util.inspect(server.listeners('connection'))); -// Prints: [ [Function] ] -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | - -#### Returns - -`Function`[] - -#### Since - -v0.1.26 - -#### Inherited from - -`Omit.listeners` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:660 - -*** - -### ~~lock()~~ - -```ts -lock(seconds?): Promise -``` - -Appium Protocol Command - -Lock the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `seconds`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/interactions/lock/ - -#### Inherited from - -`ProtocolCommands.lock` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:42 - -*** - -### ~~logEvent()~~ - -```ts -logEvent(vendor, event): Promise -``` - -Appium Protocol Command - -Store a custom event. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `vendor` | `string` | -| `event` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/appium/appium/blob/master/docs/en/commands/session/events/log-event.md - -#### Inherited from - -`ProtocolCommands.logEvent` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:555 - -*** - -### ~~longPressKeyCode()~~ - -```ts -longPressKeyCode( - keycode, - metastate?, -flags?): Promise -``` - -Appium Protocol Command - -Press and hold a particular key code on the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `keycode` | `number` | -| `metastate`? | `number` | -| `flags`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/keys/long-press-keycode/ - -#### Inherited from - -`ProtocolCommands.longPressKeyCode` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:106 - -*** - -### ~~manageSeleniumHubLifecycle()~~ - -```ts -manageSeleniumHubLifecycle(action): Promise -``` - -Selenium Protocol Command - -Manage lifecycle of hub node. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `action` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/nicegraham/selenium-grid2-api#lifecycle-manager - -#### Inherited from - -`ProtocolCommands.manageSeleniumHubLifecycle` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:66 - -*** - -### ~~maximizeWindow()~~ - -```ts -maximizeWindow(): Promise -``` - -Webdriver Protocol Command - -The Maximize Window command invokes the window manager-specific "maximize" operation, if any, on the window containing the current top-level browsing context. This typically increases the window to the maximum available size without going full-screen. - -#### Returns - -`Promise`\<`RectReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-maximize-window - -#### Inherited from - -`ProtocolCommands.maximizeWindow` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:178 - -*** - -### ~~minimizeWindow()~~ - -```ts -minimizeWindow(): Promise -``` - -Webdriver Protocol Command - -The Minimize Window command invokes the window manager-specific "minimize" operation, if any, on the window containing the current top-level browsing context. This typically hides the window in the system tray. - -#### Returns - -`Promise`\<`RectReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-minimize-window - -#### Inherited from - -`ProtocolCommands.minimizeWindow` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:186 - -*** - -### ~~mockRequest()~~ - -```ts -mockRequest(url, filterOptions?): Promise -``` - -Saucelabs Protocol Command - -Mocks a network resource. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `url` | `string` | -| `filterOptions`? | `object` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands - -#### Inherited from - -`ProtocolCommands.mockRequest` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:169 - -*** - -### ~~moveToElement()~~ - -```ts -moveToElement( - element?, - xoffset?, -yoffset?): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `element`? | `null` \| `string` | -| `xoffset`? | `number` | -| `yoffset`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidmoveto - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a "move to" gesture! - -#### Inherited from - -`ProtocolCommands.moveToElement` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:552 - -*** - -### ~~multiTouchPerform()~~ - -```ts -multiTouchPerform(actions): Promise -``` - -Appium Protocol Command - -This functionality is only available from within a native context. Perform a multi touch action sequence. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `actions` | `object`[] | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/interactions/touch/multi-touch-perform/ - -#### Inherited from - -`ProtocolCommands.multiTouchPerform` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:531 - -*** - -### ~~navigateTo()~~ - -```ts -navigateTo(url): Promise -``` - -Webdriver Protocol Command - -The navigateTo (go) command is used to cause the user agent to navigate the current top-level browsing context a new location. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `url` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-navigate-to - -#### Inherited from - -`ProtocolCommands.navigateTo` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:58 - -*** - -### ~~networkAddIntercept()~~ - -```ts -networkAddIntercept(params): Promise -``` - -WebDriver Bidi command to send command method "network.addIntercept" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `NetworkAddInterceptParameters` | WebDriver Bidi command to send command method "network.addIntercept" with parameters. | - -#### Returns - -`Promise`\<`NetworkAddInterceptResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-network-addIntercept - -#### Inherited from - -`BidiHandler.networkAddIntercept` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:151 - -*** - -### ~~networkContinueRequest()~~ - -```ts -networkContinueRequest(params): Promise -``` - -WebDriver Bidi command to send command method "network.continueRequest" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `NetworkContinueRequestParameters` | WebDriver Bidi command to send command method "network.continueRequest" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-network-continueRequest - -#### Inherited from - -`BidiHandler.networkContinueRequest` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:158 - -*** - -### ~~networkContinueResponse()~~ - -```ts -networkContinueResponse(params): Promise -``` - -WebDriver Bidi command to send command method "network.continueResponse" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `NetworkContinueResponseParameters` | WebDriver Bidi command to send command method "network.continueResponse" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-network-continueResponse - -#### Inherited from - -`BidiHandler.networkContinueResponse` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:165 - -*** - -### ~~networkContinueWithAuth()~~ - -```ts -networkContinueWithAuth(params): Promise -``` - -WebDriver Bidi command to send command method "network.continueWithAuth" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `NetworkContinueWithAuthParameters` | WebDriver Bidi command to send command method "network.continueWithAuth" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-network-continueWithAuth - -#### Inherited from - -`BidiHandler.networkContinueWithAuth` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:172 - -*** - -### ~~networkFailRequest()~~ - -```ts -networkFailRequest(params): Promise -``` - -WebDriver Bidi command to send command method "network.failRequest" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `NetworkFailRequestParameters` | WebDriver Bidi command to send command method "network.failRequest" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-network-failRequest - -#### Inherited from - -`BidiHandler.networkFailRequest` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:179 - -*** - -### ~~networkProvideResponse()~~ - -```ts -networkProvideResponse(params): Promise -``` - -WebDriver Bidi command to send command method "network.provideResponse" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `NetworkProvideResponseParameters` | WebDriver Bidi command to send command method "network.provideResponse" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-network-provideResponse - -#### Inherited from - -`BidiHandler.networkProvideResponse` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:186 - -*** - -### ~~networkRemoveIntercept()~~ - -```ts -networkRemoveIntercept(params): Promise -``` - -WebDriver Bidi command to send command method "network.removeIntercept" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `NetworkRemoveInterceptParameters` | WebDriver Bidi command to send command method "network.removeIntercept" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-network-removeIntercept - -#### Inherited from - -`BidiHandler.networkRemoveIntercept` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:193 - -*** - -### ~~newSession()~~ - -```ts -newSession(capabilities): Promise -``` - -Webdriver Protocol Command - -The New Session command creates a new WebDriver session with the endpoint node. If the creation fails, a session not created error is returned. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `capabilities` | `object` | - -#### Returns - -`Promise`\<`SessionReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-new-sessions - -#### Inherited from - -`ProtocolCommands.newSession` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:10 - -*** - -### ~~off()~~ - -```ts -off(eventName, listener): this -``` - -Alias for `emitter.removeListener()`. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| `listener` | (...`args`) => `void` | - -#### Returns - -`this` - -#### Since - -v10.0.0 - -#### Inherited from - -`Omit.off` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:620 - -*** - -### ~~on()~~ - -```ts -on(event, listener): this -``` - -#### Type Parameters - -| Type Parameter | -| ------ | -| `K` *extends* \| `"browsingContext.contextCreated"` \| `"browsingContext.contextDestroyed"` \| `"browsingContext.domContentLoaded"` \| `"browsingContext.downloadWillBegin"` \| `"browsingContext.fragmentNavigated"` \| `"browsingContext.load"` \| `"browsingContext.navigationAborted"` \| `"browsingContext.navigationFailed"` \| `"browsingContext.navigationStarted"` \| `"browsingContext.userPromptClosed"` \| `"browsingContext.userPromptOpened"` \| `"log.entryAdded"` \| `"network.authRequired"` \| `"network.beforeRequestSent"` \| `"network.fetchError"` \| `"network.responseCompleted"` \| `"network.responseStarted"` \| `"script.message"` \| `"script.realmCreated"` \| `"script.realmDestroyed"` \| keyof WebDriverClassicEvents | - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `event` | `K` | -| `listener` | (`this`, `param`) => `void` | - -#### Returns - -`this` - -#### Inherited from - -`BidiEventHandler.on` - -#### Defined in - -testplane/node\_modules/webdriver/build/types.d.ts:66 - -*** - -### ~~once()~~ - -```ts -once(event, listener): this -``` - -#### Type Parameters - -| Type Parameter | -| ------ | -| `K` *extends* \| `"browsingContext.contextCreated"` \| `"browsingContext.contextDestroyed"` \| `"browsingContext.domContentLoaded"` \| `"browsingContext.downloadWillBegin"` \| `"browsingContext.fragmentNavigated"` \| `"browsingContext.load"` \| `"browsingContext.navigationAborted"` \| `"browsingContext.navigationFailed"` \| `"browsingContext.navigationStarted"` \| `"browsingContext.userPromptClosed"` \| `"browsingContext.userPromptOpened"` \| `"log.entryAdded"` \| `"network.authRequired"` \| `"network.beforeRequestSent"` \| `"network.fetchError"` \| `"network.responseCompleted"` \| `"network.responseStarted"` \| `"script.message"` \| `"script.realmCreated"` \| `"script.realmDestroyed"` \| keyof WebDriverClassicEvents | - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `event` | `K` | -| `listener` | (`this`, `param`) => `void` | - -#### Returns - -`this` - -#### Inherited from - -`BidiEventHandler.once` - -#### Defined in - -testplane/node\_modules/webdriver/build/types.d.ts:67 - -*** - -### ~~openNotifications()~~ - -```ts -openNotifications(): Promise -``` - -Appium Protocol Command - -Open Android notifications (Emulator only). - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/system/open-notifications/ - -#### Inherited from - -`ProtocolCommands.openNotifications` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:274 - -*** - -### ~~overwriteCommand()~~ - -```ts -overwriteCommand( - name, - func, - attachToElement?, - proto?, - instances?): void -``` - -overwrite `browser` or `element` command - -#### Type Parameters - -| Type Parameter | Default type | -| ------ | ------ | -| `ElementKey` *extends* \| `"$"` \| `"custom$"` \| `"shadow$"` \| `"react$"` \| `"$$"` \| `"custom$$"` \| `"shadow$$"` \| `"react$$"` \| `"saveScreenshot"` \| `"touchAction"` \| `"waitUntil"` \| `"addValue"` \| `"clearValue"` \| `"click"` \| `"doubleClick"` \| `"dragAndDrop"` \| `"getAttribute"` \| `"getCSSProperty"` \| `"getComputedLabel"` \| `"getComputedRole"` \| `"getHTML"` \| `"getLocation"` \| `"getProperty"` \| `"getSize"` \| `"getTagName"` \| `"getText"` \| `"getValue"` \| `"isClickable"` \| `"isDisplayed"` \| `"isDisplayedInViewport"` \| `"isEnabled"` \| `"isEqual"` \| `"isExisting"` \| `"isFocused"` \| `"isSelected"` \| `"moveTo"` \| `"nextElement"` \| `"parentElement"` \| `"previousElement"` \| `"scrollIntoView"` \| `"selectByAttribute"` \| `"selectByIndex"` \| `"selectByVisibleText"` \| `"setValue"` \| `"waitForClickable"` \| `"waitForDisplayed"` \| `"waitForEnabled"` \| `"waitForExist"` \| `"isStable"` \| `"waitForStable"` | - | -| `BrowserKey` *extends* \| `"keys"` \| `"$"` \| `"custom$"` \| `"react$"` \| `"$$"` \| `"custom$$"` \| `"react$$"` \| `"action"` \| `"actions"` \| `"call"` \| `"debug"` \| `"deleteCookies"` \| `"downloadFile"` \| `"emulate"` \| `"execute"` \| `"executeAsync"` \| `"getCookies"` \| `"getPuppeteer"` \| `"getWindowSize"` \| `"mock"` \| `"SESSION_MOCKS"` \| `"CDP_SESSIONS"` \| `"mockClearAll"` \| `"mockRestoreAll"` \| `"newWindow"` \| `"pause"` \| `"reloadSession"` \| `"savePDF"` \| `"saveRecordingScreen"` \| `"saveScreenshot"` \| `"scroll"` \| `"setCookies"` \| `"setTimeout"` \| `"setWindowSize"` \| `"switchWindow"` \| `"throttle"` \| `"throttleCPU"` \| `"throttleNetwork"` \| `"touchAction"` \| `"uploadFile"` \| `"url"` \| `"waitUntil"` | - | -| `IsElement` *extends* `boolean` | `false` | - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `IsElement` *extends* `true` ? `ElementKey` : `BrowserKey` | -| `func` | `OverwriteCommandFn`\<`ElementKey`, `BrowserKey`, `IsElement`\> \| `OverwriteCommandFnScoped`\<`ElementKey`, `BrowserKey`, `IsElement`\> | -| `attachToElement`? | `IsElement` | -| `proto`? | `Record`\<`string`, `any`\> | -| `instances`? | `Record`\<`string`, `Browser` \| `MultiRemoteBrowser`\> | - -#### Returns - -`void` - -#### Inherited from - -`Omit.overwriteCommand` - -#### Defined in - -testplane/node\_modules/webdriverio/build/types.d.ts:139 - -*** - -### ~~performActions()~~ - -```ts -performActions(actions): Promise -``` - -Webdriver Protocol Command - -The Perform Actions command is used to execute complex user actions. See [spec](https://github.com/jlipps/simple-wd-spec#perform-actions) for more details. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `actions` | `object`[] | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-perform-actions - -#### Inherited from - -`ProtocolCommands.performActions` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:426 - -*** - -### ~~positionClick()~~ - -```ts -positionClick(button?): Promise -``` - -Jsonwp Protocol Command - -Clicks at the current mouse coordinates (set by moveto). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `button`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidclick - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead of "positionClick"! - -#### Inherited from - -`ProtocolCommands.positionClick` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:579 - -*** - -### ~~positionDoubleClick()~~ - -```ts -positionDoubleClick(): Promise -``` - -Jsonwp Protocol Command - -Double-clicks at the current mouse coordinates (set by moveto). - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessioniddoubleclick - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a click gesture! - -#### Inherited from - -`ProtocolCommands.positionDoubleClick` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:588 - -*** - -### ~~powerAC()~~ - -```ts -powerAC(state): Promise -``` - -Appium Protocol Command - -Set the state of the battery charger to connected or not (Emulator only). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `state` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/emulator/power_ac/ - -#### Inherited from - -`ProtocolCommands.powerAC` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:437 - -*** - -### ~~powerCapacity()~~ - -```ts -powerCapacity(percent): Promise -``` - -Appium Protocol Command - -Set the battery percentage (Emulator only). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `percent` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/emulator/power_capacity/ - -#### Inherited from - -`ProtocolCommands.powerCapacity` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:429 - -*** - -### ~~prependListener()~~ - -```ts -prependListener(eventName, listener): this -``` - -Adds the `listener` function to the _beginning_ of the listeners array for the -event named `eventName`. No checks are made to see if the `listener` has -already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple -times. - -```js -server.prependListener('connection', (stream) => { - console.log('someone connected!'); -}); -``` - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `eventName` | `string` \| `symbol` | Adds the `listener` function to the _beginning_ of the listeners array for the event named `eventName`. No checks are made to see if the `listener` has already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple times. `server.prependListener('connection', (stream) => { console.log('someone connected!'); });` Returns a reference to the `EventEmitter`, so that calls can be chained. | -| `listener` | (...`args`) => `void` | Adds the `listener` function to the _beginning_ of the listeners array for the event named `eventName`. No checks are made to see if the `listener` has already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple times. `server.prependListener('connection', (stream) => { console.log('someone connected!'); });` Returns a reference to the `EventEmitter`, so that calls can be chained. | - -#### Returns - -`this` - -#### Since - -v6.0.0 - -#### Inherited from - -`Omit.prependListener` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:759 - -*** - -### ~~prependOnceListener()~~ - -```ts -prependOnceListener(eventName, listener): this -``` - -Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this -listener is removed, and then invoked. - -```js -server.prependOnceListener('connection', (stream) => { - console.log('Ah, we have our first user!'); -}); -``` - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `eventName` | `string` \| `symbol` | Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this listener is removed, and then invoked. `server.prependOnceListener('connection', (stream) => { console.log('Ah, we have our first user!'); });` Returns a reference to the `EventEmitter`, so that calls can be chained. | -| `listener` | (...`args`) => `void` | Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this listener is removed, and then invoked. `server.prependOnceListener('connection', (stream) => { console.log('Ah, we have our first user!'); });` Returns a reference to the `EventEmitter`, so that calls can be chained. | - -#### Returns - -`this` - -#### Since - -v6.0.0 - -#### Inherited from - -`Omit.prependOnceListener` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:775 - -*** - -### ~~pressKeyCode()~~ - -```ts -pressKeyCode( - keycode, - metastate?, -flags?): Promise -``` - -Appium Protocol Command - -Press a particular key on the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `keycode` | `number` | -| `metastate`? | `number` | -| `flags`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/keys/press-keycode/ - -#### Inherited from - -`ProtocolCommands.pressKeyCode` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:98 - -*** - -### ~~printPage()~~ - -```ts -printPage( - orientation?, - scale?, - background?, - width?, - height?, - top?, - bottom?, - left?, - right?, - shrinkToFit?, -pageRanges?): Promise -``` - -Webdriver Protocol Command - -The Print Page command renders the document to a paginated PDF document. __Note:__ Chrome currently only supports this in [headless mode](https://webdriver.io/docs/capabilities/#run-browser-headless), see [`crbug753118`](https://bugs.chromium.org/p/chromium/issues/detail?id=753118)). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `orientation`? | `string` | -| `scale`? | `number` | -| `background`? | `boolean` | -| `width`? | `number` | -| `height`? | `number` | -| `top`? | `number` | -| `bottom`? | `number` | -| `left`? | `number` | -| `right`? | `number` | -| `shrinkToFit`? | `boolean` | -| `pageRanges`? | `object`[] | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#print-page - -#### Inherited from - -`ProtocolCommands.printPage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:138 - -*** - -### ~~pullFile()~~ - -```ts -pullFile(path): Promise -``` - -Appium Protocol Command - -Retrieve a file from the device's file system. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `path` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/files/pull-file/ - -#### Inherited from - -`ProtocolCommands.pullFile` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:218 - -*** - -### ~~pullFolder()~~ - -```ts -pullFolder(path): Promise -``` - -Appium Protocol Command - -Retrieve a folder from the device's file system. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `path` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/files/pull-folder/ - -#### Inherited from - -`ProtocolCommands.pullFolder` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:226 - -*** - -### ~~pushFile()~~ - -```ts -pushFile(path, data): Promise -``` - -Appium Protocol Command - -Place a file onto the device in a particular place. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `path` | `string` | -| `data` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/files/push-file/ - -#### Inherited from - -`ProtocolCommands.pushFile` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:210 - -*** - -### ~~queryAppState()~~ - -```ts -queryAppState(appId): Promise -``` - -Appium Protocol Command - -Get the given app status on the device - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `appId` | `string` | - -#### Returns - -`Promise`\<`number`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/app-state/ - -#### Inherited from - -`ProtocolCommands.queryAppState` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:186 - -*** - -### ~~queryGrid()~~ - -```ts -queryGrid(query): Promise -``` - -Selenium Protocol Command - -Send GraphQL queries to the Selenium (hub or node) server to fetch data. (Only supported with Selenium v4 Server) - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `query` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://www.selenium.dev/documentation/grid/advanced_features/graphql_support/ - -#### Example - -```js -const result = await browser.queryGrid('{ nodesInfo { nodes { status, uri } } }'); -console.log(JSON.stringify(result, null, 4)) -// -// outputs: -// { -// "data": { -// "nodesInfo": { -// "nodes": [{ -// "status": "UP", -// "uri": "http://192.168.0.39:4444" -// }] -// } -// } -// } -// -``` - -#### Inherited from - -`ProtocolCommands.queryGrid` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:92 - -*** - -### ~~rawListeners()~~ - -```ts -rawListeners(eventName): Function[] -``` - -Returns a copy of the array of listeners for the event named `eventName`, -including any wrappers (such as those created by `.once()`). - -```js -const emitter = new EventEmitter(); -emitter.once('log', () => console.log('log once')); - -// Returns a new Array with a function `onceWrapper` which has a property -// `listener` which contains the original listener bound above -const listeners = emitter.rawListeners('log'); -const logFnWrapper = listeners[0]; - -// Logs "log once" to the console and does not unbind the `once` event -logFnWrapper.listener(); - -// Logs "log once" to the console and removes the listener -logFnWrapper(); - -emitter.on('log', () => console.log('log persistently')); -// Will return a new Array with a single function bound by `.on()` above -const newListeners = emitter.rawListeners('log'); - -// Logs "log persistently" twice -newListeners[0](); -emitter.emit('log'); -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | - -#### Returns - -`Function`[] - -#### Since - -v9.4.0 - -#### Inherited from - -`Omit.rawListeners` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:690 - -*** - -### ~~receiveAsyncResponse()~~ - -```ts -receiveAsyncResponse(response): Promise -``` - -Appium Protocol Command - -Callback url for asynchronous execution of JavaScript. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `response` | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints - -#### Inherited from - -`ProtocolCommands.receiveAsyncResponse` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:405 - -*** - -### ~~refresh()~~ - -```ts -refresh(): Promise -``` - -Webdriver Protocol Command - -The Refresh command causes the browser to reload the page in current top-level browsing context. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-refresh - -#### Inherited from - -`ProtocolCommands.refresh` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:82 - -*** - -### ~~releaseActions()~~ - -```ts -releaseActions(): Promise -``` - -Webdriver Protocol Command - -The Release Actions command is used to release all the keys and pointer buttons that are currently depressed. This causes events to be fired as if the state was released by an explicit series of actions. It also clears all the internal state of the virtual devices. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-release-actions - -#### Inherited from - -`ProtocolCommands.releaseActions` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:434 - -*** - -### ~~removeAllCredentials()~~ - -```ts -removeAllCredentials(authenticatorId): Promise -``` - -Webdriver Protocol Command - -Removes all Public Key Credential Sources stored on a Virtual Authenticator. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `authenticatorId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-all-credentials - -#### Inherited from - -`ProtocolCommands.removeAllCredentials` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:609 - -*** - -### ~~removeAllListeners()~~ - -```ts -removeAllListeners(event?): this -``` - -Removes all listeners, or those of the specified `eventName`. - -It is bad practice to remove listeners added elsewhere in the code, -particularly when the `EventEmitter` instance was created by some other -component or module (e.g. sockets or file streams). - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `event`? | `string` \| `symbol` | - -#### Returns - -`this` - -#### Since - -v0.1.26 - -#### Inherited from - -`Omit.removeAllListeners` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:631 - -*** - -### ~~removeApp()~~ - -```ts -removeApp(appId): Promise -``` - -Appium Protocol Command - -Remove an app from the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `appId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/remove-app/ - -#### Inherited from - -`ProtocolCommands.removeApp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:162 - -*** - -### ~~removeCredential()~~ - -```ts -removeCredential(authenticatorId, credentialId): Promise -``` - -Webdriver Protocol Command - -Removes a Public Key Credential Source stored on a Virtual Authenticator. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `authenticatorId` | `string` | -| `credentialId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-credential - -#### Inherited from - -`ProtocolCommands.removeCredential` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:617 - -*** - -### ~~removeListener()~~ - -```ts -removeListener(eventName, listener): this -``` - -Removes the specified `listener` from the listener array for the event named`eventName`. - -```js -const callback = (stream) => { - console.log('someone connected!'); -}; -server.on('connection', callback); -// ... -server.removeListener('connection', callback); -``` - -`removeListener()` will remove, at most, one instance of a listener from the -listener array. If any single listener has been added multiple times to the -listener array for the specified `eventName`, then `removeListener()` must be -called multiple times to remove each instance. - -Once an event is emitted, all listeners attached to it at the -time of emitting are called in order. This implies that any`removeListener()` or `removeAllListeners()` calls _after_ emitting and _before_ the last listener finishes execution -will not remove them from`emit()` in progress. Subsequent events behave as expected. - -```js -const myEmitter = new MyEmitter(); - -const callbackA = () => { - console.log('A'); - myEmitter.removeListener('event', callbackB); -}; - -const callbackB = () => { - console.log('B'); -}; - -myEmitter.on('event', callbackA); - -myEmitter.on('event', callbackB); - -// callbackA removes listener callbackB but it will still be called. -// Internal listener array at time of emit [callbackA, callbackB] -myEmitter.emit('event'); -// Prints: -// A -// B - -// callbackB is now removed. -// Internal listener array [callbackA] -myEmitter.emit('event'); -// Prints: -// A -``` - -Because listeners are managed using an internal array, calling this will -change the position indices of any listener registered _after_ the listener -being removed. This will not impact the order in which listeners are called, -but it means that any copies of the listener array as returned by -the `emitter.listeners()` method will need to be recreated. - -When a single function has been added as a handler multiple times for a single -event (as in the example below), `removeListener()` will remove the most -recently added instance. In the example the `once('ping')`listener is removed: - -```js -const ee = new EventEmitter(); - -function pong() { - console.log('pong'); -} - -ee.on('ping', pong); -ee.once('ping', pong); -ee.removeListener('ping', pong); - -ee.emit('ping'); -ee.emit('ping'); -``` - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| `listener` | (...`args`) => `void` | - -#### Returns - -`this` - -#### Since - -v0.1.26 - -#### Inherited from - -`Omit.removeListener` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:615 - -*** - -### ~~removeVirtualAuthenticator()~~ - -```ts -removeVirtualAuthenticator(authenticatorId): Promise -``` - -Webdriver Protocol Command - -Removes a previously created Virtual Authenticator. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `authenticatorId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-virtual-authenticator - -#### Inherited from - -`ProtocolCommands.removeVirtualAuthenticator` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:585 - -*** - -### ~~replaceValue()~~ - -```ts -replaceValue(elementId, value): Promise -``` - -Appium Protocol Command - -Replace the value to element directly. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints - -#### Inherited from - -`ProtocolCommands.replaceValue` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:381 - -*** - -### ~~respondMock()~~ - -```ts -respondMock(mockId, payload): Promise -``` - -Saucelabs Protocol Command - -Respond if mock matches a specific resource. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `mockId` | `string` | -| `payload` | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands - -#### Inherited from - -`ProtocolCommands.respondMock` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:193 - -*** - -### ~~resume()~~ - -```ts -resume(): Promise -``` - -Chromium Protocol Command - -Resume the current page. Extension for [Page Lifecycle API](https://developers.google.com/web/updates/2018/07/page-lifecycle-api). - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L635-L645 - -#### Inherited from - -`ProtocolCommands.resume` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:244 - -*** - -### ~~rotateDevice()~~ - -```ts -rotateDevice( - x, - y, -z): Promise -``` - -Appium Protocol Command - -Rotate the device in three dimensions. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `x` | `number` | -| `y` | `number` | -| `z` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-rotation - -#### Inherited from - -`ProtocolCommands.rotateDevice` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:122 - -*** - -### ~~sauceThrottleNetwork()~~ - -```ts -sauceThrottleNetwork(condition): Promise -``` - -Saucelabs Protocol Command - -With network conditioning you can test your site on a variety of network connections, including Edge, 3G, and even offline. You can throttle the data throughput, including the maximum download and upload throughput, and use latency manipulation to enforce a minimum delay in connection round-trip time (RTT). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `condition` | `string` \| `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-ThrottleNetworkCapabilities - -#### Examples - -```js -// predefined network condition -browser.sauceThrottleNetwork('offline') -```* - -```js -// custom network condition -browser.sauceThrottleNetwork({ - download: 1000, - upload: 500, - latency: 40' -}) -``` - -#### Inherited from - -`ProtocolCommands.sauceThrottleNetwork` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:70 - -*** - -### ~~scriptAddPreloadScript()~~ - -```ts -scriptAddPreloadScript(params): Promise -``` - -WebDriver Bidi command to send command method "script.addPreloadScript" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `ScriptAddPreloadScriptParameters` | WebDriver Bidi command to send command method "script.addPreloadScript" with parameters. | - -#### Returns - -`Promise`\<`ScriptAddPreloadScriptResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript - -#### Inherited from - -`BidiHandler.scriptAddPreloadScript` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:200 - -*** - -### ~~scriptCallFunction()~~ - -```ts -scriptCallFunction(params): Promise -``` - -WebDriver Bidi command to send command method "script.callFunction" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `ScriptCallFunctionParameters` | WebDriver Bidi command to send command method "script.callFunction" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-script-callFunction - -#### Inherited from - -`BidiHandler.scriptCallFunction` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:214 - -*** - -### ~~scriptDisown()~~ - -```ts -scriptDisown(params): Promise -``` - -WebDriver Bidi command to send command method "script.disown" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `ScriptDisownParameters` | WebDriver Bidi command to send command method "script.disown" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-script-disown - -#### Inherited from - -`BidiHandler.scriptDisown` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:207 - -*** - -### ~~scriptEvaluate()~~ - -```ts -scriptEvaluate(params): Promise -``` - -WebDriver Bidi command to send command method "script.evaluate" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `ScriptEvaluateParameters` | WebDriver Bidi command to send command method "script.evaluate" with parameters. | - -#### Returns - -`Promise`\<`ScriptEvaluateResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-script-evaluate - -#### Inherited from - -`BidiHandler.scriptEvaluate` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:221 - -*** - -### ~~scriptGetRealms()~~ - -```ts -scriptGetRealms(params): Promise -``` - -WebDriver Bidi command to send command method "script.getRealms" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `ScriptGetRealmsParameters` | WebDriver Bidi command to send command method "script.getRealms" with parameters. | - -#### Returns - -`Promise`\<`ScriptGetRealmsResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-script-getRealms - -#### Inherited from - -`BidiHandler.scriptGetRealms` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:228 - -*** - -### ~~scriptRemovePreloadScript()~~ - -```ts -scriptRemovePreloadScript(params): Promise -``` - -WebDriver Bidi command to send command method "script.removePreloadScript" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `ScriptRemovePreloadScriptParameters` | WebDriver Bidi command to send command method "script.removePreloadScript" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-script-removePreloadScript - -#### Inherited from - -`BidiHandler.scriptRemovePreloadScript` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:235 - -*** - -### ~~selectCastSink()~~ - -```ts -selectCastSink(sinkName): Promise -``` - -Chromium Protocol Command - -Selects a cast sink (Cast device) as the recipient of media router intents (connect or play). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `sinkName` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#737 - -#### Inherited from - -`ProtocolCommands.selectCastSink` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:260 - -*** - -### ~~send()~~ - -```ts -send(params): Promise -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `params` | `Omit`\<`CommandData`, `"id"`\> | - -#### Returns - -`Promise`\<`CommandResponse`\> - -#### Inherited from - -`BidiHandler.send` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/core.d.ts:13 - -*** - -### ~~sendAlertText()~~ - -```ts -sendAlertText(text): Promise -``` - -Webdriver Protocol Command - -The Send Alert Text command sets the text field of a window.prompt user prompt to the given value. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `text` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-send-alert-text - -#### Inherited from - -`ProtocolCommands.sendAlertText` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:466 - -*** - -### ~~sendAsync()~~ - -```ts -sendAsync(params): number -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `params` | `Omit`\<`CommandData`, `"id"`\> | - -#### Returns - -`number` - -#### Inherited from - -`BidiHandler.sendAsync` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/core.d.ts:14 - -*** - -### ~~sendCommand()~~ - -```ts -sendCommand(cmd, params): Promise -``` - -Chromium Protocol Command - -Send a command to the DevTools debugger.
For a list of available commands and their parameters refer to the [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `cmd` | `string` | -| `params` | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L1290-L1304 - -#### Inherited from - -`ProtocolCommands.sendCommand` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:163 - -*** - -### ~~sendCommandAndGetResult()~~ - -```ts -sendCommandAndGetResult(cmd, params): Promise -``` - -Chromium Protocol Command - -Send a command to the DevTools debugger and wait for the result.
For a list of available commands and their parameters refer to the [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `cmd` | `string` | -| `params` | `object` | - -#### Returns - -`Promise`\<`any`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L1306-L1320 - -#### Inherited from - -`ProtocolCommands.sendCommandAndGetResult` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:171 - -*** - -### ~~sendKeyEvent()~~ - -```ts -sendKeyEvent(keycode, metastate?): Promise -``` - -Appium Protocol Command - -Send a key code to the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `keycode` | `string` | -| `metastate`? | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints - -#### Inherited from - -`ProtocolCommands.sendKeyEvent` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:114 - -*** - -### ~~sendKeys()~~ - -```ts -sendKeys(value): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `value` | `string`[] | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidkeys - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.sendKeys` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:384 - -*** - -### ~~sendSms()~~ - -```ts -sendSms(phoneNumber, message): Promise -``` - -Appium Protocol Command - -Simulate an SMS message (Emulator only). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `phoneNumber` | `string` | -| `message` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/send-sms/ - -#### Inherited from - -`ProtocolCommands.sendSms` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:453 - -*** - -### ~~sessionEnd()~~ - -```ts -sessionEnd(params): Promise -``` - -WebDriver Bidi command to send command method "session.end" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `EmptyParams` | WebDriver Bidi command to send command method "session.end" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-session-end - -#### Inherited from - -`BidiHandler.sessionEnd` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:39 - -*** - -### ~~sessionNew()~~ - -```ts -sessionNew(params): Promise -``` - -WebDriver Bidi command to send command method "session.new" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `SessionNewParameters` | WebDriver Bidi command to send command method "session.new" with parameters. | - -#### Returns - -`Promise`\<`SessionNewResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-session-new - -#### Inherited from - -`BidiHandler.sessionNew` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:32 - -*** - -### ~~sessionStatus()~~ - -```ts -sessionStatus(params): Promise -``` - -WebDriver Bidi command to send command method "session.status" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `EmptyParams` | WebDriver Bidi command to send command method "session.status" with parameters. | - -#### Returns - -`Promise`\<`SessionStatusResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-session-status - -#### Inherited from - -`BidiHandler.sessionStatus` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:25 - -*** - -### ~~sessionSubscribe()~~ - -```ts -sessionSubscribe(params): Promise -``` - -WebDriver Bidi command to send command method "session.subscribe" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `SessionSubscriptionRequest` | WebDriver Bidi command to send command method "session.subscribe" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-session-subscribe - -#### Inherited from - -`BidiHandler.sessionSubscribe` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:46 - -*** - -### ~~sessionUnsubscribe()~~ - -```ts -sessionUnsubscribe(params): Promise -``` - -WebDriver Bidi command to send command method "session.unsubscribe" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `SessionSubscriptionRequest` | WebDriver Bidi command to send command method "session.unsubscribe" with parameters. | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-session-unsubscribe - -#### Inherited from - -`BidiHandler.sessionUnsubscribe` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:53 - -*** - -### ~~setAsyncTimeout()~~ - -```ts -setAsyncTimeout(ms): Promise -``` - -Jsonwp Protocol Command - -Set the amount of time, in milliseconds, that asynchronous scripts executed by `/session/:sessionId/execute_async` are permitted to run before they are aborted and a `Timeout` error is returned to the client. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `ms` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtimeoutsasync_script - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "setTimeouts" command instead! - -#### Inherited from - -`ProtocolCommands.setAsyncTimeout` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:61 - -*** - -### ~~setAutoReporting()~~ - -```ts -setAutoReporting(enabled): Promise -``` - -Chromium Protocol Command - -Toggle whether to return response with unknown error with first browser error (e.g. failed to load resource due to 403/404 response) for all subsequent commands (once enabled). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `enabled` | `boolean` | - -#### Returns - -`Promise`\<`null` \| `object`\> - -#### Ref - -https://codereview.chromium.org/101203012 - -#### Examples - -```js -// Enable auto reporting first thing after session was initiated with empty browser logs -console.log(browser.setAutoReporting(true)); // outputs: null -// Upon requesting an non-existing resource it will abort execution due to thrown unknown error -browser.url('https://webdriver.io/img/404-does-not-exist.png'); -```* - -```js -// During the session do some operations which populate the browser logs -browser.url('https://webdriver.io/img/404-does-not-exist.png'); -browser.url('https://webdriver.io/403/no-access'); -// Enable auto reporting which throws an unknown error for first browser log (404 response) -browser.setAutoReporting(true); -``` - -#### Inherited from - -`ProtocolCommands.setAutoReporting` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:47 - -*** - -### ~~setClipboard()~~ - -```ts -setClipboard( - content, - contentType?, -label?): Promise -``` - -Appium Protocol Command - -Set the content of the system clipboard - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `content` | `string` | -| `contentType`? | `string` | -| `label`? | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/clipboard/set-clipboard/ - -#### Inherited from - -`ProtocolCommands.setClipboard` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:469 - -*** - -### ~~setGeoLocation()~~ - -```ts -setGeoLocation(location): Promise -``` - -Jsonwp Protocol Command - -Set the current geo location. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `location` | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidlocation - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.setGeoLocation` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:642 - -*** - -### ~~setImplicitTimeout()~~ - -```ts -setImplicitTimeout(ms): Promise -``` - -Jsonwp Protocol Command - -Set the amount of time the driver should wait when searching for elements. When searching for a single element, the driver should poll the page until an element is found or the timeout expires, whichever occurs first. When searching for multiple elements, the driver should poll the page until at least one element is found or the timeout expires, at which point it should return an empty list. If this command is never sent, the driver should default to an implicit wait of 0ms. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `ms` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtimeoutsimplicit_wait - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "setTimeouts" command instead! - -#### Inherited from - -`ProtocolCommands.setImplicitTimeout` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:70 - -*** - -### ~~setLocalStorage()~~ - -```ts -setLocalStorage(key, value): Promise -``` - -Jsonwp Protocol Command - -Set the storage item for the given key. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `key` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidlocal_storage - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.setLocalStorage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:660 - -*** - -### ~~setMaxListeners()~~ - -```ts -setMaxListeners(n): this -``` - -By default `EventEmitter`s will print a warning if more than `10` listeners are -added for a particular event. This is a useful default that helps finding -memory leaks. The `emitter.setMaxListeners()` method allows the limit to be -modified for this specific `EventEmitter` instance. The value can be set to`Infinity` (or `0`) to indicate an unlimited number of listeners. - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `n` | `number` | - -#### Returns - -`this` - -#### Since - -v0.3.5 - -#### Inherited from - -`Omit.setMaxListeners` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:641 - -*** - -### ~~setMozContext()~~ - -```ts -setMozContext(context): Promise -``` - -Gecko Protocol Command - -Changes target context for commands between chrome- and content.

Changing the current context has a stateful impact on all subsequent commands. The `CONTENT` context has normal web platform document permissions, as if you would evaluate arbitrary JavaScript. The `CHROME` context gets elevated permissions that lets you manipulate the browser chrome itself, with full access to the XUL toolkit. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `context` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/blob/586affe0cf675b1d5c8abc756defa4a46d95391b/javascript/node/selenium-webdriver/firefox.js#L615-L645 - -#### Example - -```js -console.log(await browser.getMozContext()); // outputs: 'CHROME' -browser.setMozContext('CONTENT'); -console.log(await browser.getMozContext()); // outputs: 'CONTENT' -``` - -#### Inherited from - -`ProtocolCommands.setMozContext` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/gecko.d.ts:35 - -*** - -### ~~setNetworkConditions()~~ - -```ts -setNetworkConditions(networkConditions, networkName?): Promise -``` - -Chromium Protocol Command - -Set network conditions used for emulation by throttling connection. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `networkConditions` | `object` | -| `networkName`? | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L1663-L1722 - -#### Examples - -```js -// Use different download (25kb/s) and upload (50kb/s) throughput values for throttling with a latency of 1000ms -browser.setNetworkConditions({ latency: 1000, download_throughput: 25600, upload_throughput: 51200 }); -```* - -```js -// Force disconnected from network by setting 'offline' to true -browser.setNetworkConditions({ latency: 0, throughput: 0, offline: true }); -```* - -```js -// When preset name (e.g. 'DSL') is specified it does not respect values in object (e.g. 'offline') -browser.setNetworkConditions({ latency: 0, throughput: 0, offline: true }, 'DSL'); -```* - -```js -// Best practice for specifying network throttling preset is to use an empty object -browser.setNetworkConditions({}, 'Good 3G'); -``` - -#### Inherited from - -`ProtocolCommands.setNetworkConditions` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:147 - -*** - -### ~~setNetworkConnection()~~ - -```ts -setNetworkConnection(parameters): Promise -``` - -Chromium Protocol Command - -Change connection type for network connection. This command is only applicable when remote end replies with `networkConnectionEnabled` capability set to `true`. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `parameters` | `object` | - -#### Returns - -`Promise`\<`number`\> - -#### Ref - -https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-modes - -#### Example - -```js -const browser = remote({ - capabilities: { - browserName: 'chrome', - 'goog:chromeOptions': { - // Network emulation requires device mode, which is only enabled when mobile emulation is on - mobileEmulation: { deviceName: 'iPad' }, - }, - } -}); -console.log(browser.setNetworkConnection({ type: 1 })); // outputs: 1 (Airplane Mode) -``` - -#### Inherited from - -`ProtocolCommands.setNetworkConnection` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:111 - -*** - -### ~~setOrientation()~~ - -```ts -setOrientation(orientation): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `orientation` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidorientation - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.setOrientation` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:543 - -*** - -### ~~setPermissions()~~ - -```ts -setPermissions( - descriptor, - state, -oneRealm?): Promise -``` - -Webdriver Protocol Command - -Simulates user modification of a PermissionDescriptor's permission state. __Note:__ this feature has not landed in all browsers yet. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `descriptor` | `object` | -| `state` | `string` | -| `oneRealm`? | `boolean` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/permissions/#set-permission-command - -#### Examples - -```js -// set midi permissions -browser.setPermissions( - { name: 'midi', sysex: true }, - 'granted' // can be also "denied" or "prompt" -); -```* - -```js -// set clipboard permissions -browser.setPermissions({ name: 'clipboard-read' }, 'granted'); -// now you can read the clipboard via, e.g. -const clipboardText = await browser.execute(() => navigator.clipboard.readText()); -``` - -#### Inherited from - -`ProtocolCommands.setPermissions` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:521 - -*** - -### ~~setSessionStorage()~~ - -```ts -setSessionStorage(key, value): Promise -``` - -Jsonwp Protocol Command - -Set the storage item for the given key. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `key` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidsession_storage - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.setSessionStorage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:714 - -*** - -### ~~setTimeZone()~~ - -```ts -setTimeZone(timeZone): Promise -``` - -Webdriver Protocol Command - -Simulates the changing of a time zone for the purposes of testing. __Note:__ this feature has not landed in all browsers yet. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `timeZone` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/sensors/#create-mock-sensor-command - -#### Inherited from - -`ProtocolCommands.setTimeZone` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:569 - -*** - -### ~~setTimeouts()~~ - -```ts -setTimeouts( - implicit?, - pageLoad?, -script?): Promise -``` - -Webdriver Protocol Command - -The Set Timeouts command sets timeout durations associated with the current session. The timeouts that can be controlled are listed in the table of session timeouts below. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `implicit`? | `number` | -| `pageLoad`? | `number` | -| `script`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-set-timeouts - -#### Inherited from - -`ProtocolCommands.setTimeouts` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:42 - -*** - -### ~~setUserVerified()~~ - -```ts -setUserVerified(authenticatorId): Promise -``` - -Webdriver Protocol Command - -The Set User Verified extension command sets the isUserVerified property on the Virtual Authenticator. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `authenticatorId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://www.w3.org/TR/webauthn-2/#sctn-automation-set-user-verified - -#### Inherited from - -`ProtocolCommands.setUserVerified` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:625 - -*** - -### ~~setValueImmediate()~~ - -```ts -setValueImmediate(elementId, text): Promise -``` - -Appium Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `text` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints - -#### Inherited from - -`ProtocolCommands.setValueImmediate` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:373 - -*** - -### ~~setWindowPosition()~~ - -```ts -setWindowPosition(x, y): Promise -``` - -Jsonwp Protocol Command - -Change the position of the current focussed window. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `x` | `number` | -| `y` | `number` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidwindowwindowhandleposition - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.setWindowPosition` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:184 - -*** - -### ~~setWindowRect()~~ - -```ts -setWindowRect( - x, - y, - width, -height): Promise -``` - -Webdriver Protocol Command - -The Set Window Rect command alters the size and the position of the operating system window corresponding to the current top-level browsing context. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `x` | `null` \| `number` | -| `y` | `null` \| `number` | -| `width` | `null` \| `number` | -| `height` | `null` \| `number` | - -#### Returns - -`Promise`\<`RectReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-set-window-rect - -#### Inherited from - -`ProtocolCommands.setWindowRect` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:170 - -*** - -### ~~shake()~~ - -```ts -shake(): Promise -``` - -Appium Protocol Command - -Perform a shake action on the device. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/interactions/shake/ - -#### Inherited from - -`ProtocolCommands.shake` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:34 - -*** - -### ~~shutdown()~~ - -```ts -shutdown(): Promise -``` - -Chromium Protocol Command - -Shutdown ChromeDriver process and consequently terminating all active sessions. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L489-L498 - -#### Inherited from - -`ProtocolCommands.shutdown` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:292 - -*** - -### ~~startActivity()~~ - -```ts -startActivity( - appPackage, - appActivity, - appWaitPackage?, - appWaitActivity?, - intentAction?, - intentCategory?, - intentFlags?, - optionalIntentArguments?, -dontStopAppOnReset?): Promise -``` - -Appium Protocol Command - -Start an Android activity by providing package name and activity name. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `appPackage` | `string` | -| `appActivity` | `string` | -| `appWaitPackage`? | `string` | -| `appWaitActivity`? | `string` | -| `intentAction`? | `string` | -| `intentCategory`? | `string` | -| `intentFlags`? | `string` | -| `optionalIntentArguments`? | `string` | -| `dontStopAppOnReset`? | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/activity/start-activity/ - -#### Inherited from - -`ProtocolCommands.startActivity` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:282 - -*** - -### ~~startCastTabMirroring()~~ - -```ts -startCastTabMirroring(sinkName): Promise -``` - -Chromium Protocol Command - -Initiates tab mirroring for the current browser tab on the specified device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `sinkName` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#741 - -#### Inherited from - -`ProtocolCommands.startCastTabMirroring` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:268 - -*** - -### ~~startRecordingScreen()~~ - -```ts -startRecordingScreen(options?): Promise -``` - -Appium Protocol Command - -Start recording the screen. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `options`? | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/recording-screen/start-recording-screen/ - -#### Inherited from - -`ProtocolCommands.startRecordingScreen` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:66 - -*** - -### ~~status()~~ - -```ts -status(): Promise -``` - -Webdriver Protocol Command - -The Status command returns information about whether a remote end is in a state in which it can create new sessions and can additionally include arbitrary meta information that is specific to the implementation. - -#### Returns - -`Promise`\<`StatusReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-status - -#### Inherited from - -`ProtocolCommands.status` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:26 - -*** - -### ~~stopCasting()~~ - -```ts -stopCasting(sinkName): Promise -``` - -Chromium Protocol Command - -Stops casting from media router to the specified device, if connected. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `sinkName` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#744 - -#### Inherited from - -`ProtocolCommands.stopCasting` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:284 - -*** - -### ~~stopRecordingScreen()~~ - -```ts -stopRecordingScreen( - remotePath?, - username?, - password?, -method?): Promise -``` - -Appium Protocol Command - -Stop recording screen - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `remotePath`? | `string` | -| `username`? | `string` | -| `password`? | `string` | -| `method`? | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/recording-screen/stop-recording-screen/ - -#### Inherited from - -`ProtocolCommands.stopRecordingScreen` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:74 - -*** - -### ~~switchContext()~~ - -```ts -switchContext(name): Promise -``` - -Appium Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts - -#### Inherited from - -`ProtocolCommands.switchContext` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:18 - -*** - -### ~~switchToFrame()~~ - -```ts -switchToFrame(id): Promise -``` - -Webdriver Protocol Command - -The Switch To Frame command is used to select the current top-level browsing context or a child browsing context of the current browsing context to use as the current browsing context for subsequent commands. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `id` | `null` \| `number` \| `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-switch-to-frame - -#### Inherited from - -`ProtocolCommands.switchToFrame` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:146 - -*** - -### ~~switchToParentFrame()~~ - -```ts -switchToParentFrame(): Promise -``` - -Webdriver Protocol Command - -The Switch to Parent Frame command sets the current browsing context for future commands to the parent of the current browsing context. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-switch-to-parent-frame - -#### Inherited from - -`ProtocolCommands.switchToParentFrame` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:154 - -*** - -### ~~switchToWindow()~~ - -```ts -switchToWindow(handle): Promise -``` - -Webdriver Protocol Command - -The Switch To Window command is used to select the current top-level browsing context for the current session, i.e. the one that will be used for processing commands. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `handle` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-switch-to-window - -#### Inherited from - -`ProtocolCommands.switchToWindow` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:114 - -*** - -### ~~takeElementScreenshot()~~ - -```ts -takeElementScreenshot(elementId, scroll?): Promise -``` - -Webdriver Protocol Command - -The Take Element Screenshot command takes a screenshot of the visible region encompassed by the bounding rectangle of an element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `scroll`? | `boolean` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-take-element-screenshot - -#### Inherited from - -`ProtocolCommands.takeElementScreenshot` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:482 - -*** - -### ~~takeHeapSnapshot()~~ - -```ts -takeHeapSnapshot(): Promise -``` - -Chromium Protocol Command - -Takes a heap snapshot of the current execution context. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/chrome/web_view.h#L198-L202 - -#### Inherited from - -`ProtocolCommands.takeHeapSnapshot` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:69 - -*** - -### ~~takeScreenshot()~~ - -```ts -takeScreenshot(): Promise -``` - -Webdriver Protocol Command - -The Take Screenshot command takes a screenshot of the top-level browsing context's viewport. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-take-screenshot - -#### Inherited from - -`ProtocolCommands.takeScreenshot` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:474 - -*** - -### ~~terminateApp()~~ - -```ts -terminateApp(appId): Promise -``` - -Appium Protocol Command - -Terminate the given app on the device - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `appId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/terminate-app/ - -#### Inherited from - -`ProtocolCommands.terminateApp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:170 - -*** - -### ~~throttleCPU()~~ - -```ts -throttleCPU(rate): Promise -``` - -Saucelabs Protocol Command - -You can throttle the CPU in DevTools to understand how your page performs under that constraint. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `rate` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-ThrottleCPUCapabilities - -#### Examples - -```js -// throttle CPU and make it run 4x slower -browser.throttleCPU(4) -```* - -```js -// reset CPU throttling -browser.throttleCPU(0) -``` - -#### Inherited from - -`ProtocolCommands.throttleCPU` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:88 - -*** - -### ~~toggleAirplaneMode()~~ - -```ts -toggleAirplaneMode(): Promise -``` - -Appium Protocol Command - -Toggle airplane mode on device. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-airplane-mode/ - -#### Inherited from - -`ProtocolCommands.toggleAirplaneMode` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:234 - -*** - -### ~~toggleData()~~ - -```ts -toggleData(): Promise -``` - -Appium Protocol Command - -Switch the state of data service. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-data/ - -#### Inherited from - -`ProtocolCommands.toggleData` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:242 - -*** - -### ~~toggleEnrollTouchId()~~ - -```ts -toggleEnrollTouchId(enabled?): Promise -``` - -Appium Protocol Command - -Toggle the simulator being [enrolled](https://support.apple.com/en-ca/ht201371) to accept touchId (iOS Simulator only). To enable this feature, the `allowTouchIdEnroll` desired capability must be set to true. When `allowTouchIdEnroll` is set to true the Simulator will be enrolled by default, and the 'Toggle Touch ID Enrollment' changes the enrollment state. This call will only work if the Appium process or its parent application (e.g., Terminal.app or Appium.app) has access to Mac OS accessibility in System Preferences > Security & Privacy > Privacy > Accessibility list. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `enabled`? | `boolean` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/simulator/toggle-touch-id-enrollment/ - -#### Inherited from - -`ProtocolCommands.toggleEnrollTouchId` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:322 - -*** - -### ~~toggleLocationServices()~~ - -```ts -toggleLocationServices(): Promise -``` - -Appium Protocol Command - -Switch the state of the location service. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-location-services/ - -#### Inherited from - -`ProtocolCommands.toggleLocationServices` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:258 - -*** - -### ~~toggleNetworkSpeed()~~ - -```ts -toggleNetworkSpeed(netspeed): Promise -``` - -Appium Protocol Command - -Set network speed (Emulator only) - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `netspeed` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/network-speed/ - -#### Inherited from - -`ProtocolCommands.toggleNetworkSpeed` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:266 - -*** - -### ~~toggleWiFi()~~ - -```ts -toggleWiFi(): Promise -``` - -Appium Protocol Command - -Switch the state of the wifi service. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-wifi/ - -#### Inherited from - -`ProtocolCommands.toggleWiFi` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:250 - -*** - -### ~~touchClick()~~ - -```ts -touchClick(element): Promise -``` - -Jsonwp Protocol Command - -Single tap on the touch enabled device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `element` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchclick - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a touch gesture! - -#### Inherited from - -`ProtocolCommands.touchClick` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:597 - -*** - -### ~~touchDoubleClick()~~ - -```ts -touchDoubleClick(element): Promise -``` - -Jsonwp Protocol Command - -Double tap on the touch screen using finger motion events. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `element` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchdoubleclick - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a touch gesture! - -#### Inherited from - -`ProtocolCommands.touchDoubleClick` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:615 - -*** - -### ~~touchFlick()~~ - -```ts -touchFlick( - xoffset?, - yoffset?, - element?, - speed?, - xspeed?, -yspeed?): Promise -``` - -Jsonwp Protocol Command - -Flick on the touch screen using finger motion events. This flickcommand starts at a particulat screen location. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `xoffset`? | `number` | -| `yoffset`? | `number` | -| `element`? | `string` | -| `speed`? | `number` | -| `xspeed`? | `number` | -| `yspeed`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchflick - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a touch gesture! - -#### Inherited from - -`ProtocolCommands.touchFlick` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:624 - -*** - -### ~~touchId()~~ - -```ts -touchId(match): Promise -``` - -Appium Protocol Command - -Simulate a [touch id](https://support.apple.com/en-ca/ht201371) event (iOS Simulator only). To enable this feature, the `allowTouchIdEnroll` desired capability must be set to true and the Simulator must be [enrolled](https://support.apple.com/en-ca/ht201371). When you set allowTouchIdEnroll to true, it will set the Simulator to be enrolled by default. The enrollment state can be [toggled](https://appium.github.io/appium.io/docs/en/commands/device/simulator/toggle-touch-id-enrollment/index.html). This call will only work if Appium process or its parent application (e.g. Terminal.app or Appium.app) has access to Mac OS accessibility in System Preferences > Security & Privacy > Privacy > Accessibility list. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `match` | `boolean` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/simulator/touch-id/ - -#### Inherited from - -`ProtocolCommands.touchId` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:314 - -*** - -### ~~touchPerform()~~ - -```ts -touchPerform(actions): Promise -``` - -Appium Protocol Command - -This functionality is only available from within a native context. 'Touch Perform' works similarly to the other singular touch interactions, except that this allows you to chain together more than one touch action as one command. This is useful because Appium commands are sent over the network and there's latency between commands. This latency can make certain touch interactions impossible because some interactions need to be performed in one sequence. Vertical, for example, requires pressing down, moving to a different y coordinate, and then releasing. For it to work, there can't be a delay between the interactions. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `actions` | `object`[] | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/interactions/touch/touch-perform/ - -#### Example - -```js -// do a horizontal swipe by percentage -const startPercentage = 10; -const endPercentage = 90; -const anchorPercentage = 50; - -const { width, height } = driver.getWindowSize(); -const anchor = height// anchorPercentage / 100; -const startPoint = width// startPercentage / 100; -const endPoint = width// endPercentage / 100; -driver.touchPerform([ - { - action: 'press', - options: { - x: startPoint, - y: anchor, - }, - }, - { - action: 'wait', - options: { - ms: 100, - }, - }, - { - action: 'moveTo', - options: { - x: endPoint, - y: anchor, - }, - }, - { - action: 'release', - options: {}, - }, -]); -``` - -#### Inherited from - -`ProtocolCommands.touchPerform` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:523 - -*** - -### ~~touchPinch()~~ - -```ts -touchPinch( - x, - y, -scale): Promise -``` - -Chromium Protocol Command - -Trigger a pinch zoom effect. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `x` | `number` | -| `y` | `number` | -| `scale` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L813-L827 - -#### Inherited from - -`ProtocolCommands.touchPinch` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:228 - -*** - -### ~~touchScroll()~~ - -```ts -touchScroll( - xoffset, - yoffset, -element?): Promise -``` - -Jsonwp Protocol Command - -Finger move on the screen. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `xoffset` | `number` | -| `yoffset` | `number` | -| `element`? | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchscroll - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a touch gesture! - -#### Inherited from - -`ProtocolCommands.touchScroll` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:606 - -*** - -### ~~uninstallAddOn()~~ - -```ts -uninstallAddOn(id): Promise -``` - -Gecko Protocol Command - -Uninstalls an addon from the current browser session's profile. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `id` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/blob/586affe0cf675b1d5c8abc756defa4a46d95391b/javascript/node/selenium-webdriver/firefox.js#L670-L687 - -#### Example - -```js -// Create a buffer of the add on .zip file -const extension = await fs.promises.readFile('/path/to/extension.zip') -// Load extension in Firefox -const id = await browser.installAddOn(extension.toString('base64'), false); -// ... -await browser.uninstallAddOn(id) -``` - -#### Inherited from - -`ProtocolCommands.uninstallAddOn` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/gecko.d.ts:67 - -*** - -### ~~unlock()~~ - -```ts -unlock(): Promise -``` - -Appium Protocol Command - -Unlock the device. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/interactions/unlock/ - -#### Inherited from - -`ProtocolCommands.unlock` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:50 - -*** - -### ~~updateMockSensor()~~ - -```ts -updateMockSensor( - type, - mockSensorType, - maxSamplingFrequency, -minSamplingFrequency): Promise -``` - -Webdriver Protocol Command - -Updates the mock sensor type. __Note:__ this feature has not landed in all browsers yet. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `type` | `string` | -| `mockSensorType` | `string` | -| `maxSamplingFrequency` | `number` | -| `minSamplingFrequency` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/sensors/#update-mock-sensor-reading-command - -#### Inherited from - -`ProtocolCommands.updateMockSensor` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:553 - -*** - -### ~~updateSettings()~~ - -```ts -updateSettings(settings): Promise -``` - -Appium Protocol Command - -Update the current setting on the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `settings` | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/session/settings/update-settings/ - -#### Inherited from - -`ProtocolCommands.updateSettings` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:397 diff --git a/docs/api-reference/type-aliases/AssertViewResult.mdx b/docs/api-reference/type-aliases/AssertViewResult.mdx index edd17d1..05e4397 100644 --- a/docs/api-reference/type-aliases/AssertViewResult.mdx +++ b/docs/api-reference/type-aliases/AssertViewResult.mdx @@ -8,4 +8,4 @@ type AssertViewResult: AssertViewResultSuccess | AssertViewResultDiff | AssertVi ## Defined in -testplane-docs/.testplane/src/types/index.ts:105 +[.testplane/src/types/index.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L105) diff --git a/docs/api-reference/type-aliases/AsyncSessionEventCallback.mdx b/docs/api-reference/type-aliases/AsyncSessionEventCallback.mdx index 2159c70..77f71a3 100644 --- a/docs/api-reference/type-aliases/AsyncSessionEventCallback.mdx +++ b/docs/api-reference/type-aliases/AsyncSessionEventCallback.mdx @@ -19,4 +19,4 @@ type AsyncSessionEventCallback: (browser, browserInfo) => Promise | void; ## Defined in -testplane-docs/.testplane/src/types/index.ts:36 +[.testplane/src/types/index.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L36) diff --git a/docs/api-reference/type-aliases/ConfigInput.mdx b/docs/api-reference/type-aliases/ConfigInput.mdx index 3b96785..ca099fc 100644 --- a/docs/api-reference/type-aliases/ConfigInput.mdx +++ b/docs/api-reference/type-aliases/ConfigInput.mdx @@ -17,11 +17,11 @@ type ConfigInput: Partial & { | Name | Type | Defined in | | ------ | ------ | ------ | -| `browsers` | `Record`\<`string`, `Partial`\<[`CommonConfig`](../interfaces/CommonConfig.mdx)\> & \{ `desiredCapabilities`: `WebdriverIO.Capabilities`; \}\> | testplane-docs/.testplane/src/config/types.ts:197 | -| `plugins` | `Record`\<`string`, `unknown`\> | testplane-docs/.testplane/src/config/types.ts:198 | -| `prepareEnvironment` | () => `void` \| `null` | testplane-docs/.testplane/src/config/types.ts:200 | -| `sets` | `Record`\<`string`, [`SetsConfig`](../interfaces/SetsConfig.mdx)\> | testplane-docs/.testplane/src/config/types.ts:199 | +| `browsers` | `Record`\<`string`, `Partial`\<[`CommonConfig`](../interfaces/CommonConfig.mdx)\> & \{ `desiredCapabilities`: `WebdriverIO.Capabilities`; \}\> | [.testplane/src/config/types.ts:197](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L197) | +| `plugins` | `Record`\<`string`, `unknown`\> | [.testplane/src/config/types.ts:198](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L198) | +| `prepareEnvironment` | () => `void` \| `null` | [.testplane/src/config/types.ts:200](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L200) | +| `sets` | `Record`\<`string`, [`SetsConfig`](../interfaces/SetsConfig.mdx)\> | [.testplane/src/config/types.ts:199](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L199) | ## Defined in -testplane-docs/.testplane/src/config/types.ts:196 +[.testplane/src/config/types.ts:196](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L196) diff --git a/docs/api-reference/type-aliases/InterceptHandler.mdx b/docs/api-reference/type-aliases/InterceptHandler.mdx index c64b1e7..41183ec 100644 --- a/docs/api-reference/type-aliases/InterceptHandler.mdx +++ b/docs/api-reference/type-aliases/InterceptHandler.mdx @@ -18,4 +18,4 @@ type InterceptHandler: (arg) => InterceptData | void; ## Defined in -testplane-docs/.testplane/src/events/types.ts:9 +[.testplane/src/events/types.ts:9](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/types.ts#L9) diff --git a/docs/api-reference/type-aliases/InterceptedEvent.mdx b/docs/api-reference/type-aliases/InterceptedEvent.mdx index d13c5de..35ce8fa 100644 --- a/docs/api-reference/type-aliases/InterceptedEvent.mdx +++ b/docs/api-reference/type-aliases/InterceptedEvent.mdx @@ -16,4 +16,4 @@ type InterceptedEvent: ValueOf: (event, callback) => T(event, callback) => T(event, ## Defined in -testplane-docs/.testplane/src/types/index.ts:193 +[.testplane/src/types/index.ts:193](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L193) diff --git a/docs/api-reference/type-aliases/SyncSessionEventCallback.mdx b/docs/api-reference/type-aliases/SyncSessionEventCallback.mdx index e1a6093..2bec5c9 100644 --- a/docs/api-reference/type-aliases/SyncSessionEventCallback.mdx +++ b/docs/api-reference/type-aliases/SyncSessionEventCallback.mdx @@ -21,4 +21,4 @@ type SyncSessionEventCallback: (browser, browserInfo) => void; ## Defined in -testplane-docs/.testplane/src/types/index.ts:188 +[.testplane/src/types/index.ts:188](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L188) diff --git a/docs/api-reference/type-aliases/WorkerEventHandler.mdx b/docs/api-reference/type-aliases/WorkerEventHandler.mdx index 85b36df..2d98aa5 100644 --- a/docs/api-reference/type-aliases/WorkerEventHandler.mdx +++ b/docs/api-reference/type-aliases/WorkerEventHandler.mdx @@ -80,4 +80,4 @@ type WorkerEventHandler: (event, callback) => T(event, callback) => T(event, ## Defined in -testplane-docs/.testplane/src/types/index.ts:225 +[.testplane/src/types/index.ts:225](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L225) diff --git a/docs/api-reference/variables/Key.mdx b/docs/api-reference/variables/Key.mdx deleted file mode 100644 index 3b6c37f..0000000 --- a/docs/api-reference/variables/Key.mdx +++ /dev/null @@ -1,131 +0,0 @@ -[testplane](../README.mdx) / Key - -# Variable: Key - -```ts -const Key: { - Add: ""; - Alt: ""; - ArrowDown: ""; - ArrowLeft: ""; - ArrowRight: ""; - ArrowUp: ""; - Backspace: ""; - Cancel: ""; - Clear: ""; - Command: ""; - Control: ""; - Ctrl: "WDIO_CONTROL"; - Decimal: ""; - Delete: ""; - Divide: ""; - End: ""; - Enter: ""; - Equals: ""; - Escape: ""; - F1: ""; - F10: ""; - F11: ""; - F12: ""; - F2: ""; - F3: ""; - F4: ""; - F5: ""; - F6: ""; - F7: ""; - F8: ""; - F9: ""; - Help: ""; - Home: ""; - Insert: ""; - Multiply: ""; - NULL: ""; - Numpad0: ""; - Numpad1: ""; - Numpad2: ""; - Numpad3: ""; - Numpad4: ""; - Numpad5: ""; - Numpad6: ""; - Numpad7: ""; - Numpad8: ""; - Numpad9: ""; - PageDown: ""; - PageUp: ""; - Pause: ""; - Return: ""; - Semicolon: ""; - Separator: ""; - Shift: ""; - Space: ""; - Subtract: ""; - Tab: ""; - ZenkakuHankaku: ""; -}; -``` - -## Type declaration - -| Name | Type | Defined in | -| ------ | ------ | ------ | -| `Add` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:45 | -| `Alt` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:18 | -| `ArrowDown` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:29 | -| `ArrowLeft` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:26 | -| `ArrowRight` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:28 | -| `ArrowUp` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:27 | -| `Backspace` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:11 | -| `Cancel` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:9 | -| `Clear` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:13 | -| `Command` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:62 | -| `Control` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:17 | -| `Ctrl` | `"WDIO_CONTROL"` | testplane/node\_modules/webdriverio/build/index.d.ts:7 | -| `Decimal` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:48 | -| `Delete` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:31 | -| `Divide` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:49 | -| `End` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:24 | -| `Enter` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:15 | -| `Equals` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:33 | -| `Escape` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:20 | -| `F1` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:50 | -| `F10` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:59 | -| `F11` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:60 | -| `F12` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:61 | -| `F2` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:51 | -| `F3` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:52 | -| `F4` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:53 | -| `F5` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:54 | -| `F6` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:55 | -| `F7` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:56 | -| `F8` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:57 | -| `F9` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:58 | -| `Help` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:10 | -| `Home` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:25 | -| `Insert` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:30 | -| `Multiply` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:44 | -| `NULL` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:8 | -| `Numpad0` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:34 | -| `Numpad1` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:35 | -| `Numpad2` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:36 | -| `Numpad3` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:37 | -| `Numpad4` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:38 | -| `Numpad5` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:39 | -| `Numpad6` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:40 | -| `Numpad7` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:41 | -| `Numpad8` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:42 | -| `Numpad9` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:43 | -| `PageDown` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:23 | -| `PageUp` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:22 | -| `Pause` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:19 | -| `Return` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:14 | -| `Semicolon` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:32 | -| `Separator` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:46 | -| `Shift` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:16 | -| `Space` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:21 | -| `Subtract` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:47 | -| `Tab` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:12 | -| `ZenkakuHankaku` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:63 | - -## Defined in - -testplane/node\_modules/webdriverio/build/index.d.ts:6 diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/README.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/README.mdx index bbdb385..c4ca31b 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/README.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/README.mdx @@ -59,7 +59,6 @@ | [TestResult](interfaces/TestResult.mdx) | - | | [TestResultWithRetries](interfaces/TestResultWithRetries.mdx) | - | | [TestplaneCtx](interfaces/TestplaneCtx.mdx) | - | -| [WdioBrowser](interfaces/WdioBrowser.mdx) | - | ## Type Aliases @@ -73,9 +72,3 @@ | [MasterEventHandler](type-aliases/MasterEventHandler.mdx) | - | | [SyncSessionEventCallback](type-aliases/SyncSessionEventCallback.mdx) | - | | [WorkerEventHandler](type-aliases/WorkerEventHandler.mdx) | - | - -## Variables - -| Variable | Description | -| ------ | ------ | -| [Key](variables/Key.mdx) | - | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/AbortOnReconnectError.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/AbortOnReconnectError.mdx index 401b43d..cf086cd 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/AbortOnReconnectError.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/AbortOnReconnectError.mdx @@ -24,43 +24,12 @@ new AbortOnReconnectError(): AbortOnReconnectError #### Defined in -testplane-docs/.testplane/src/errors/abort-on-reconnect-error.ts:2 +[.testplane/src/errors/abort-on-reconnect-error.ts:2](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors/abort-on-reconnect-error.ts#L2) ## Properties -| Property | Modifier | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | - | `Error.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `public` | `string` | - | `Error.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `stack?` | `public` | `string` | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Type | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | +| `message` | `string` | `Error.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `string` | `Error.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `stack?` | `string` | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/AssertViewError.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/AssertViewError.mdx index 61953ce..caf7a2d 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/AssertViewError.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/AssertViewError.mdx @@ -30,43 +30,12 @@ new AssertViewError(message): AssertViewError #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/assert-view-error.ts:2 +[.testplane/src/browser/commands/assert-view/errors/assert-view-error.ts:2](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/assert-view-error.ts#L2) ## Properties -| Property | Modifier | Type | Default value | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | `"image comparison failed"` | - | `Error.message` | testplane-docs/.testplane/src/browser/commands/assert-view/errors/assert-view-error.ts:2 | -| `name` | `public` | `string` | `undefined` | - | `Error.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `stack?` | `public` | `string` | `undefined` | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | `undefined` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | `undefined` | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Modifier | Type | Default value | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | ------ | ------ | +| `message` | `public` | `string` | `"image comparison failed"` | `Error.message` | [.testplane/src/browser/commands/assert-view/errors/assert-view-error.ts:2](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/assert-view-error.ts#L2) | +| `name` | `public` | `string` | `undefined` | `Error.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `stack?` | `public` | `string` | `undefined` | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/CancelledError.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/CancelledError.mdx index 63af97f..f3fb06a 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/CancelledError.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/CancelledError.mdx @@ -24,43 +24,12 @@ new CancelledError(): CancelledError #### Defined in -testplane-docs/.testplane/src/browser-pool/cancelled-error.ts:5 +[.testplane/src/browser-pool/cancelled-error.ts:5](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser-pool/cancelled-error.ts#L5) ## Properties -| Property | Modifier | Type | Default value | Description | Overrides | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | `"Browser request was cancelled"` | - | `Error.message` | - | testplane-docs/.testplane/src/browser-pool/cancelled-error.ts:3 | -| `name` | `public` | `string` | `"CancelledError"` | - | `Error.name` | - | testplane-docs/.testplane/src/browser-pool/cancelled-error.ts:2 | -| `stack?` | `public` | `string` | `undefined` | - | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | `undefined` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | - | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | `undefined` | - | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Type | Default value | Overrides | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | ------ | ------ | +| `message` | `string` | `"Browser request was cancelled"` | `Error.message` | - | [.testplane/src/browser-pool/cancelled-error.ts:3](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser-pool/cancelled-error.ts#L3) | +| `name` | `string` | `"CancelledError"` | `Error.name` | - | [.testplane/src/browser-pool/cancelled-error.ts:2](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser-pool/cancelled-error.ts#L2) | +| `stack?` | `string` | `undefined` | - | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/ClientBridgeError.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/ClientBridgeError.mdx index 847e218..832c035 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/ClientBridgeError.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/ClientBridgeError.mdx @@ -30,43 +30,12 @@ new ClientBridgeError(message): ClientBridgeError #### Defined in -testplane-docs/.testplane/src/browser/client-bridge/error.ts:2 +[.testplane/src/browser/client-bridge/error.ts:2](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/client-bridge/error.ts#L2) ## Properties -| Property | Modifier | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | - | `Error.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `public` | `string` | - | `Error.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `stack?` | `public` | `string` | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Type | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | +| `message` | `string` | `Error.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `string` | `Error.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `stack?` | `string` | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Config.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Config.mdx index 1f84ebd..2eb466e 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Config.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Config.mdx @@ -26,82 +26,82 @@ new Config(config?): Config #### Defined in -testplane-docs/.testplane/src/config/index.ts:28 +[.testplane/src/config/index.ts:28](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L28) ## Properties | Property | Type | Inherited from | Defined in | | ------ | ------ | ------ | ------ | -| `antialiasingTolerance` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`antialiasingTolerance` | testplane-docs/.testplane/src/config/types.ts:133 | -| `assertViewOpts` | [`AssertViewOptsConfig`](../interfaces/AssertViewOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`assertViewOpts` | testplane-docs/.testplane/src/config/types.ts:136 | -| `automationProtocol` | `"webdriver"` \| `"devtools"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`automationProtocol` | testplane-docs/.testplane/src/config/types.ts:97 | -| `baseUrl` | `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`baseUrl` | testplane-docs/.testplane/src/config/types.ts:104 | -| `browsers` | `Record`\<`string`, `BrowserConfig`\> | - | testplane-docs/.testplane/src/config/types.ts:213 | -| `buildDiffOpts` | [`BuildDiffOptsConfig`](../interfaces/BuildDiffOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`buildDiffOpts` | testplane-docs/.testplane/src/config/types.ts:135 | -| `calibrate` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`calibrate` | testplane-docs/.testplane/src/config/types.ts:127 | -| `compareOpts` | [`CompareOptsConfig`](../interfaces/CompareOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`compareOpts` | testplane-docs/.testplane/src/config/types.ts:134 | -| `compositeImage` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`compositeImage` | testplane-docs/.testplane/src/config/types.ts:128 | -| `configPath` | `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`configPath` | testplane-docs/.testplane/src/config/index.ts:10 | -| `desiredCapabilities` | `null` \| `Capabilities` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`desiredCapabilities` | testplane-docs/.testplane/src/config/types.ts:98 | -| `devServer` | \{ `args`: `string`[]; `command`: `null` \| `string`; `cwd`: `null` \| `string`; `env`: `Record`\<`string`, `string`\>; `logs`: `boolean`; `readinessProbe`: `ReadinessProbe`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`devServer` | testplane-docs/.testplane/src/config/types.ts:170 | -| `devServer.args` | `string`[] | - | testplane-docs/.testplane/src/config/types.ts:174 | -| `devServer.command` | `null` \| `string` | - | testplane-docs/.testplane/src/config/types.ts:171 | -| `devServer.cwd` | `null` \| `string` | - | testplane-docs/.testplane/src/config/types.ts:172 | -| `devServer.env` | `Record`\<`string`, `string`\> | - | testplane-docs/.testplane/src/config/types.ts:173 | -| `devServer.logs` | `boolean` | - | testplane-docs/.testplane/src/config/types.ts:175 | -| `devServer.readinessProbe` | `ReadinessProbe` | - | testplane-docs/.testplane/src/config/types.ts:176 | -| `expectOpts` | [`ExpectOptsConfig`](../interfaces/ExpectOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`expectOpts` | testplane-docs/.testplane/src/config/types.ts:137 | -| `gridUrl` | `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`gridUrl` | testplane-docs/.testplane/src/config/types.ts:103 | -| `headers` | `null` \| `Record`\<`string`, `string`\> | [`CommonConfig`](../interfaces/CommonConfig.mdx).`headers` | testplane-docs/.testplane/src/config/types.ts:142 | -| `headless` | `null` \| `boolean` \| `"old"` \| `"new"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`headless` | testplane-docs/.testplane/src/config/types.ts:153 | -| `httpTimeout` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`httpTimeout` | testplane-docs/.testplane/src/config/types.ts:109 | -| `isolation` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`isolation` | testplane-docs/.testplane/src/config/types.ts:154 | -| `key` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`key` | testplane-docs/.testplane/src/config/types.ts:149 | -| `lastFailed` | \{ `input`: `string` \| `string`[]; `only`: `boolean`; `output`: `string`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`lastFailed` | testplane-docs/.testplane/src/config/types.ts:156 | -| `lastFailed.input` | `string` \| `string`[] | - | testplane-docs/.testplane/src/config/types.ts:158 | -| `lastFailed.only` | `boolean` | - | testplane-docs/.testplane/src/config/types.ts:157 | -| `lastFailed.output` | `string` | - | testplane-docs/.testplane/src/config/types.ts:159 | -| `meta` | \{\} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`meta` | testplane-docs/.testplane/src/config/types.ts:138 | -| `openAndWaitOpts` | \{ `failOnNetworkError`: `boolean`; `ignoreNetworkErrorsPatterns`: (`string` \| `RegExp`)[]; `timeout`: `number`; `waitNetworkIdle`: `boolean`; `waitNetworkIdleTimeout`: `number`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`openAndWaitOpts` | testplane-docs/.testplane/src/config/types.ts:162 | -| `openAndWaitOpts.failOnNetworkError` | `boolean` | - | testplane-docs/.testplane/src/config/types.ts:166 | -| `openAndWaitOpts.ignoreNetworkErrorsPatterns` | (`string` \| `RegExp`)[] | - | testplane-docs/.testplane/src/config/types.ts:167 | -| `openAndWaitOpts.timeout?` | `number` | - | testplane-docs/.testplane/src/config/types.ts:163 | -| `openAndWaitOpts.waitNetworkIdle` | `boolean` | - | testplane-docs/.testplane/src/config/types.ts:164 | -| `openAndWaitOpts.waitNetworkIdleTimeout` | `number` | - | testplane-docs/.testplane/src/config/types.ts:165 | -| `orientation` | `null` \| `"landscape"` \| `"portrait"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`orientation` | testplane-docs/.testplane/src/config/types.ts:140 | -| `pageLoadTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`pageLoadTimeout` | testplane-docs/.testplane/src/config/types.ts:111 | -| `plugins` | `Record`\<`string`, `Record`\<`string`, `unknown`\>\> | - | testplane-docs/.testplane/src/config/types.ts:214 | -| `prepareEnvironment?` | () => `null` \| `void` | - | testplane-docs/.testplane/src/config/types.ts:216 | -| `region` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`region` | testplane-docs/.testplane/src/config/types.ts:150 | -| `resetCursor` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`resetCursor` | testplane-docs/.testplane/src/config/types.ts:141 | -| `retry` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`retry` | testplane-docs/.testplane/src/config/types.ts:107 | -| `saveHistoryMode` | `"all"` \| `"none"` \| `"onlyFailed"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`saveHistoryMode` | testplane-docs/.testplane/src/config/types.ts:117 | -| `screenshotDelay` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`screenshotDelay` | testplane-docs/.testplane/src/config/types.ts:131 | -| `screenshotMode` | `"auto"` \| `"fullpage"` \| `"viewport"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`screenshotMode` | testplane-docs/.testplane/src/config/types.ts:130 | -| `screenshotPath` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`screenshotPath` | testplane-docs/.testplane/src/config/types.ts:125 | -| `sessionEnvFlags` | `Record`\< \| `"isW3C"` \| `"isAndroid"` \| `"isMobile"` \| `"isIOS"` \| `"isSauce"` \| `"isSeleniumStandalone"` \| `"isChrome"`, `boolean`\> | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionEnvFlags` | testplane-docs/.testplane/src/config/types.ts:99 | -| `sessionQuitTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionQuitTimeout` | testplane-docs/.testplane/src/config/types.ts:113 | -| `sessionRequestTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionRequestTimeout` | testplane-docs/.testplane/src/config/types.ts:112 | -| `sessionsPerBrowser` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionsPerBrowser` | testplane-docs/.testplane/src/config/types.ts:105 | -| `sets` | `Record`\<`string`, `SetsConfigParsed`\> | - | testplane-docs/.testplane/src/config/types.ts:215 | -| `strictSSL` | `null` \| `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`strictSSL` | testplane-docs/.testplane/src/config/types.ts:147 | -| `strictTestsOrder` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`strictTestsOrder` | testplane-docs/.testplane/src/config/types.ts:129 | -| `system` | [`SystemConfig`](../interfaces/SystemConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`system` | testplane-docs/.testplane/src/config/types.ts:152 | -| `takeScreenshotOnFails` | \{ `assertViewFail`: `boolean`; `testFail`: `boolean`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`takeScreenshotOnFails` | testplane-docs/.testplane/src/config/types.ts:118 | -| `takeScreenshotOnFails.assertViewFail` | `boolean` | - | testplane-docs/.testplane/src/config/types.ts:120 | -| `takeScreenshotOnFails.testFail` | `boolean` | - | testplane-docs/.testplane/src/config/types.ts:119 | -| `takeScreenshotOnFailsMode` | `"fullpage"` \| `"viewport"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`takeScreenshotOnFailsMode` | testplane-docs/.testplane/src/config/types.ts:123 | -| `takeScreenshotOnFailsTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`takeScreenshotOnFailsTimeout` | testplane-docs/.testplane/src/config/types.ts:122 | -| `testTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`testTimeout` | testplane-docs/.testplane/src/config/types.ts:114 | -| `testsPerSession` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`testsPerSession` | testplane-docs/.testplane/src/config/types.ts:106 | -| `tolerance` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`tolerance` | testplane-docs/.testplane/src/config/types.ts:132 | -| `transformRequest` | (`req`: `RequestOptions`) => `RequestOptions` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`transformRequest` | testplane-docs/.testplane/src/config/types.ts:144 | -| `transformResponse` | (`res`: `Response`, `req`: `RequestOptions`) => `Response` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`transformResponse` | testplane-docs/.testplane/src/config/types.ts:145 | -| `urlHttpTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`urlHttpTimeout` | testplane-docs/.testplane/src/config/types.ts:110 | -| `user` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`user` | testplane-docs/.testplane/src/config/types.ts:148 | -| `waitInterval` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`waitInterval` | testplane-docs/.testplane/src/config/types.ts:116 | -| `waitTimeout` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`waitTimeout` | testplane-docs/.testplane/src/config/types.ts:115 | -| `windowSize` | `null` \| `string` \| \{ `height`: `number`; `width`: `number`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`windowSize` | testplane-docs/.testplane/src/config/types.ts:139 | +| `antialiasingTolerance` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`antialiasingTolerance` | [.testplane/src/config/types.ts:133](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L133) | +| `assertViewOpts` | [`AssertViewOptsConfig`](../interfaces/AssertViewOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`assertViewOpts` | [.testplane/src/config/types.ts:136](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L136) | +| `automationProtocol` | `"webdriver"` \| `"devtools"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`automationProtocol` | [.testplane/src/config/types.ts:97](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L97) | +| `baseUrl` | `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`baseUrl` | [.testplane/src/config/types.ts:104](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L104) | +| `browsers` | `Record`\<`string`, `BrowserConfig`\> | - | [.testplane/src/config/types.ts:213](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L213) | +| `buildDiffOpts` | [`BuildDiffOptsConfig`](../interfaces/BuildDiffOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`buildDiffOpts` | [.testplane/src/config/types.ts:135](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L135) | +| `calibrate` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`calibrate` | [.testplane/src/config/types.ts:127](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L127) | +| `compareOpts` | [`CompareOptsConfig`](../interfaces/CompareOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`compareOpts` | [.testplane/src/config/types.ts:134](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L134) | +| `compositeImage` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`compositeImage` | [.testplane/src/config/types.ts:128](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L128) | +| `configPath` | `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`configPath` | [.testplane/src/config/index.ts:10](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L10) | +| `desiredCapabilities` | `null` \| `Capabilities` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`desiredCapabilities` | [.testplane/src/config/types.ts:98](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L98) | +| `devServer` | \{ `args`: `string`[]; `command`: `null` \| `string`; `cwd`: `null` \| `string`; `env`: `Record`\<`string`, `string`\>; `logs`: `boolean`; `readinessProbe`: `ReadinessProbe`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`devServer` | [.testplane/src/config/types.ts:170](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L170) | +| `devServer.args` | `string`[] | - | [.testplane/src/config/types.ts:174](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L174) | +| `devServer.command` | `null` \| `string` | - | [.testplane/src/config/types.ts:171](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L171) | +| `devServer.cwd` | `null` \| `string` | - | [.testplane/src/config/types.ts:172](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L172) | +| `devServer.env` | `Record`\<`string`, `string`\> | - | [.testplane/src/config/types.ts:173](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L173) | +| `devServer.logs` | `boolean` | - | [.testplane/src/config/types.ts:175](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L175) | +| `devServer.readinessProbe` | `ReadinessProbe` | - | [.testplane/src/config/types.ts:176](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L176) | +| `expectOpts` | [`ExpectOptsConfig`](../interfaces/ExpectOptsConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`expectOpts` | [.testplane/src/config/types.ts:137](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L137) | +| `gridUrl` | `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`gridUrl` | [.testplane/src/config/types.ts:103](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L103) | +| `headers` | `null` \| `Record`\<`string`, `string`\> | [`CommonConfig`](../interfaces/CommonConfig.mdx).`headers` | [.testplane/src/config/types.ts:142](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L142) | +| `headless` | `null` \| `boolean` \| `"old"` \| `"new"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`headless` | [.testplane/src/config/types.ts:153](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L153) | +| `httpTimeout` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`httpTimeout` | [.testplane/src/config/types.ts:109](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L109) | +| `isolation` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`isolation` | [.testplane/src/config/types.ts:154](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L154) | +| `key` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`key` | [.testplane/src/config/types.ts:149](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L149) | +| `lastFailed` | \{ `input`: `string` \| `string`[]; `only`: `boolean`; `output`: `string`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`lastFailed` | [.testplane/src/config/types.ts:156](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L156) | +| `lastFailed.input` | `string` \| `string`[] | - | [.testplane/src/config/types.ts:158](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L158) | +| `lastFailed.only` | `boolean` | - | [.testplane/src/config/types.ts:157](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L157) | +| `lastFailed.output` | `string` | - | [.testplane/src/config/types.ts:159](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L159) | +| `meta` | \{\} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`meta` | [.testplane/src/config/types.ts:138](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L138) | +| `openAndWaitOpts` | \{ `failOnNetworkError`: `boolean`; `ignoreNetworkErrorsPatterns`: (`string` \| `RegExp`)[]; `timeout`: `number`; `waitNetworkIdle`: `boolean`; `waitNetworkIdleTimeout`: `number`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`openAndWaitOpts` | [.testplane/src/config/types.ts:162](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L162) | +| `openAndWaitOpts.failOnNetworkError` | `boolean` | - | [.testplane/src/config/types.ts:166](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L166) | +| `openAndWaitOpts.ignoreNetworkErrorsPatterns` | (`string` \| `RegExp`)[] | - | [.testplane/src/config/types.ts:167](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L167) | +| `openAndWaitOpts.timeout?` | `number` | - | [.testplane/src/config/types.ts:163](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L163) | +| `openAndWaitOpts.waitNetworkIdle` | `boolean` | - | [.testplane/src/config/types.ts:164](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L164) | +| `openAndWaitOpts.waitNetworkIdleTimeout` | `number` | - | [.testplane/src/config/types.ts:165](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L165) | +| `orientation` | `null` \| `"landscape"` \| `"portrait"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`orientation` | [.testplane/src/config/types.ts:140](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L140) | +| `pageLoadTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`pageLoadTimeout` | [.testplane/src/config/types.ts:111](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L111) | +| `plugins` | `Record`\<`string`, `Record`\<`string`, `unknown`\>\> | - | [.testplane/src/config/types.ts:214](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L214) | +| `prepareEnvironment?` | () => `null` \| `void` | - | [.testplane/src/config/types.ts:216](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L216) | +| `region` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`region` | [.testplane/src/config/types.ts:150](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L150) | +| `resetCursor` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`resetCursor` | [.testplane/src/config/types.ts:141](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L141) | +| `retry` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`retry` | [.testplane/src/config/types.ts:107](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L107) | +| `saveHistoryMode` | `"all"` \| `"none"` \| `"onlyFailed"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`saveHistoryMode` | [.testplane/src/config/types.ts:117](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L117) | +| `screenshotDelay` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`screenshotDelay` | [.testplane/src/config/types.ts:131](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L131) | +| `screenshotMode` | `"auto"` \| `"fullpage"` \| `"viewport"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`screenshotMode` | [.testplane/src/config/types.ts:130](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L130) | +| `screenshotPath` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`screenshotPath` | [.testplane/src/config/types.ts:125](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L125) | +| `sessionEnvFlags` | `Record`\< \| `"isW3C"` \| `"isAndroid"` \| `"isMobile"` \| `"isIOS"` \| `"isSauce"` \| `"isSeleniumStandalone"` \| `"isChrome"`, `boolean`\> | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionEnvFlags` | [.testplane/src/config/types.ts:99](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L99) | +| `sessionQuitTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionQuitTimeout` | [.testplane/src/config/types.ts:113](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L113) | +| `sessionRequestTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionRequestTimeout` | [.testplane/src/config/types.ts:112](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L112) | +| `sessionsPerBrowser` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`sessionsPerBrowser` | [.testplane/src/config/types.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L105) | +| `sets` | `Record`\<`string`, `SetsConfigParsed`\> | - | [.testplane/src/config/types.ts:215](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L215) | +| `strictSSL` | `null` \| `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`strictSSL` | [.testplane/src/config/types.ts:147](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L147) | +| `strictTestsOrder` | `boolean` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`strictTestsOrder` | [.testplane/src/config/types.ts:129](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L129) | +| `system` | [`SystemConfig`](../interfaces/SystemConfig.mdx) | [`CommonConfig`](../interfaces/CommonConfig.mdx).`system` | [.testplane/src/config/types.ts:152](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L152) | +| `takeScreenshotOnFails` | \{ `assertViewFail`: `boolean`; `testFail`: `boolean`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`takeScreenshotOnFails` | [.testplane/src/config/types.ts:118](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L118) | +| `takeScreenshotOnFails.assertViewFail` | `boolean` | - | [.testplane/src/config/types.ts:120](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L120) | +| `takeScreenshotOnFails.testFail` | `boolean` | - | [.testplane/src/config/types.ts:119](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L119) | +| `takeScreenshotOnFailsMode` | `"fullpage"` \| `"viewport"` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`takeScreenshotOnFailsMode` | [.testplane/src/config/types.ts:123](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L123) | +| `takeScreenshotOnFailsTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`takeScreenshotOnFailsTimeout` | [.testplane/src/config/types.ts:122](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L122) | +| `testTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`testTimeout` | [.testplane/src/config/types.ts:114](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L114) | +| `testsPerSession` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`testsPerSession` | [.testplane/src/config/types.ts:106](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L106) | +| `tolerance` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`tolerance` | [.testplane/src/config/types.ts:132](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L132) | +| `transformRequest` | (`req`: `RequestOptions`) => `RequestOptions` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`transformRequest` | [.testplane/src/config/types.ts:144](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L144) | +| `transformResponse` | (`res`: `Response`, `req`: `RequestOptions`) => `Response` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`transformResponse` | [.testplane/src/config/types.ts:145](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L145) | +| `urlHttpTimeout` | `null` \| `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`urlHttpTimeout` | [.testplane/src/config/types.ts:110](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L110) | +| `user` | `null` \| `string` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`user` | [.testplane/src/config/types.ts:148](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L148) | +| `waitInterval` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`waitInterval` | [.testplane/src/config/types.ts:116](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L116) | +| `waitTimeout` | `number` | [`CommonConfig`](../interfaces/CommonConfig.mdx).`waitTimeout` | [.testplane/src/config/types.ts:115](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L115) | +| `windowSize` | `null` \| `string` \| \{ `height`: `number`; `width`: `number`; \} | [`CommonConfig`](../interfaces/CommonConfig.mdx).`windowSize` | [.testplane/src/config/types.ts:139](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L139) | ## Methods @@ -123,7 +123,7 @@ forBrowser(id): BrowserConfig #### Defined in -testplane-docs/.testplane/src/config/index.ts:82 +[.testplane/src/config/index.ts:82](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L82) *** @@ -139,7 +139,7 @@ getBrowserIds(): string[] #### Defined in -testplane-docs/.testplane/src/config/index.ts:86 +[.testplane/src/config/index.ts:86](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L86) *** @@ -164,7 +164,7 @@ in a subrocess with a config from the main process #### Defined in -testplane-docs/.testplane/src/config/index.ts:100 +[.testplane/src/config/index.ts:100](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L100) *** @@ -190,7 +190,7 @@ prepareBrowser(browser): null | void #### Defined in -testplane-docs/.testplane/src/config/types.ts:124 +[.testplane/src/config/types.ts:124](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L124) *** @@ -216,7 +216,7 @@ screenshotsDir(test): string #### Defined in -testplane-docs/.testplane/src/config/types.ts:126 +[.testplane/src/config/types.ts:126](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L126) *** @@ -232,7 +232,7 @@ serialize(): Omit #### Defined in -testplane-docs/.testplane/src/config/index.ts:90 +[.testplane/src/config/index.ts:90](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L90) *** @@ -260,7 +260,7 @@ shouldRetry(testInfo): null | boolean #### Defined in -testplane-docs/.testplane/src/config/types.ts:108 +[.testplane/src/config/types.ts:108](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L108) *** @@ -282,7 +282,7 @@ static create(config?): Config #### Defined in -testplane-docs/.testplane/src/config/index.ts:12 +[.testplane/src/config/index.ts:12](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L12) *** @@ -304,4 +304,4 @@ static read(configPath): unknown #### Defined in -testplane-docs/.testplane/src/config/index.ts:16 +[.testplane/src/config/index.ts:16](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/index.ts#L16) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/CoreError.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/CoreError.mdx index 44c3855..1f99c58 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/CoreError.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/CoreError.mdx @@ -30,43 +30,12 @@ new CoreError(message): CoreError #### Defined in -testplane-docs/.testplane/src/browser/core-error.ts:4 +[.testplane/src/browser/core-error.ts:4](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/core-error.ts#L4) ## Properties -| Property | Modifier | Type | Default value | Description | Overrides | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | `undefined` | - | - | `Error.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `public` | `string` | `"CoreError"` | - | `Error.name` | - | testplane-docs/.testplane/src/browser/core-error.ts:2 | -| `stack?` | `public` | `string` | `undefined` | - | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | `undefined` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | - | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | `undefined` | - | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Type | Default value | Overrides | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | ------ | ------ | +| `message` | `string` | `undefined` | - | `Error.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `string` | `"CoreError"` | `Error.name` | - | [.testplane/src/browser/core-error.ts:2](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/core-error.ts#L2) | +| `stack?` | `string` | `undefined` | - | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/HeightViewportError.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/HeightViewportError.mdx index b88842b..62de104 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/HeightViewportError.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/HeightViewportError.mdx @@ -32,43 +32,12 @@ new HeightViewportError(message): HeightViewportError #### Defined in -testplane-docs/.testplane/src/browser/screen-shooter/viewport/coord-validator/errors/height-viewport-error.ts:5 +[.testplane/src/browser/screen-shooter/viewport/coord-validator/errors/height-viewport-error.ts:5](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/screen-shooter/viewport/coord-validator/errors/height-viewport-error.ts#L5) ## Properties -| Property | Modifier | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | - | `Error.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `public` | `string` | - | `Error.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `stack?` | `public` | `string` | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Type | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | +| `message` | `string` | `Error.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `string` | `Error.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `stack?` | `string` | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/ImageDiffError.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/ImageDiffError.mdx index c495631..eb429da 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/ImageDiffError.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/ImageDiffError.mdx @@ -38,26 +38,24 @@ new ImageDiffError(__namedParameters): ImageDiffError #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:79 +[.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:79](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L79) ## Properties -| Property | Modifier | Type | Description | Overrides | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | ------ | -| `currImg` | `public` | [`ImageInfo`](../interfaces/ImageInfo.mdx) | - | - | `BaseStateError.currImg` | testplane-docs/.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4 | -| `diffBounds?` | `public` | `CoordBounds` | - | - | - | testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:43 | -| `diffBuffer` | `public` | `Buffer` | - | - | - | testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:45 | -| `diffClusters?` | `public` | `CoordBounds`[] | - | - | - | testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:44 | -| `diffOpts` | `public` | `DiffOptions` | - | - | - | testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:42 | -| `diffRatio` | `public` | `number` | - | - | - | testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:47 | -| `differentPixels` | `public` | `number` | - | - | - | testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:46 | -| `message` | `public` | `string` | - | `BaseStateError.message` | - | testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:41 | -| `name` | `public` | `string` | - | - | `BaseStateError.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `refImg` | `public` | [`RefImageInfo`](../interfaces/RefImageInfo.mdx) | - | - | `BaseStateError.refImg` | testplane-docs/.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4 | -| `stack?` | `public` | `string` | - | - | `BaseStateError.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `stateName` | `public` | `string` | - | - | `BaseStateError.stateName` | testplane-docs/.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | - | `BaseStateError.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | - | - | `BaseStateError.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | +| Property | Modifier | Type | Overrides | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | ------ | ------ | +| `currImg` | `public` | [`ImageInfo`](../interfaces/ImageInfo.mdx) | - | `BaseStateError.currImg` | [.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/base-state-error.ts#L4) | +| `diffBounds?` | `public` | `CoordBounds` | - | - | [.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:43](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L43) | +| `diffBuffer` | `public` | `Buffer` | - | - | [.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L45) | +| `diffClusters?` | `public` | `CoordBounds`[] | - | - | [.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:44](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L44) | +| `diffOpts` | `public` | `DiffOptions` | - | - | [.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:42](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L42) | +| `diffRatio` | `public` | `number` | - | - | [.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:47](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L47) | +| `differentPixels` | `public` | `number` | - | - | [.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:46](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L46) | +| `message` | `public` | `string` | `BaseStateError.message` | - | [.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L41) | +| `name` | `public` | `string` | - | `BaseStateError.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `refImg` | `public` | [`RefImageInfo`](../interfaces/RefImageInfo.mdx) | - | `BaseStateError.refImg` | [.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/base-state-error.ts#L4) | +| `stack?` | `public` | `string` | - | `BaseStateError.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | +| `stateName` | `public` | `string` | - | `BaseStateError.stateName` | [.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/base-state-error.ts#L4) | ## Methods @@ -79,36 +77,7 @@ saveDiffTo(diffPath): Promise #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:109 - -*** - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`BaseStateError.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +[.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:109](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L109) *** @@ -145,7 +114,7 @@ static create(this, __namedParameters): T #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:49 +[.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:49](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L49) *** @@ -174,4 +143,4 @@ static fromObject(this, data): T #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:74 +[.testplane/src/browser/commands/assert-view/errors/image-diff-error.ts:74](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/image-diff-error.ts#L74) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/NoRefImageError.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/NoRefImageError.mdx index 2128ed9..b14061f 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/NoRefImageError.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/NoRefImageError.mdx @@ -35,52 +35,21 @@ new NoRefImageError( #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/no-ref-image-error.ts:26 +[.testplane/src/browser/commands/assert-view/errors/no-ref-image-error.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/no-ref-image-error.ts#L26) ## Properties -| Property | Modifier | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | -| `currImg` | `public` | [`ImageInfo`](../interfaces/ImageInfo.mdx) | - | `BaseStateError.currImg` | testplane-docs/.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4 | -| `message` | `public` | `string` | - | `BaseStateError.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `public` | `string` | - | `BaseStateError.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `refImg` | `public` | [`RefImageInfo`](../interfaces/RefImageInfo.mdx) | - | `BaseStateError.refImg` | testplane-docs/.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4 | -| `stack?` | `public` | `string` | - | `BaseStateError.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `stateName` | `public` | `string` | - | `BaseStateError.stateName` | testplane-docs/.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | `BaseStateError.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | - | `BaseStateError.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | +| Property | Modifier | Type | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | ------ | +| `currImg` | `public` | [`ImageInfo`](../interfaces/ImageInfo.mdx) | `BaseStateError.currImg` | [.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/base-state-error.ts#L4) | +| `message` | `public` | `string` | `BaseStateError.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `public` | `string` | `BaseStateError.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `refImg` | `public` | [`RefImageInfo`](../interfaces/RefImageInfo.mdx) | `BaseStateError.refImg` | [.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/base-state-error.ts#L4) | +| `stack?` | `public` | `string` | `BaseStateError.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | +| `stateName` | `public` | `string` | `BaseStateError.stateName` | [.testplane/src/browser/commands/assert-view/errors/base-state-error.ts:4](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/base-state-error.ts#L4) | ## Methods -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`BaseStateError.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 - -*** - ### create() ```ts @@ -112,7 +81,7 @@ static create( #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/no-ref-image-error.ts:13 +[.testplane/src/browser/commands/assert-view/errors/no-ref-image-error.ts:13](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/no-ref-image-error.ts#L13) *** @@ -141,4 +110,4 @@ static fromObject(this, data): T #### Defined in -testplane-docs/.testplane/src/browser/commands/assert-view/errors/no-ref-image-error.ts:22 +[.testplane/src/browser/commands/assert-view/errors/no-ref-image-error.ts:22](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/assert-view/errors/no-ref-image-error.ts#L22) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/OffsetViewportError.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/OffsetViewportError.mdx index 098577a..42491ed 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/OffsetViewportError.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/OffsetViewportError.mdx @@ -32,43 +32,12 @@ new OffsetViewportError(message): OffsetViewportError #### Defined in -testplane-docs/.testplane/src/browser/screen-shooter/viewport/coord-validator/errors/offset-viewport-error.ts:5 +[.testplane/src/browser/screen-shooter/viewport/coord-validator/errors/offset-viewport-error.ts:5](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/screen-shooter/viewport/coord-validator/errors/offset-viewport-error.ts#L5) ## Properties -| Property | Modifier | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | - | `Error.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `public` | `string` | - | `Error.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `stack?` | `public` | `string` | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Type | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | +| `message` | `string` | `Error.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `string` | `Error.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `stack?` | `string` | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Suite.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Suite.mdx index 49001f3..070fd69 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Suite.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Suite.mdx @@ -34,13 +34,13 @@ new Suite(__namedParameters): Suite #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:20 +[.testplane/src/test-reader/test-object/suite.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L20) ## Properties | Property | Modifier | Type | Default value | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | ------ | -| `parent` | `public` | `null` \| [`Suite`](Suite.mdx) | `null` | `ConfigurableTestObject.parent` | testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:6 | +| `parent` | `public` | `null` \| [`Suite`](Suite.mdx) | `null` | `ConfigurableTestObject.parent` | [.testplane/src/test-reader/test-object/test-object.ts:6](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L6) | ## Accessors @@ -56,7 +56,7 @@ get afterEachHooks(): Hook[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:95 +[.testplane/src/test-reader/test-object/suite.ts:95](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L95) *** @@ -72,7 +72,7 @@ get beforeEachHooks(): Hook[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:91 +[.testplane/src/test-reader/test-object/suite.ts:91](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L91) *** @@ -102,7 +102,7 @@ set browserId(id): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:93 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:93](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L93) *** @@ -132,7 +132,7 @@ set browserVersion(version): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:101 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:101](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L101) *** @@ -162,7 +162,7 @@ set disabled(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:69 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:69](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L69) *** @@ -182,7 +182,7 @@ get file(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:45 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L45) *** @@ -202,7 +202,7 @@ get hasBrowserVersionOverwritten(): boolean #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:105 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L105) *** @@ -222,7 +222,7 @@ get id(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:41 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L41) *** @@ -252,7 +252,7 @@ set pending(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:53 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L53) *** @@ -268,7 +268,7 @@ get root(): boolean #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:79 +[.testplane/src/test-reader/test-object/suite.ts:79](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L79) *** @@ -298,7 +298,7 @@ set silentSkip(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:77 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:77](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L77) *** @@ -328,7 +328,7 @@ set skipReason(reason): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:61 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:61](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L61) *** @@ -344,7 +344,7 @@ get suites(): Suite[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:83 +[.testplane/src/test-reader/test-object/suite.ts:83](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L83) *** @@ -360,7 +360,7 @@ get tests(): Test[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:87 +[.testplane/src/test-reader/test-object/suite.ts:87](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L87) *** @@ -390,7 +390,7 @@ set timeout(timeout): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:85 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:85](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L85) *** @@ -410,7 +410,7 @@ get title(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:16 +[.testplane/src/test-reader/test-object/test-object.ts:16](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L16) ## Methods @@ -432,7 +432,7 @@ addAfterEachHook(hook): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:41 +[.testplane/src/test-reader/test-object/suite.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L41) *** @@ -454,7 +454,7 @@ addBeforeEachHook(hook): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:37 +[.testplane/src/test-reader/test-object/suite.ts:37](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L37) *** @@ -476,7 +476,7 @@ addSuite(suite): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:29 +[.testplane/src/test-reader/test-object/suite.ts:29](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L29) *** @@ -498,7 +498,7 @@ addTest(test): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:33 +[.testplane/src/test-reader/test-object/suite.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L33) *** @@ -520,7 +520,7 @@ afterEach(fn): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:49 +[.testplane/src/test-reader/test-object/suite.ts:49](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L49) *** @@ -546,7 +546,7 @@ assign(src): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:20 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L20) *** @@ -568,7 +568,7 @@ beforeEach(fn): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:45 +[.testplane/src/test-reader/test-object/suite.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L45) *** @@ -588,7 +588,7 @@ disable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:31 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:31](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L31) *** @@ -610,7 +610,7 @@ eachTest(cb): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:60 +[.testplane/src/test-reader/test-object/suite.ts:60](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L60) *** @@ -630,7 +630,7 @@ enable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:36 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L36) *** @@ -652,7 +652,7 @@ filterTests(cb): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:70 +[.testplane/src/test-reader/test-object/suite.ts:70](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L70) *** @@ -672,7 +672,7 @@ fullTitle(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:30 +[.testplane/src/test-reader/test-object/test-object.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L30) *** @@ -688,7 +688,7 @@ getTests(): Test[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:65 +[.testplane/src/test-reader/test-object/suite.ts:65](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L65) *** @@ -714,7 +714,7 @@ skip(__namedParameters): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:26 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L26) *** @@ -734,7 +734,7 @@ titlePath(): string[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:20 +[.testplane/src/test-reader/test-object/test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L20) *** @@ -763,4 +763,4 @@ static create(this, opts): T #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:15 +[.testplane/src/test-reader/test-object/suite.ts:15](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L15) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Test.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Test.mdx index 9717a80..fe2117c 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Test.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Test.mdx @@ -34,15 +34,15 @@ new Test(__namedParameters): Test #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test.ts:17 +[.testplane/src/test-reader/test-object/test.ts:17](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L17) ## Properties | Property | Modifier | Type | Default value | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | ------ | -| `err?` | `public` | `Error` | `undefined` | - | testplane-docs/.testplane/src/test-reader/test-object/test.ts:11 | -| `fn` | `public` | `TestFunction`\<[`TestFunctionCtx`](../interfaces/TestFunctionCtx.mdx)\> | `undefined` | - | testplane-docs/.testplane/src/test-reader/test-object/test.ts:10 | -| `parent` | `public` | `null` \| [`Suite`](Suite.mdx) | `null` | `ConfigurableTestObject.parent` | testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:6 | +| `err?` | `public` | `Error` | `undefined` | - | [.testplane/src/test-reader/test-object/test.ts:11](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L11) | +| `fn` | `public` | `TestFunction`\<[`TestFunctionCtx`](../interfaces/TestFunctionCtx.mdx)\> | `undefined` | - | [.testplane/src/test-reader/test-object/test.ts:10](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L10) | +| `parent` | `public` | `null` \| [`Suite`](Suite.mdx) | `null` | `ConfigurableTestObject.parent` | [.testplane/src/test-reader/test-object/test-object.ts:6](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L6) | ## Accessors @@ -72,7 +72,7 @@ set browserId(id): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:93 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:93](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L93) *** @@ -102,7 +102,7 @@ set browserVersion(version): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:101 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:101](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L101) *** @@ -132,7 +132,7 @@ set disabled(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:69 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:69](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L69) *** @@ -152,7 +152,7 @@ get file(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:45 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L45) *** @@ -172,7 +172,7 @@ get hasBrowserVersionOverwritten(): boolean #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:105 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L105) *** @@ -192,7 +192,7 @@ get id(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:41 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L41) *** @@ -222,7 +222,7 @@ set pending(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:53 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L53) *** @@ -252,7 +252,7 @@ set silentSkip(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:77 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:77](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L77) *** @@ -282,7 +282,7 @@ set skipReason(reason): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:61 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:61](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L61) *** @@ -312,7 +312,7 @@ set timeout(timeout): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:85 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:85](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L85) *** @@ -332,7 +332,7 @@ get title(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:16 +[.testplane/src/test-reader/test-object/test-object.ts:16](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L16) ## Methods @@ -358,7 +358,7 @@ assign(src): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:20 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L20) *** @@ -374,7 +374,7 @@ clone(): Test #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test.ts:23 +[.testplane/src/test-reader/test-object/test.ts:23](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L23) *** @@ -394,7 +394,7 @@ disable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:31 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:31](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L31) *** @@ -414,7 +414,7 @@ enable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:36 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L36) *** @@ -434,7 +434,7 @@ fullTitle(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:30 +[.testplane/src/test-reader/test-object/test-object.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L30) *** @@ -460,7 +460,7 @@ skip(__namedParameters): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:26 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L26) *** @@ -480,7 +480,7 @@ titlePath(): string[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:20 +[.testplane/src/test-reader/test-object/test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L20) *** @@ -509,4 +509,4 @@ static create(this, opts): T #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test.ts:13 +[.testplane/src/test-reader/test-object/test.ts:13](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L13) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/TestCollection.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/TestCollection.mdx index d792fcd..c733c3c 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/TestCollection.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/TestCollection.mdx @@ -22,7 +22,7 @@ new TestCollection(specs): TestCollection #### Defined in -testplane-docs/.testplane/src/test-collection.ts:20 +[.testplane/src/test-collection.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L20) ## Methods @@ -44,7 +44,7 @@ disableAll(browserId?): this #### Defined in -testplane-docs/.testplane/src/test-collection.ts:122 +[.testplane/src/test-collection.ts:122](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L122) *** @@ -67,7 +67,7 @@ disableTest(fullTitle, browserId?): this #### Defined in -testplane-docs/.testplane/src/test-collection.ts:136 +[.testplane/src/test-collection.ts:136](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L136) *** @@ -89,7 +89,7 @@ eachRootSuite(cb): void #### Defined in -testplane-docs/.testplane/src/test-collection.ts:30 +[.testplane/src/test-collection.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L30) *** @@ -113,7 +113,7 @@ eachTest(callback): void ##### Defined in -testplane-docs/.testplane/src/test-collection.ts:87 +[.testplane/src/test-collection.ts:87](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L87) #### eachTest(browserId, callback) @@ -134,7 +134,7 @@ eachTest(browserId, callback): void ##### Defined in -testplane-docs/.testplane/src/test-collection.ts:88 +[.testplane/src/test-collection.ts:88](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L88) *** @@ -157,7 +157,7 @@ eachTestByVersions(browserId, cb): void #### Defined in -testplane-docs/.testplane/src/test-collection.ts:102 +[.testplane/src/test-collection.ts:102](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L102) *** @@ -179,7 +179,7 @@ enableAll(browserId?): this #### Defined in -testplane-docs/.testplane/src/test-collection.ts:153 +[.testplane/src/test-collection.ts:153](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L153) *** @@ -202,7 +202,7 @@ enableTest(fullTitle, browserId?): this #### Defined in -testplane-docs/.testplane/src/test-collection.ts:163 +[.testplane/src/test-collection.ts:163](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L163) *** @@ -218,7 +218,7 @@ getBrowsers(): string[] #### Defined in -testplane-docs/.testplane/src/test-collection.ts:43 +[.testplane/src/test-collection.ts:43](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L43) *** @@ -240,7 +240,7 @@ getRootSuite(browserId): null | RootSuite #### Defined in -testplane-docs/.testplane/src/test-collection.ts:25 +[.testplane/src/test-collection.ts:25](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L25) *** @@ -270,7 +270,7 @@ mapTests(cb): T[] ##### Defined in -testplane-docs/.testplane/src/test-collection.ts:47 +[.testplane/src/test-collection.ts:47](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L47) #### mapTests(browserId, cb) @@ -297,7 +297,7 @@ mapTests(browserId, cb): T[] ##### Defined in -testplane-docs/.testplane/src/test-collection.ts:48 +[.testplane/src/test-collection.ts:48](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L48) *** @@ -321,7 +321,7 @@ sortTests(callback): this ##### Defined in -testplane-docs/.testplane/src/test-collection.ts:63 +[.testplane/src/test-collection.ts:63](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L63) #### sortTests(browserId, callback) @@ -342,7 +342,7 @@ sortTests(browserId, callback): this ##### Defined in -testplane-docs/.testplane/src/test-collection.ts:64 +[.testplane/src/test-collection.ts:64](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L64) *** @@ -371,4 +371,4 @@ static create(this, specs): T #### Defined in -testplane-docs/.testplane/src/test-collection.ts:13 +[.testplane/src/test-collection.ts:13](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-collection.ts#L13) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Testplane.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Testplane.mdx index 468bdbf..f37dad7 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Testplane.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/Testplane.mdx @@ -26,19 +26,15 @@ new Testplane(config?): Testplane #### Defined in -testplane-docs/.testplane/src/testplane.ts:67 +[.testplane/src/testplane.ts:67](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L67) ## Properties -| Property | Modifier | Type | Description | Defined in | -| ------ | ------ | ------ | ------ | ------ | -| `on` | `public` | [`MasterEventHandler`](../type-aliases/MasterEventHandler.mdx)\<[`Testplane`](Testplane.mdx)\> | - | testplane-docs/.testplane/src/testplane.ts:57 | -| `once` | `public` | [`MasterEventHandler`](../type-aliases/MasterEventHandler.mdx)\<[`Testplane`](Testplane.mdx)\> | - | testplane-docs/.testplane/src/testplane.ts:58 | -| `prependListener` | `public` | [`MasterEventHandler`](../type-aliases/MasterEventHandler.mdx)\<[`Testplane`](Testplane.mdx)\> | - | testplane-docs/.testplane/src/testplane.ts:59 | -| `captureRejectionSymbol` | `readonly` | *typeof* `captureRejectionSymbol` | - | testplane/node\_modules/@types/node/events.d.ts:405 | -| `captureRejections` | `static` | `boolean` | Sets or gets the default captureRejection value for all emitters. | testplane/node\_modules/@types/node/events.d.ts:410 | -| `defaultMaxListeners` | `static` | `number` | - | testplane/node\_modules/@types/node/events.d.ts:411 | -| `errorMonitor` | `readonly` | *typeof* `errorMonitor` | This symbol shall be used to install a listener for only monitoring `'error'` events. Listeners installed using this symbol are called before the regular `'error'` listeners are called. Installing a listener using this symbol does not change the behavior once an `'error'` event is emitted, therefore the process will still crash if no regular `'error'` listener is installed. | testplane/node\_modules/@types/node/events.d.ts:404 | +| Property | Type | Defined in | +| ------ | ------ | ------ | +| `on` | [`MasterEventHandler`](../type-aliases/MasterEventHandler.mdx)\<[`Testplane`](Testplane.mdx)\> | [.testplane/src/testplane.ts:57](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L57) | +| `once` | [`MasterEventHandler`](../type-aliases/MasterEventHandler.mdx)\<[`Testplane`](Testplane.mdx)\> | [.testplane/src/testplane.ts:58](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L58) | +| `prependListener` | [`MasterEventHandler`](../type-aliases/MasterEventHandler.mdx)\<[`Testplane`](Testplane.mdx)\> | [.testplane/src/testplane.ts:59](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L59) | ## Accessors @@ -54,7 +50,7 @@ get config(): Config #### Defined in -testplane-docs/.testplane/src/base-testplane.ts:45 +[.testplane/src/base-testplane.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/base-testplane.ts#L45) *** @@ -94,20 +90,20 @@ get errors(): { | Name | Type | Defined in | | ------ | ------ | ------ | -| `AbortOnReconnectError` | *typeof* [`AbortOnReconnectError`](AbortOnReconnectError.mdx) | testplane-docs/.testplane/src/errors.ts:34 | -| `AssertViewError` | *typeof* [`AssertViewError`](AssertViewError.mdx) | testplane-docs/.testplane/src/errors.ts:30 | -| `CancelledError` | *typeof* [`CancelledError`](CancelledError.mdx) | testplane-docs/.testplane/src/errors.ts:26 | -| `ClientBridgeError` | *typeof* [`ClientBridgeError`](ClientBridgeError.mdx) | testplane-docs/.testplane/src/errors.ts:27 | -| `CoreError` | *typeof* [`CoreError`](CoreError.mdx) | testplane-docs/.testplane/src/errors.ts:25 | -| `HeightViewportError` | *typeof* [`HeightViewportError`](HeightViewportError.mdx) | testplane-docs/.testplane/src/errors.ts:28 | -| `ImageDiffError` | *typeof* [`ImageDiffError`](ImageDiffError.mdx) | testplane-docs/.testplane/src/errors.ts:31 | -| `NoRefImageError` | *typeof* [`NoRefImageError`](NoRefImageError.mdx) | testplane-docs/.testplane/src/errors.ts:32 | -| `OffsetViewportError` | *typeof* [`OffsetViewportError`](OffsetViewportError.mdx) | testplane-docs/.testplane/src/errors.ts:29 | -| `TestplaneInternalError` | *typeof* [`TestplaneInternalError`](TestplaneInternalError.mdx) | testplane-docs/.testplane/src/errors.ts:33 | +| `AbortOnReconnectError` | *typeof* [`AbortOnReconnectError`](AbortOnReconnectError.mdx) | [.testplane/src/errors.ts:34](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L34) | +| `AssertViewError` | *typeof* [`AssertViewError`](AssertViewError.mdx) | [.testplane/src/errors.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L30) | +| `CancelledError` | *typeof* [`CancelledError`](CancelledError.mdx) | [.testplane/src/errors.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L26) | +| `ClientBridgeError` | *typeof* [`ClientBridgeError`](ClientBridgeError.mdx) | [.testplane/src/errors.ts:27](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L27) | +| `CoreError` | *typeof* [`CoreError`](CoreError.mdx) | [.testplane/src/errors.ts:25](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L25) | +| `HeightViewportError` | *typeof* [`HeightViewportError`](HeightViewportError.mdx) | [.testplane/src/errors.ts:28](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L28) | +| `ImageDiffError` | *typeof* [`ImageDiffError`](ImageDiffError.mdx) | [.testplane/src/errors.ts:31](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L31) | +| `NoRefImageError` | *typeof* [`NoRefImageError`](NoRefImageError.mdx) | [.testplane/src/errors.ts:32](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L32) | +| `OffsetViewportError` | *typeof* [`OffsetViewportError`](OffsetViewportError.mdx) | [.testplane/src/errors.ts:29](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L29) | +| `TestplaneInternalError` | *typeof* [`TestplaneInternalError`](TestplaneInternalError.mdx) | [.testplane/src/errors.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors.ts#L33) | #### Defined in -testplane-docs/.testplane/src/base-testplane.ts:53 +[.testplane/src/base-testplane.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/base-testplane.ts#L53) *** @@ -179,95 +175,39 @@ get events(): { | Name | Type | Default value | Defined in | | ------ | ------ | ------ | ------ | -| `AFTER_FILE_READ` | `"afterFileRead"` | MasterEvents.AFTER\_FILE\_READ | testplane-docs/.testplane/src/events/index.ts:92 | -| `AFTER_TESTS_READ` | `"afterTestsRead"` | MasterEvents.AFTER\_TESTS\_READ | testplane-docs/.testplane/src/events/index.ts:94 | -| `BEFORE_FILE_READ` | `"beforeFileRead"` | MasterEvents.BEFORE\_FILE\_READ | testplane-docs/.testplane/src/events/index.ts:91 | -| `BEGIN` | `"begin"` | "begin" | testplane-docs/.testplane/src/events/index.ts:53 | -| `CLI` | `"cli"` | "cli" | testplane-docs/.testplane/src/events/index.ts:51 | -| `END` | `"end"` | "end" | testplane-docs/.testplane/src/events/index.ts:54 | -| `ERROR` | `"err"` | "err" | testplane-docs/.testplane/src/events/index.ts:63 | -| `EXIT` | `"exit"` | "exit" | testplane-docs/.testplane/src/events/index.ts:23 | -| `INFO` | `"info"` | "info" | testplane-docs/.testplane/src/events/index.ts:61 | -| `INIT` | `"init"` | MasterEvents.INIT | testplane-docs/.testplane/src/events/index.ts:89 | -| `NEW_BROWSER` | `"newBrowser"` | "newBrowser" | testplane-docs/.testplane/src/events/index.ts:96 | -| `NEW_WORKER_PROCESS` | `"newWorkerProcess"` | "newWorkerProcess" | testplane-docs/.testplane/src/events/index.ts:31 | -| `RETRY` | `"retry"` | "retry" | testplane-docs/.testplane/src/events/index.ts:43 | -| `RUNNER_END` | `"endRunner"` | "endRunner" | testplane-docs/.testplane/src/events/index.ts:18 | -| `RUNNER_START` | `"startRunner"` | "startRunner" | testplane-docs/.testplane/src/events/index.ts:17 | -| `SESSION_END` | `"endSession"` | "endSession" | testplane-docs/.testplane/src/events/index.ts:21 | -| `SESSION_START` | `"startSession"` | "startSession" | testplane-docs/.testplane/src/events/index.ts:20 | -| `SUITE_BEGIN` | `"beginSuite"` | "beginSuite" | testplane-docs/.testplane/src/events/index.ts:33 | -| `SUITE_END` | `"endSuite"` | "endSuite" | testplane-docs/.testplane/src/events/index.ts:34 | -| `TEST_BEGIN` | `"beginTest"` | "beginTest" | testplane-docs/.testplane/src/events/index.ts:36 | -| `TEST_END` | `"endTest"` | "endTest" | testplane-docs/.testplane/src/events/index.ts:37 | -| `TEST_FAIL` | `"failTest"` | "failTest" | testplane-docs/.testplane/src/events/index.ts:40 | -| `TEST_PASS` | `"passTest"` | "passTest" | testplane-docs/.testplane/src/events/index.ts:39 | -| `TEST_PENDING` | `"pendingTest"` | "pendingTest" | testplane-docs/.testplane/src/events/index.ts:41 | -| `UPDATE_REFERENCE` | `"updateReference"` | "updateReference" | testplane-docs/.testplane/src/events/index.ts:98 | -| `WARNING` | `"warning"` | "warning" | testplane-docs/.testplane/src/events/index.ts:62 | - -#### Defined in - -testplane-docs/.testplane/src/base-testplane.ts:49 +| `AFTER_FILE_READ` | `"afterFileRead"` | MasterEvents.AFTER\_FILE\_READ | [.testplane/src/events/index.ts:92](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L92) | +| `AFTER_TESTS_READ` | `"afterTestsRead"` | MasterEvents.AFTER\_TESTS\_READ | [.testplane/src/events/index.ts:94](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L94) | +| `BEFORE_FILE_READ` | `"beforeFileRead"` | MasterEvents.BEFORE\_FILE\_READ | [.testplane/src/events/index.ts:91](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L91) | +| `BEGIN` | `"begin"` | "begin" | [.testplane/src/events/index.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L53) | +| `CLI` | `"cli"` | "cli" | [.testplane/src/events/index.ts:51](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L51) | +| `END` | `"end"` | "end" | [.testplane/src/events/index.ts:54](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L54) | +| `ERROR` | `"err"` | "err" | [.testplane/src/events/index.ts:63](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L63) | +| `EXIT` | `"exit"` | "exit" | [.testplane/src/events/index.ts:23](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L23) | +| `INFO` | `"info"` | "info" | [.testplane/src/events/index.ts:61](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L61) | +| `INIT` | `"init"` | MasterEvents.INIT | [.testplane/src/events/index.ts:89](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L89) | +| `NEW_BROWSER` | `"newBrowser"` | "newBrowser" | [.testplane/src/events/index.ts:96](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L96) | +| `NEW_WORKER_PROCESS` | `"newWorkerProcess"` | "newWorkerProcess" | [.testplane/src/events/index.ts:31](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L31) | +| `RETRY` | `"retry"` | "retry" | [.testplane/src/events/index.ts:43](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L43) | +| `RUNNER_END` | `"endRunner"` | "endRunner" | [.testplane/src/events/index.ts:18](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L18) | +| `RUNNER_START` | `"startRunner"` | "startRunner" | [.testplane/src/events/index.ts:17](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L17) | +| `SESSION_END` | `"endSession"` | "endSession" | [.testplane/src/events/index.ts:21](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L21) | +| `SESSION_START` | `"startSession"` | "startSession" | [.testplane/src/events/index.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L20) | +| `SUITE_BEGIN` | `"beginSuite"` | "beginSuite" | [.testplane/src/events/index.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L33) | +| `SUITE_END` | `"endSuite"` | "endSuite" | [.testplane/src/events/index.ts:34](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L34) | +| `TEST_BEGIN` | `"beginTest"` | "beginTest" | [.testplane/src/events/index.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L36) | +| `TEST_END` | `"endTest"` | "endTest" | [.testplane/src/events/index.ts:37](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L37) | +| `TEST_FAIL` | `"failTest"` | "failTest" | [.testplane/src/events/index.ts:40](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L40) | +| `TEST_PASS` | `"passTest"` | "passTest" | [.testplane/src/events/index.ts:39](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L39) | +| `TEST_PENDING` | `"pendingTest"` | "pendingTest" | [.testplane/src/events/index.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L41) | +| `UPDATE_REFERENCE` | `"updateReference"` | "updateReference" | [.testplane/src/events/index.ts:98](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L98) | +| `WARNING` | `"warning"` | "warning" | [.testplane/src/events/index.ts:62](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/index.ts#L62) | + +#### Defined in + +[.testplane/src/base-testplane.ts:49](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/base-testplane.ts#L49) ## Methods -### \[captureRejectionSymbol\]()? - -```ts -optional [captureRejectionSymbol]( - error, - event, ... - args): void -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `error` | `Error` | -| `event` | `string` | -| ...`args` | `any`[] | - -#### Returns - -`void` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:115 - -*** - -### addListener() - -```ts -addListener(eventName, listener): this -``` - -Alias for `emitter.on(eventName, listener)`. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| `listener` | (...`args`) => `void` | - -#### Returns - -`this` - -#### Since - -v0.1.26 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:475 - -*** - ### addTestToRun() ```ts @@ -287,72 +227,7 @@ addTestToRun(test, browserId): boolean #### Defined in -testplane-docs/.testplane/src/testplane.ts:152 - -*** - -### emit() - -```ts -emit(eventName, ...args): boolean -``` - -Synchronously calls each of the listeners registered for the event named`eventName`, in the order they were registered, passing the supplied arguments -to each. - -Returns `true` if the event had listeners, `false` otherwise. - -```js -const EventEmitter = require('events'); -const myEmitter = new EventEmitter(); - -// First listener -myEmitter.on('event', function firstListener() { - console.log('Helloooo! first listener'); -}); -// Second listener -myEmitter.on('event', function secondListener(arg1, arg2) { - console.log(`event with parameters ${arg1}, ${arg2} in second listener`); -}); -// Third listener -myEmitter.on('event', function thirdListener(...args) { - const parameters = args.join(', '); - console.log(`event with parameters ${parameters} in third listener`); -}); - -console.log(myEmitter.listeners('event')); - -myEmitter.emit('event', 1, 2, 3, 4, 5); - -// Prints: -// [ -// [Function: firstListener], -// [Function: secondListener], -// [Function: thirdListener] -// ] -// Helloooo! first listener -// event with parameters 1, 2 in second listener -// event with parameters 1, 2, 3, 4, 5 in third listener -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| ...`args` | `any`[] | - -#### Returns - -`boolean` - -#### Since - -v0.1.26 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:731 +[.testplane/src/testplane.ts:152](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L152) *** @@ -375,43 +250,7 @@ emitAndWait(event, ...args): Promise #### Defined in -testplane-docs/.testplane/src/events/async-emitter/index.ts:5 - -*** - -### eventNames() - -```ts -eventNames(): (string | symbol)[] -``` - -Returns an array listing the events for which the emitter has registered -listeners. The values in the array are strings or `Symbol`s. - -```js -const EventEmitter = require('events'); -const myEE = new EventEmitter(); -myEE.on('foo', () => {}); -myEE.on('bar', () => {}); - -const sym = Symbol('symbol'); -myEE.on(sym, () => {}); - -console.log(myEE.eventNames()); -// Prints: [ 'foo', 'bar', Symbol(symbol) ] -``` - -#### Returns - -(`string` \| `symbol`)[] - -#### Since - -v6.0.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:794 +[.testplane/src/events/async-emitter/index.ts:5](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/async-emitter/index.ts#L5) *** @@ -433,30 +272,7 @@ extendCli(parser): void #### Defined in -testplane-docs/.testplane/src/testplane.ts:75 - -*** - -### getMaxListeners() - -```ts -getMaxListeners(): number -``` - -Returns the current max listener value for the `EventEmitter` which is either -set by `emitter.setMaxListeners(n)` or defaults to [defaultMaxListeners](Testplane.mdx). - -#### Returns - -`number` - -#### Since - -v1.0.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:647 +[.testplane/src/testplane.ts:75](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L75) *** @@ -479,7 +295,7 @@ halt(err, timeout): void #### Defined in -testplane-docs/.testplane/src/testplane.ts:207 +[.testplane/src/testplane.ts:207](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L207) *** @@ -502,7 +318,7 @@ intercept(event, handler): this #### Defined in -testplane-docs/.testplane/src/base-testplane.ts:57 +[.testplane/src/base-testplane.ts:57](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/base-testplane.ts#L57) *** @@ -518,7 +334,7 @@ isFailed(): boolean #### Defined in -testplane-docs/.testplane/src/testplane.ts:187 +[.testplane/src/testplane.ts:187](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L187) *** @@ -534,195 +350,7 @@ isWorker(): boolean #### Defined in -testplane-docs/.testplane/src/testplane.ts:203 - -*** - -### listenerCount() - -```ts -listenerCount(eventName, listener?): number -``` - -Returns the number of listeners listening to the event named `eventName`. - -If `listener` is provided, it will return how many times the listener -is found in the list of the listeners of the event. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `eventName` | `string` \| `symbol` | The name of the event being listened for | -| `listener`? | `Function` | The event handler function | - -#### Returns - -`number` - -#### Since - -v3.2.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:741 - -*** - -### listeners() - -```ts -listeners(eventName): Function[] -``` - -Returns a copy of the array of listeners for the event named `eventName`. - -```js -server.on('connection', (stream) => { - console.log('someone connected!'); -}); -console.log(util.inspect(server.listeners('connection'))); -// Prints: [ [Function] ] -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | - -#### Returns - -`Function`[] - -#### Since - -v0.1.26 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:660 - -*** - -### off() - -```ts -off(eventName, listener): this -``` - -Alias for `emitter.removeListener()`. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| `listener` | (...`args`) => `void` | - -#### Returns - -`this` - -#### Since - -v10.0.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:620 - -*** - -### prependOnceListener() - -```ts -prependOnceListener(eventName, listener): this -``` - -Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this -listener is removed, and then invoked. - -```js -server.prependOnceListener('connection', (stream) => { - console.log('Ah, we have our first user!'); -}); -``` - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `eventName` | `string` \| `symbol` | The name of the event. | -| `listener` | (...`args`) => `void` | The callback function | - -#### Returns - -`this` - -#### Since - -v6.0.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:775 - -*** - -### rawListeners() - -```ts -rawListeners(eventName): Function[] -``` - -Returns a copy of the array of listeners for the event named `eventName`, -including any wrappers (such as those created by `.once()`). - -```js -const emitter = new EventEmitter(); -emitter.once('log', () => console.log('log once')); - -// Returns a new Array with a function `onceWrapper` which has a property -// `listener` which contains the original listener bound above -const listeners = emitter.rawListeners('log'); -const logFnWrapper = listeners[0]; - -// Logs "log once" to the console and does not unbind the `once` event -logFnWrapper.listener(); - -// Logs "log once" to the console and removes the listener -logFnWrapper(); - -emitter.on('log', () => console.log('log persistently')); -// Will return a new Array with a single function bound by `.on()` above -const newListeners = emitter.rawListeners('log'); - -// Logs "log persistently" twice -newListeners[0](); -emitter.emit('log'); -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | - -#### Returns - -`Function`[] - -#### Since - -v9.4.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:690 +[.testplane/src/testplane.ts:203](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L203) *** @@ -745,145 +373,7 @@ readTests(testPaths, __namedParameters): Promise #### Defined in -testplane-docs/.testplane/src/testplane.ts:156 - -*** - -### removeAllListeners() - -```ts -removeAllListeners(event?): this -``` - -Removes all listeners, or those of the specified `eventName`. - -It is bad practice to remove listeners added elsewhere in the code, -particularly when the `EventEmitter` instance was created by some other -component or module (e.g. sockets or file streams). - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `event`? | `string` \| `symbol` | - -#### Returns - -`this` - -#### Since - -v0.1.26 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:631 - -*** - -### removeListener() - -```ts -removeListener(eventName, listener): this -``` - -Removes the specified `listener` from the listener array for the event named`eventName`. - -```js -const callback = (stream) => { - console.log('someone connected!'); -}; -server.on('connection', callback); -// ... -server.removeListener('connection', callback); -``` - -`removeListener()` will remove, at most, one instance of a listener from the -listener array. If any single listener has been added multiple times to the -listener array for the specified `eventName`, then `removeListener()` must be -called multiple times to remove each instance. - -Once an event is emitted, all listeners attached to it at the -time of emitting are called in order. This implies that any`removeListener()` or `removeAllListeners()` calls _after_ emitting and _before_ the last listener finishes execution -will not remove them from`emit()` in progress. Subsequent events behave as expected. - -```js -const myEmitter = new MyEmitter(); - -const callbackA = () => { - console.log('A'); - myEmitter.removeListener('event', callbackB); -}; - -const callbackB = () => { - console.log('B'); -}; - -myEmitter.on('event', callbackA); - -myEmitter.on('event', callbackB); - -// callbackA removes listener callbackB but it will still be called. -// Internal listener array at time of emit [callbackA, callbackB] -myEmitter.emit('event'); -// Prints: -// A -// B - -// callbackB is now removed. -// Internal listener array [callbackA] -myEmitter.emit('event'); -// Prints: -// A -``` - -Because listeners are managed using an internal array, calling this will -change the position indices of any listener registered _after_ the listener -being removed. This will not impact the order in which listeners are called, -but it means that any copies of the listener array as returned by -the `emitter.listeners()` method will need to be recreated. - -When a single function has been added as a handler multiple times for a single -event (as in the example below), `removeListener()` will remove the most -recently added instance. In the example the `once('ping')`listener is removed: - -```js -const ee = new EventEmitter(); - -function pong() { - console.log('pong'); -} - -ee.on('ping', pong); -ee.once('ping', pong); -ee.removeListener('ping', pong); - -ee.emit('ping'); -ee.emit('ping'); -``` - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| `listener` | (...`args`) => `void` | - -#### Returns - -`this` - -#### Since - -v0.1.26 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:615 +[.testplane/src/testplane.ts:156](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L156) *** @@ -906,101 +396,7 @@ run(testPaths, __namedParameters): Promise #### Defined in -testplane-docs/.testplane/src/testplane.ts:89 - -*** - -### setMaxListeners() - -```ts -setMaxListeners(n): this -``` - -By default `EventEmitter`s will print a warning if more than `10` listeners are -added for a particular event. This is a useful default that helps finding -memory leaks. The `emitter.setMaxListeners()` method allows the limit to be -modified for this specific `EventEmitter` instance. The value can be set to`Infinity` (or `0`) to indicate an unlimited number of listeners. - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `n` | `number` | - -#### Returns - -`this` - -#### Since - -v0.3.5 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:641 - -*** - -### addAbortListener() - -```ts -static addAbortListener(signal, resource): Disposable -``` - -**`Experimental`** - -Listens once to the `abort` event on the provided `signal`. - -Listening to the `abort` event on abort signals is unsafe and may -lead to resource leaks since another third party with the signal can -call `e.stopImmediatePropagation()`. Unfortunately Node.js cannot change -this since it would violate the web standard. Additionally, the original -API makes it easy to forget to remove listeners. - -This API allows safely using `AbortSignal`s in Node.js APIs by solving these -two issues by listening to the event such that `stopImmediatePropagation` does -not prevent the listener from running. - -Returns a disposable so that it may be unsubscribed from more easily. - -```js -import { addAbortListener } from 'node:events'; - -function example(signal) { - let disposable; - try { - signal.addEventListener('abort', (e) => e.stopImmediatePropagation()); - disposable = addAbortListener(signal, (e) => { - // Do something when signal is aborted. - }); - } finally { - disposable?.[Symbol.dispose](); - } -} -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `signal` | `AbortSignal` | -| `resource` | (`event`) => `void` | - -#### Returns - -`Disposable` - -Disposable that removes the `abort` listener. - -#### Since - -v18.18.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:394 +[.testplane/src/testplane.ts:89](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L89) *** @@ -1029,414 +425,4 @@ static create(this, config?): T #### Defined in -testplane-docs/.testplane/src/base-testplane.ts:21 - -*** - -### getEventListeners() - -```ts -static getEventListeners(emitter, name): Function[] -``` - -Returns a copy of the array of listeners for the event named `eventName`. - -For `EventEmitter`s this behaves exactly the same as calling `.listeners` on -the emitter. - -For `EventTarget`s this is the only way to get the event listeners for the -event target. This is useful for debugging and diagnostic purposes. - -```js -const { getEventListeners, EventEmitter } = require('events'); - -{ - const ee = new EventEmitter(); - const listener = () => console.log('Events are fun'); - ee.on('foo', listener); - getEventListeners(ee, 'foo'); // [listener] -} -{ - const et = new EventTarget(); - const listener = () => console.log('Events are fun'); - et.addEventListener('foo', listener); - getEventListeners(et, 'foo'); // [listener] -} -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `emitter` | `EventEmitter` \| `_DOMEventTarget` | -| `name` | `string` \| `symbol` | - -#### Returns - -`Function`[] - -#### Since - -v15.2.0, v14.17.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:312 - -*** - -### getMaxListeners() - -```ts -static getMaxListeners(emitter): number -``` - -Returns the currently set max amount of listeners. - -For `EventEmitter`s this behaves exactly the same as calling `.getMaxListeners` on -the emitter. - -For `EventTarget`s this is the only way to get the max event listeners for the -event target. If the number of event handlers on a single EventTarget exceeds -the max set, the EventTarget will print a warning. - -```js -import { getMaxListeners, setMaxListeners, EventEmitter } from 'node:events'; - -{ - const ee = new EventEmitter(); - console.log(getMaxListeners(ee)); // 10 - setMaxListeners(11, ee); - console.log(getMaxListeners(ee)); // 11 -} -{ - const et = new EventTarget(); - console.log(getMaxListeners(et)); // 10 - setMaxListeners(11, et); - console.log(getMaxListeners(et)); // 11 -} -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `emitter` | `EventEmitter` \| `_DOMEventTarget` | - -#### Returns - -`number` - -#### Since - -v18.17.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:341 - -*** - -### ~~listenerCount()~~ - -```ts -static listenerCount(emitter, eventName): number -``` - -A class method that returns the number of listeners for the given `eventName`registered on the given `emitter`. - -```js -const { EventEmitter, listenerCount } = require('events'); -const myEmitter = new EventEmitter(); -myEmitter.on('event', () => {}); -myEmitter.on('event', () => {}); -console.log(listenerCount(myEmitter, 'event')); -// Prints: 2 -``` - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `emitter` | `EventEmitter` | The emitter to query | -| `eventName` | `string` \| `symbol` | The event name | - -#### Returns - -`number` - -#### Since - -v0.9.12 - -#### Deprecated - -Since v3.2.0 - Use `listenerCount` instead. - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:284 - -*** - -### on() - -```ts -static on( - emitter, - eventName, -options?): AsyncIterableIterator -``` - -```js -const { on, EventEmitter } = require('events'); - -(async () => { - const ee = new EventEmitter(); - - // Emit later on - process.nextTick(() => { - ee.emit('foo', 'bar'); - ee.emit('foo', 42); - }); - - for await (const event of on(ee, 'foo')) { - // The execution of this inner block is synchronous and it - // processes one event at a time (even with await). Do not use - // if concurrent execution is required. - console.log(event); // prints ['bar'] [42] - } - // Unreachable here -})(); -``` - -Returns an `AsyncIterator` that iterates `eventName` events. It will throw -if the `EventEmitter` emits `'error'`. It removes all listeners when -exiting the loop. The `value` returned by each iteration is an array -composed of the emitted event arguments. - -An `AbortSignal` can be used to cancel waiting on events: - -```js -const { on, EventEmitter } = require('events'); -const ac = new AbortController(); - -(async () => { - const ee = new EventEmitter(); - - // Emit later on - process.nextTick(() => { - ee.emit('foo', 'bar'); - ee.emit('foo', 42); - }); - - for await (const event of on(ee, 'foo', { signal: ac.signal })) { - // The execution of this inner block is synchronous and it - // processes one event at a time (even with await). Do not use - // if concurrent execution is required. - console.log(event); // prints ['bar'] [42] - } - // Unreachable here -})(); - -process.nextTick(() => ac.abort()); -``` - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `emitter` | `EventEmitter` | - | -| `eventName` | `string` | The name of the event being listened for | -| `options`? | `StaticEventEmitterOptions` | - | - -#### Returns - -`AsyncIterableIterator`\<`any`\> - -that iterates `eventName` events emitted by the `emitter` - -#### Since - -v13.6.0, v12.16.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:263 - -*** - -### once() - -#### once(emitter, eventName, options) - -```ts -static once( - emitter, - eventName, -options?): Promise -``` - -Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given -event or that is rejected if the `EventEmitter` emits `'error'` while waiting. -The `Promise` will resolve with an array of all the arguments emitted to the -given event. - -This method is intentionally generic and works with the web platform [EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface, which has no special`'error'` event -semantics and does not listen to the `'error'` event. - -```js -const { once, EventEmitter } = require('events'); - -async function run() { - const ee = new EventEmitter(); - - process.nextTick(() => { - ee.emit('myevent', 42); - }); - - const [value] = await once(ee, 'myevent'); - console.log(value); - - const err = new Error('kaboom'); - process.nextTick(() => { - ee.emit('error', err); - }); - - try { - await once(ee, 'myevent'); - } catch (err) { - console.log('error happened', err); - } -} - -run(); -``` - -The special handling of the `'error'` event is only used when `events.once()`is used to wait for another event. If `events.once()` is used to wait for the -'`error'` event itself, then it is treated as any other kind of event without -special handling: - -```js -const { EventEmitter, once } = require('events'); - -const ee = new EventEmitter(); - -once(ee, 'error') - .then(([err]) => console.log('ok', err.message)) - .catch((err) => console.log('error', err.message)); - -ee.emit('error', new Error('boom')); - -// Prints: ok boom -``` - -An `AbortSignal` can be used to cancel waiting for the event: - -```js -const { EventEmitter, once } = require('events'); - -const ee = new EventEmitter(); -const ac = new AbortController(); - -async function foo(emitter, event, signal) { - try { - await once(emitter, event, { signal }); - console.log('event emitted!'); - } catch (error) { - if (error.name === 'AbortError') { - console.error('Waiting for the event was canceled!'); - } else { - console.error('There was an error', error.message); - } - } -} - -foo(ee, 'foo', ac.signal); -ac.abort(); // Abort waiting for the event -ee.emit('foo'); // Prints: Waiting for the event was canceled! -``` - -##### Parameters - -| Parameter | Type | -| ------ | ------ | -| `emitter` | `_NodeEventTarget` | -| `eventName` | `string` \| `symbol` | -| `options`? | `StaticEventEmitterOptions` | - -##### Returns - -`Promise`\<`any`[]\> - -##### Since - -v11.13.0, v10.16.0 - -##### Defined in - -testplane/node\_modules/@types/node/events.d.ts:199 - -#### once(emitter, eventName, options) - -```ts -static once( - emitter, - eventName, -options?): Promise -``` - -##### Parameters - -| Parameter | Type | -| ------ | ------ | -| `emitter` | `_DOMEventTarget` | -| `eventName` | `string` | -| `options`? | `StaticEventEmitterOptions` | - -##### Returns - -`Promise`\<`any`[]\> - -##### Defined in - -testplane/node\_modules/@types/node/events.d.ts:204 - -*** - -### setMaxListeners() - -```ts -static setMaxListeners(n?, ...eventTargets?): void -``` - -```js -const { - setMaxListeners, - EventEmitter -} = require('events'); - -const target = new EventTarget(); -const emitter = new EventEmitter(); - -setMaxListeners(5, target, emitter); -``` - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `n`? | `number` | A non-negative number. The maximum number of listeners per `EventTarget` event. | -| ...`eventTargets`? | (`EventEmitter` \| `_DOMEventTarget`)[] | - | - -#### Returns - -`void` - -#### Since - -v15.4.0 - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:359 +[.testplane/src/base-testplane.ts:21](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/base-testplane.ts#L21) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/TestplaneInternalError.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/TestplaneInternalError.mdx index aa54e1e..f421a62 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/TestplaneInternalError.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/classes/TestplaneInternalError.mdx @@ -30,43 +30,12 @@ new TestplaneInternalError(message): TestplaneInternalError #### Defined in -testplane-docs/.testplane/src/errors/testplane-internal-error.ts:2 +[.testplane/src/errors/testplane-internal-error.ts:2](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/errors/testplane-internal-error.ts#L2) ## Properties -| Property | Modifier | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | ------ | -| `message` | `public` | `string` | - | `Error.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `public` | `string` | - | `Error.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `stack?` | `public` | `string` | - | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | -| `prepareStackTrace?` | `static` | (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | Optional override for formatting stack traces **See** https://v8.dev/docs/stack-trace-api#customizing-stack-traces | `Error.prepareStackTrace` | testplane/node\_modules/@types/node/globals.d.ts:27 | -| `stackTraceLimit` | `static` | `number` | - | `Error.stackTraceLimit` | testplane/node\_modules/@types/node/globals.d.ts:29 | - -## Methods - -### captureStackTrace() - -```ts -static captureStackTrace(targetObject, constructorOpt?): void -``` - -Create .stack property on a target object - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `targetObject` | `object` | -| `constructorOpt`? | `Function` | - -#### Returns - -`void` - -#### Inherited from - -`Error.captureStackTrace` - -#### Defined in - -testplane/node\_modules/@types/node/globals.d.ts:20 +| Property | Type | Inherited from | Defined in | +| ------ | ------ | ------ | ------ | +| `message` | `string` | `Error.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `string` | `Error.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `stack?` | `string` | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AfterFileReadData.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AfterFileReadData.mdx index fc4002a..5265fcd 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AfterFileReadData.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AfterFileReadData.mdx @@ -10,7 +10,7 @@ | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | -| `browser` | `string` | - | testplane-docs/.testplane/src/types/index.ts:176 | -| `file` | `string` | - | testplane-docs/.testplane/src/types/index.ts:177 | -| ~~`hermione`~~ | [`GlobalHelper`](GlobalHelper.mdx) | **Deprecated** Use `testplane` instead | testplane-docs/.testplane/src/types/index.ts:175 | -| `testplane` | [`GlobalHelper`](GlobalHelper.mdx) | - | testplane-docs/.testplane/src/types/index.ts:171 | +| `browser` | `string` | - | [.testplane/src/types/index.ts:176](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L176) | +| `file` | `string` | - | [.testplane/src/types/index.ts:177](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L177) | +| ~~`hermione`~~ | [`GlobalHelper`](GlobalHelper.mdx) | **Deprecated** Use `testplane` instead | [.testplane/src/types/index.ts:175](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L175) | +| `testplane` | [`GlobalHelper`](GlobalHelper.mdx) | - | [.testplane/src/types/index.ts:171](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L171) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewOpts.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewOpts.mdx index 1722f00..0482b24 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewOpts.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewOpts.mdx @@ -10,13 +10,13 @@ | Property | Type | Default value | Description | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | ------ | -| `allowViewportOverflow?` | `boolean` | `false` | Disables check that element is outside of the viewport left, top, right or bottom bounds. **Remarks** By default Testplane throws an error if element is outside the viewport bounds. This option disables check that element is outside of the viewport left, top, right or bottom bounds. And in this case if browser option [compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `false`, then only visible part of the element will be captured. But if [compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `true` (default), then in the resulting screenshot will appear the whole element with not visible parts outside of the bottom bounds of viewport. | `Partial.allowViewportOverflow` | testplane-docs/.testplane/src/config/types.ts:45 | -| `antialiasingTolerance?` | `number` | `4` | Minimum difference in brightness (zero by default) between the darkest/lightest pixel (which is adjacent to the antialiasing pixel) and theirs adjacent pixels. Overrides config [browsers](https://github.com/gemini-testing/testplane#browsers).[antialiasingTolerance](https://github.com/gemini-testing/testplane#antialiasingTolerance) value. **Remarks** Read more about this option in [looks-same](https://github.com/gemini-testing/looks-same#comparing-images-with-ignoring-antialiasing) | - | testplane-docs/.testplane/src/browser/commands/types.ts:26 | -| `captureElementFromTop?` | `boolean` | `true` | Ability to set capture element from the top area or from current position. **Remarks** In the first case viewport will be scrolled to the top of the element. | `Partial.captureElementFromTop` | testplane-docs/.testplane/src/config/types.ts:33 | -| `compositeImage?` | `boolean` | `true` | Allows testing of regions which bottom bounds are outside of a viewport height. Overrides config [browsers](https://github.com/gemini-testing/testplane#browsers).[compositeImage](https://github.com/gemini-testing/testplane#compositeImage) value. **Remarks** In the resulting screenshot the area which fits the viewport bounds will be joined with the area which is outside of the viewport height. | - | testplane-docs/.testplane/src/browser/commands/types.ts:36 | -| `disableAnimation?` | `boolean` | `true` | Ability to disable animations and transitions while making a screenshot **Remarks** Usefull when you capture screenshot of a page, having animations and transitions. Iframe animations are only disabled when using webdriver protocol. | - | testplane-docs/.testplane/src/browser/commands/types.ts:67 | -| `ignoreDiffPixelCount?` | `number` \| \`$\{number\}%\` | `0` | Ability to ignore a small amount of different pixels to classify screenshots as being "identical" **Examples** `5` `'1.5%'` **Remarks** Useful when you encounter a few pixels difference that cannot be eliminated using the tolerance and antialiasingTolerance settings. **Note** This should be considered a last resort and only used in small number of cases where necessary. | - | testplane-docs/.testplane/src/browser/commands/types.ts:82 | -| `ignoreElements?` | `string` \| `string`[] | `[]` | DOM-node selectors which will be ignored (painted with a black rectangle) when comparing images. | `Partial.ignoreElements` | testplane-docs/.testplane/src/config/types.ts:24 | -| `screenshotDelay?` | `number` | `0` | Allows to specify a delay (in milliseconds) before making any screenshot. Overrides config [browsers](https://github.com/gemini-testing/testplane#browsers).[screenshotDelay](https://github.com/gemini-testing/testplane#screenshotDelay) value. **Remarks** This is useful when the page has elements which are animated or if you do not want to screen a scrollbar. | - | testplane-docs/.testplane/src/browser/commands/types.ts:46 | -| `selectorToScroll?` | `string` | `undefined` | Ability to set DOM-node selector which should be scroll when the captured element does not completely fit on the screen. **Remarks** Useful when you capture the modal (popup). In this case a duplicate of the modal appears on the screenshot. That happens because we scroll the page using `window` selector, which scroll only the background of the modal, and the modal itself remains in place. Default value is `undefined` (it means scroll relative to `window`). Works only when `compositeImage` is `true` (default). | - | testplane-docs/.testplane/src/browser/commands/types.ts:57 | -| `tolerance?` | `number` | `2.3` | Maximum allowed difference between colors. Overrides config [browsers](https://github.com/gemini-testing/testplane#browsers).[tolerance](https://github.com/gemini-testing/testplane#tolerance) value. **Remarks** Indicates maximum allowed CIEDE2000 difference between colors. Used only in non-strict mode. Increasing global default is not recommended, prefer changing tolerance for particular suites or states instead. By default it's 2.3 which should be enough for the most cases. | - | testplane-docs/.testplane/src/browser/commands/types.ts:16 | +| `allowViewportOverflow?` | `boolean` | `false` | Disables check that element is outside of the viewport left, top, right or bottom bounds. **Remarks** By default Testplane throws an error if element is outside the viewport bounds. This option disables check that element is outside of the viewport left, top, right or bottom bounds. And in this case if browser option [compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `false`, then only visible part of the element will be captured. But if [compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `true` (default), then in the resulting screenshot will appear the whole element with not visible parts outside of the bottom bounds of viewport. | `Partial.allowViewportOverflow` | [.testplane/src/config/types.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L45) | +| `antialiasingTolerance?` | `number` | `4` | Minimum difference in brightness (zero by default) between the darkest/lightest pixel (which is adjacent to the antialiasing pixel) and theirs adjacent pixels. Overrides config [browsers](https://github.com/gemini-testing/testplane#browsers).[antialiasingTolerance](https://github.com/gemini-testing/testplane#antialiasingTolerance) value. **Remarks** Read more about this option in [looks-same](https://github.com/gemini-testing/looks-same#comparing-images-with-ignoring-antialiasing) | - | [.testplane/src/browser/commands/types.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/types.ts#L26) | +| `captureElementFromTop?` | `boolean` | `true` | Ability to set capture element from the top area or from current position. **Remarks** In the first case viewport will be scrolled to the top of the element. | `Partial.captureElementFromTop` | [.testplane/src/config/types.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L33) | +| `compositeImage?` | `boolean` | `true` | Allows testing of regions which bottom bounds are outside of a viewport height. Overrides config [browsers](https://github.com/gemini-testing/testplane#browsers).[compositeImage](https://github.com/gemini-testing/testplane#compositeImage) value. **Remarks** In the resulting screenshot the area which fits the viewport bounds will be joined with the area which is outside of the viewport height. | - | [.testplane/src/browser/commands/types.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/types.ts#L36) | +| `disableAnimation?` | `boolean` | `true` | Ability to disable animations and transitions while making a screenshot **Remarks** Usefull when you capture screenshot of a page, having animations and transitions. Iframe animations are only disabled when using webdriver protocol. | - | [.testplane/src/browser/commands/types.ts:67](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/types.ts#L67) | +| `ignoreDiffPixelCount?` | `number` \| \`$\{number\}%\` | `0` | Ability to ignore a small amount of different pixels to classify screenshots as being "identical" **Examples** `5` `'1.5%'` **Remarks** Useful when you encounter a few pixels difference that cannot be eliminated using the tolerance and antialiasingTolerance settings. **Note** This should be considered a last resort and only used in small number of cases where necessary. | - | [.testplane/src/browser/commands/types.ts:82](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/types.ts#L82) | +| `ignoreElements?` | `string` \| `string`[] | `[]` | DOM-node selectors which will be ignored (painted with a black rectangle) when comparing images. | `Partial.ignoreElements` | [.testplane/src/config/types.ts:24](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L24) | +| `screenshotDelay?` | `number` | `0` | Allows to specify a delay (in milliseconds) before making any screenshot. Overrides config [browsers](https://github.com/gemini-testing/testplane#browsers).[screenshotDelay](https://github.com/gemini-testing/testplane#screenshotDelay) value. **Remarks** This is useful when the page has elements which are animated or if you do not want to screen a scrollbar. | - | [.testplane/src/browser/commands/types.ts:46](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/types.ts#L46) | +| `selectorToScroll?` | `string` | `undefined` | Ability to set DOM-node selector which should be scroll when the captured element does not completely fit on the screen. **Remarks** Useful when you capture the modal (popup). In this case a duplicate of the modal appears on the screenshot. That happens because we scroll the page using `window` selector, which scroll only the background of the modal, and the modal itself remains in place. Default value is `undefined` (it means scroll relative to `window`). Works only when `compositeImage` is `true` (default). | - | [.testplane/src/browser/commands/types.ts:57](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/types.ts#L57) | +| `tolerance?` | `number` | `2.3` | Maximum allowed difference between colors. Overrides config [browsers](https://github.com/gemini-testing/testplane#browsers).[tolerance](https://github.com/gemini-testing/testplane#tolerance) value. **Remarks** Indicates maximum allowed CIEDE2000 difference between colors. Used only in non-strict mode. Increasing global default is not recommended, prefer changing tolerance for particular suites or states instead. By default it's 2.3 which should be enough for the most cases. | - | [.testplane/src/browser/commands/types.ts:16](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/browser/commands/types.ts#L16) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewOptsConfig.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewOptsConfig.mdx index 4fc018a..a7f36a5 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewOptsConfig.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewOptsConfig.mdx @@ -6,6 +6,6 @@ | Property | Type | Default value | Description | Defined in | | ------ | ------ | ------ | ------ | ------ | -| `allowViewportOverflow` | `boolean` | `false` | Disables check that element is outside of the viewport left, top, right or bottom bounds. **Remarks** By default Testplane throws an error if element is outside the viewport bounds. This option disables check that element is outside of the viewport left, top, right or bottom bounds. And in this case if browser option [compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `false`, then only visible part of the element will be captured. But if [compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `true` (default), then in the resulting screenshot will appear the whole element with not visible parts outside of the bottom bounds of viewport. | testplane-docs/.testplane/src/config/types.ts:45 | -| `captureElementFromTop` | `boolean` | `true` | Ability to set capture element from the top area or from current position. **Remarks** In the first case viewport will be scrolled to the top of the element. | testplane-docs/.testplane/src/config/types.ts:33 | -| `ignoreElements` | `string` \| `string`[] | `[]` | DOM-node selectors which will be ignored (painted with a black rectangle) when comparing images. | testplane-docs/.testplane/src/config/types.ts:24 | +| `allowViewportOverflow` | `boolean` | `false` | Disables check that element is outside of the viewport left, top, right or bottom bounds. **Remarks** By default Testplane throws an error if element is outside the viewport bounds. This option disables check that element is outside of the viewport left, top, right or bottom bounds. And in this case if browser option [compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `false`, then only visible part of the element will be captured. But if [compositeImage](https://github.com/gemini-testing/testplane#compositeimage) set to `true` (default), then in the resulting screenshot will appear the whole element with not visible parts outside of the bottom bounds of viewport. | [.testplane/src/config/types.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L45) | +| `captureElementFromTop` | `boolean` | `true` | Ability to set capture element from the top area or from current position. **Remarks** In the first case viewport will be scrolled to the top of the element. | [.testplane/src/config/types.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L33) | +| `ignoreElements` | `string` \| `string`[] | `[]` | DOM-node selectors which will be ignored (painted with a black rectangle) when comparing images. | [.testplane/src/config/types.ts:24](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L24) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewResultDiff.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewResultDiff.mdx index 0846dbf..c94c0d3 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewResultDiff.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewResultDiff.mdx @@ -6,14 +6,14 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `currImg` | [`ImageInfo`](ImageInfo.mdx) | testplane-docs/.testplane/src/types/index.ts:83 | -| `diffBuffer?` | `ArrayBuffer` | testplane-docs/.testplane/src/types/index.ts:84 | -| `diffClusters` | `CoordBounds`[] | testplane-docs/.testplane/src/types/index.ts:85 | -| `diffOpts` | [`DiffOptions`](DiffOptions.mdx) | testplane-docs/.testplane/src/types/index.ts:86 | -| `diffRatio` | `number` | testplane-docs/.testplane/src/types/index.ts:93 | -| `differentPixels` | `number` | testplane-docs/.testplane/src/types/index.ts:92 | -| `message` | `string` | testplane-docs/.testplane/src/types/index.ts:87 | -| `name` | `"ImageDiffError"` | testplane-docs/.testplane/src/types/index.ts:88 | -| `refImg` | [`RefImageInfo`](RefImageInfo.mdx) | testplane-docs/.testplane/src/types/index.ts:89 | -| `stack` | `string` | testplane-docs/.testplane/src/types/index.ts:90 | -| `stateName` | `string` | testplane-docs/.testplane/src/types/index.ts:91 | +| `currImg` | [`ImageInfo`](ImageInfo.mdx) | [.testplane/src/types/index.ts:83](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L83) | +| `diffBuffer?` | `ArrayBuffer` | [.testplane/src/types/index.ts:84](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L84) | +| `diffClusters` | `CoordBounds`[] | [.testplane/src/types/index.ts:85](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L85) | +| `diffOpts` | [`DiffOptions`](DiffOptions.mdx) | [.testplane/src/types/index.ts:86](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L86) | +| `diffRatio` | `number` | [.testplane/src/types/index.ts:93](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L93) | +| `differentPixels` | `number` | [.testplane/src/types/index.ts:92](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L92) | +| `message` | `string` | [.testplane/src/types/index.ts:87](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L87) | +| `name` | `"ImageDiffError"` | [.testplane/src/types/index.ts:88](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L88) | +| `refImg` | [`RefImageInfo`](RefImageInfo.mdx) | [.testplane/src/types/index.ts:89](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L89) | +| `stack` | `string` | [.testplane/src/types/index.ts:90](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L90) | +| `stateName` | `string` | [.testplane/src/types/index.ts:91](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L91) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewResultNoRefImage.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewResultNoRefImage.mdx index a6a86f0..c4e57e0 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewResultNoRefImage.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewResultNoRefImage.mdx @@ -6,9 +6,9 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `currImg` | [`ImageInfo`](ImageInfo.mdx) | testplane-docs/.testplane/src/types/index.ts:97 | -| `message` | `string` | testplane-docs/.testplane/src/types/index.ts:98 | -| `name` | `"NoRefImageError"` | testplane-docs/.testplane/src/types/index.ts:99 | -| `refImg` | [`RefImageInfo`](RefImageInfo.mdx) | testplane-docs/.testplane/src/types/index.ts:100 | -| `stack` | `string` | testplane-docs/.testplane/src/types/index.ts:101 | -| `stateName` | `string` | testplane-docs/.testplane/src/types/index.ts:102 | +| `currImg` | [`ImageInfo`](ImageInfo.mdx) | [.testplane/src/types/index.ts:97](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L97) | +| `message` | `string` | [.testplane/src/types/index.ts:98](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L98) | +| `name` | `"NoRefImageError"` | [.testplane/src/types/index.ts:99](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L99) | +| `refImg` | [`RefImageInfo`](RefImageInfo.mdx) | [.testplane/src/types/index.ts:100](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L100) | +| `stack` | `string` | [.testplane/src/types/index.ts:101](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L101) | +| `stateName` | `string` | [.testplane/src/types/index.ts:102](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L102) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewResultSuccess.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewResultSuccess.mdx index 66fbcf6..0b5cea8 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewResultSuccess.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/AssertViewResultSuccess.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `refImg` | [`RefImageInfo`](RefImageInfo.mdx) | testplane-docs/.testplane/src/types/index.ts:78 | -| `stateName` | `string` | testplane-docs/.testplane/src/types/index.ts:79 | +| `refImg` | [`RefImageInfo`](RefImageInfo.mdx) | [.testplane/src/types/index.ts:78](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L78) | +| `stateName` | `string` | [.testplane/src/types/index.ts:79](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L79) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BeforeFileReadData.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BeforeFileReadData.mdx index 72559ac..ad47023 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BeforeFileReadData.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BeforeFileReadData.mdx @@ -10,8 +10,8 @@ | Property | Type | Description | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | -| `browser` | `string` | - | [`AfterFileReadData`](AfterFileReadData.mdx).`browser` | testplane-docs/.testplane/src/types/index.ts:176 | -| `file` | `string` | - | [`AfterFileReadData`](AfterFileReadData.mdx).`file` | testplane-docs/.testplane/src/types/index.ts:177 | -| ~~`hermione`~~ | [`GlobalHelper`](GlobalHelper.mdx) | **Deprecated** Use `testplane` instead | [`AfterFileReadData`](AfterFileReadData.mdx).`hermione` | testplane-docs/.testplane/src/types/index.ts:175 | -| `testParser` | `TestParserAPI` | - | - | testplane-docs/.testplane/src/types/index.ts:181 | -| `testplane` | [`GlobalHelper`](GlobalHelper.mdx) | - | [`AfterFileReadData`](AfterFileReadData.mdx).`testplane` | testplane-docs/.testplane/src/types/index.ts:171 | +| `browser` | `string` | - | [`AfterFileReadData`](AfterFileReadData.mdx).`browser` | [.testplane/src/types/index.ts:176](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L176) | +| `file` | `string` | - | [`AfterFileReadData`](AfterFileReadData.mdx).`file` | [.testplane/src/types/index.ts:177](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L177) | +| ~~`hermione`~~ | [`GlobalHelper`](GlobalHelper.mdx) | **Deprecated** Use `testplane` instead | [`AfterFileReadData`](AfterFileReadData.mdx).`hermione` | [.testplane/src/types/index.ts:175](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L175) | +| `testParser` | `TestParserAPI` | - | - | [.testplane/src/types/index.ts:181](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L181) | +| `testplane` | [`GlobalHelper`](GlobalHelper.mdx) | - | [`AfterFileReadData`](AfterFileReadData.mdx).`testplane` | [.testplane/src/types/index.ts:171](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L171) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BrowserHistory.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BrowserHistory.mdx index e60e2fe..3070b03 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BrowserHistory.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BrowserHistory.mdx @@ -6,4 +6,4 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `runGroup` | (`callstack`: `Callstack`, `name`: `string`, `fn`: () => `unknown`) => `Promise`\<`unknown`\> | testplane-docs/.testplane/src/types/index.ts:185 | +| `runGroup` | (`callstack`: `Callstack`, `name`: `string`, `fn`: () => `unknown`) => `Promise`\<`unknown`\> | [.testplane/src/types/index.ts:185](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L185) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BrowserInfo.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BrowserInfo.mdx index cd0c869..4197243 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BrowserInfo.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BrowserInfo.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `browserId` | `string` | testplane-docs/.testplane/src/types/index.ts:32 | -| `sessionId` | `string` | testplane-docs/.testplane/src/types/index.ts:33 | +| `browserId` | `string` | [.testplane/src/types/index.ts:32](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L32) | +| `sessionId` | `string` | [.testplane/src/types/index.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L33) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BuildDiffOptsConfig.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BuildDiffOptsConfig.mdx index af5bdf1..8640873 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BuildDiffOptsConfig.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/BuildDiffOptsConfig.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `ignoreAntialiasing` | `boolean` | testplane-docs/.testplane/src/config/types.ts:14 | -| `ignoreCaret` | `boolean` | testplane-docs/.testplane/src/config/types.ts:15 | +| `ignoreAntialiasing` | `boolean` | [.testplane/src/config/types.ts:14](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L14) | +| `ignoreCaret` | `boolean` | [.testplane/src/config/types.ts:15](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L15) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/CommandHistory.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/CommandHistory.mdx index 6be0bf8..6d92994 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/CommandHistory.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/CommandHistory.mdx @@ -6,10 +6,10 @@ | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | -| `a` | `unknown`[] | Arguments: array of passed arguments | testplane-docs/.testplane/src/types/index.ts:111 | -| `c` | [`CommandHistory`](CommandHistory.mdx)[] | Children: array of children commands | testplane-docs/.testplane/src/types/index.ts:121 | -| `d` | `number` | Duration | testplane-docs/.testplane/src/types/index.ts:117 | -| `n` | `string` | Name: command name | testplane-docs/.testplane/src/types/index.ts:109 | -| `s` | `"b"` \| `"e"` | Scope: scope of execution (browser or element) | testplane-docs/.testplane/src/types/index.ts:119 | -| `te` | `number` | Time end | testplane-docs/.testplane/src/types/index.ts:115 | -| `ts` | `number` | Time start | testplane-docs/.testplane/src/types/index.ts:113 | +| `a` | `unknown`[] | Arguments: array of passed arguments | [.testplane/src/types/index.ts:111](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L111) | +| `c` | [`CommandHistory`](CommandHistory.mdx)[] | Children: array of children commands | [.testplane/src/types/index.ts:121](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L121) | +| `d` | `number` | Duration | [.testplane/src/types/index.ts:117](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L117) | +| `n` | `string` | Name: command name | [.testplane/src/types/index.ts:109](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L109) | +| `s` | `"b"` \| `"e"` | Scope: scope of execution (browser or element) | [.testplane/src/types/index.ts:119](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L119) | +| `te` | `number` | Time end | [.testplane/src/types/index.ts:115](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L115) | +| `ts` | `number` | Time start | [.testplane/src/types/index.ts:113](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L113) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/CommonConfig.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/CommonConfig.mdx index 662b570..edf685c 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/CommonConfig.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/CommonConfig.mdx @@ -10,72 +10,72 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `antialiasingTolerance` | `number` | testplane-docs/.testplane/src/config/types.ts:133 | -| `assertViewOpts` | [`AssertViewOptsConfig`](AssertViewOptsConfig.mdx) | testplane-docs/.testplane/src/config/types.ts:136 | -| `automationProtocol` | `"webdriver"` \| `"devtools"` | testplane-docs/.testplane/src/config/types.ts:97 | -| `baseUrl` | `string` | testplane-docs/.testplane/src/config/types.ts:104 | -| `buildDiffOpts` | [`BuildDiffOptsConfig`](BuildDiffOptsConfig.mdx) | testplane-docs/.testplane/src/config/types.ts:135 | -| `calibrate` | `boolean` | testplane-docs/.testplane/src/config/types.ts:127 | -| `compareOpts` | [`CompareOptsConfig`](CompareOptsConfig.mdx) | testplane-docs/.testplane/src/config/types.ts:134 | -| `compositeImage` | `boolean` | testplane-docs/.testplane/src/config/types.ts:128 | -| `configPath?` | `string` | testplane-docs/.testplane/src/config/types.ts:96 | -| `desiredCapabilities` | `null` \| `Capabilities` | testplane-docs/.testplane/src/config/types.ts:98 | -| `devServer` | \{ `args`: `string`[]; `command`: `null` \| `string`; `cwd`: `null` \| `string`; `env`: `Record`\<`string`, `string`\>; `logs`: `boolean`; `readinessProbe`: `ReadinessProbe`; \} | testplane-docs/.testplane/src/config/types.ts:170 | -| `devServer.args` | `string`[] | testplane-docs/.testplane/src/config/types.ts:174 | -| `devServer.command` | `null` \| `string` | testplane-docs/.testplane/src/config/types.ts:171 | -| `devServer.cwd` | `null` \| `string` | testplane-docs/.testplane/src/config/types.ts:172 | -| `devServer.env` | `Record`\<`string`, `string`\> | testplane-docs/.testplane/src/config/types.ts:173 | -| `devServer.logs` | `boolean` | testplane-docs/.testplane/src/config/types.ts:175 | -| `devServer.readinessProbe` | `ReadinessProbe` | testplane-docs/.testplane/src/config/types.ts:176 | -| `expectOpts` | [`ExpectOptsConfig`](ExpectOptsConfig.mdx) | testplane-docs/.testplane/src/config/types.ts:137 | -| `gridUrl` | `string` | testplane-docs/.testplane/src/config/types.ts:103 | -| `headers` | `null` \| `Record`\<`string`, `string`\> | testplane-docs/.testplane/src/config/types.ts:142 | -| `headless` | `null` \| `boolean` \| `"old"` \| `"new"` | testplane-docs/.testplane/src/config/types.ts:153 | -| `httpTimeout` | `number` | testplane-docs/.testplane/src/config/types.ts:109 | -| `isolation` | `boolean` | testplane-docs/.testplane/src/config/types.ts:154 | -| `key` | `null` \| `string` | testplane-docs/.testplane/src/config/types.ts:149 | -| `lastFailed` | \{ `input`: `string` \| `string`[]; `only`: `boolean`; `output`: `string`; \} | testplane-docs/.testplane/src/config/types.ts:156 | -| `lastFailed.input` | `string` \| `string`[] | testplane-docs/.testplane/src/config/types.ts:158 | -| `lastFailed.only` | `boolean` | testplane-docs/.testplane/src/config/types.ts:157 | -| `lastFailed.output` | `string` | testplane-docs/.testplane/src/config/types.ts:159 | -| `meta` | \{\} | testplane-docs/.testplane/src/config/types.ts:138 | -| `openAndWaitOpts` | \{ `failOnNetworkError`: `boolean`; `ignoreNetworkErrorsPatterns`: (`string` \| `RegExp`)[]; `timeout`: `number`; `waitNetworkIdle`: `boolean`; `waitNetworkIdleTimeout`: `number`; \} | testplane-docs/.testplane/src/config/types.ts:162 | -| `openAndWaitOpts.failOnNetworkError` | `boolean` | testplane-docs/.testplane/src/config/types.ts:166 | -| `openAndWaitOpts.ignoreNetworkErrorsPatterns` | (`string` \| `RegExp`)[] | testplane-docs/.testplane/src/config/types.ts:167 | -| `openAndWaitOpts.timeout?` | `number` | testplane-docs/.testplane/src/config/types.ts:163 | -| `openAndWaitOpts.waitNetworkIdle` | `boolean` | testplane-docs/.testplane/src/config/types.ts:164 | -| `openAndWaitOpts.waitNetworkIdleTimeout` | `number` | testplane-docs/.testplane/src/config/types.ts:165 | -| `orientation` | `null` \| `"landscape"` \| `"portrait"` | testplane-docs/.testplane/src/config/types.ts:140 | -| `pageLoadTimeout` | `null` \| `number` | testplane-docs/.testplane/src/config/types.ts:111 | -| `region` | `null` \| `string` | testplane-docs/.testplane/src/config/types.ts:150 | -| `resetCursor` | `boolean` | testplane-docs/.testplane/src/config/types.ts:141 | -| `retry` | `number` | testplane-docs/.testplane/src/config/types.ts:107 | -| `saveHistoryMode` | `"all"` \| `"none"` \| `"onlyFailed"` | testplane-docs/.testplane/src/config/types.ts:117 | -| `screenshotDelay` | `number` | testplane-docs/.testplane/src/config/types.ts:131 | -| `screenshotMode` | `"auto"` \| `"fullpage"` \| `"viewport"` | testplane-docs/.testplane/src/config/types.ts:130 | -| `screenshotPath` | `null` \| `string` | testplane-docs/.testplane/src/config/types.ts:125 | -| `sessionEnvFlags` | `Record`\< \| `"isW3C"` \| `"isAndroid"` \| `"isMobile"` \| `"isIOS"` \| `"isSauce"` \| `"isSeleniumStandalone"` \| `"isChrome"`, `boolean`\> | testplane-docs/.testplane/src/config/types.ts:99 | -| `sessionQuitTimeout` | `null` \| `number` | testplane-docs/.testplane/src/config/types.ts:113 | -| `sessionRequestTimeout` | `null` \| `number` | testplane-docs/.testplane/src/config/types.ts:112 | -| `sessionsPerBrowser` | `number` | testplane-docs/.testplane/src/config/types.ts:105 | -| `strictSSL` | `null` \| `boolean` | testplane-docs/.testplane/src/config/types.ts:147 | -| `strictTestsOrder` | `boolean` | testplane-docs/.testplane/src/config/types.ts:129 | -| `system` | [`SystemConfig`](SystemConfig.mdx) | testplane-docs/.testplane/src/config/types.ts:152 | -| `takeScreenshotOnFails` | \{ `assertViewFail`: `boolean`; `testFail`: `boolean`; \} | testplane-docs/.testplane/src/config/types.ts:118 | -| `takeScreenshotOnFails.assertViewFail` | `boolean` | testplane-docs/.testplane/src/config/types.ts:120 | -| `takeScreenshotOnFails.testFail` | `boolean` | testplane-docs/.testplane/src/config/types.ts:119 | -| `takeScreenshotOnFailsMode` | `"fullpage"` \| `"viewport"` | testplane-docs/.testplane/src/config/types.ts:123 | -| `takeScreenshotOnFailsTimeout` | `null` \| `number` | testplane-docs/.testplane/src/config/types.ts:122 | -| `testTimeout` | `null` \| `number` | testplane-docs/.testplane/src/config/types.ts:114 | -| `testsPerSession` | `number` | testplane-docs/.testplane/src/config/types.ts:106 | -| `tolerance` | `number` | testplane-docs/.testplane/src/config/types.ts:132 | -| `transformRequest` | (`req`: `RequestOptions`) => `RequestOptions` | testplane-docs/.testplane/src/config/types.ts:144 | -| `transformResponse` | (`res`: `Response`, `req`: `RequestOptions`) => `Response` | testplane-docs/.testplane/src/config/types.ts:145 | -| `urlHttpTimeout` | `null` \| `number` | testplane-docs/.testplane/src/config/types.ts:110 | -| `user` | `null` \| `string` | testplane-docs/.testplane/src/config/types.ts:148 | -| `waitInterval` | `number` | testplane-docs/.testplane/src/config/types.ts:116 | -| `waitTimeout` | `number` | testplane-docs/.testplane/src/config/types.ts:115 | -| `windowSize` | `null` \| `string` \| \{ `height`: `number`; `width`: `number`; \} | testplane-docs/.testplane/src/config/types.ts:139 | +| `antialiasingTolerance` | `number` | [.testplane/src/config/types.ts:133](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L133) | +| `assertViewOpts` | [`AssertViewOptsConfig`](AssertViewOptsConfig.mdx) | [.testplane/src/config/types.ts:136](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L136) | +| `automationProtocol` | `"webdriver"` \| `"devtools"` | [.testplane/src/config/types.ts:97](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L97) | +| `baseUrl` | `string` | [.testplane/src/config/types.ts:104](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L104) | +| `buildDiffOpts` | [`BuildDiffOptsConfig`](BuildDiffOptsConfig.mdx) | [.testplane/src/config/types.ts:135](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L135) | +| `calibrate` | `boolean` | [.testplane/src/config/types.ts:127](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L127) | +| `compareOpts` | [`CompareOptsConfig`](CompareOptsConfig.mdx) | [.testplane/src/config/types.ts:134](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L134) | +| `compositeImage` | `boolean` | [.testplane/src/config/types.ts:128](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L128) | +| `configPath?` | `string` | [.testplane/src/config/types.ts:96](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L96) | +| `desiredCapabilities` | `null` \| `Capabilities` | [.testplane/src/config/types.ts:98](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L98) | +| `devServer` | \{ `args`: `string`[]; `command`: `null` \| `string`; `cwd`: `null` \| `string`; `env`: `Record`\<`string`, `string`\>; `logs`: `boolean`; `readinessProbe`: `ReadinessProbe`; \} | [.testplane/src/config/types.ts:170](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L170) | +| `devServer.args` | `string`[] | [.testplane/src/config/types.ts:174](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L174) | +| `devServer.command` | `null` \| `string` | [.testplane/src/config/types.ts:171](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L171) | +| `devServer.cwd` | `null` \| `string` | [.testplane/src/config/types.ts:172](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L172) | +| `devServer.env` | `Record`\<`string`, `string`\> | [.testplane/src/config/types.ts:173](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L173) | +| `devServer.logs` | `boolean` | [.testplane/src/config/types.ts:175](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L175) | +| `devServer.readinessProbe` | `ReadinessProbe` | [.testplane/src/config/types.ts:176](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L176) | +| `expectOpts` | [`ExpectOptsConfig`](ExpectOptsConfig.mdx) | [.testplane/src/config/types.ts:137](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L137) | +| `gridUrl` | `string` | [.testplane/src/config/types.ts:103](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L103) | +| `headers` | `null` \| `Record`\<`string`, `string`\> | [.testplane/src/config/types.ts:142](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L142) | +| `headless` | `null` \| `boolean` \| `"old"` \| `"new"` | [.testplane/src/config/types.ts:153](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L153) | +| `httpTimeout` | `number` | [.testplane/src/config/types.ts:109](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L109) | +| `isolation` | `boolean` | [.testplane/src/config/types.ts:154](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L154) | +| `key` | `null` \| `string` | [.testplane/src/config/types.ts:149](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L149) | +| `lastFailed` | \{ `input`: `string` \| `string`[]; `only`: `boolean`; `output`: `string`; \} | [.testplane/src/config/types.ts:156](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L156) | +| `lastFailed.input` | `string` \| `string`[] | [.testplane/src/config/types.ts:158](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L158) | +| `lastFailed.only` | `boolean` | [.testplane/src/config/types.ts:157](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L157) | +| `lastFailed.output` | `string` | [.testplane/src/config/types.ts:159](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L159) | +| `meta` | \{\} | [.testplane/src/config/types.ts:138](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L138) | +| `openAndWaitOpts` | \{ `failOnNetworkError`: `boolean`; `ignoreNetworkErrorsPatterns`: (`string` \| `RegExp`)[]; `timeout`: `number`; `waitNetworkIdle`: `boolean`; `waitNetworkIdleTimeout`: `number`; \} | [.testplane/src/config/types.ts:162](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L162) | +| `openAndWaitOpts.failOnNetworkError` | `boolean` | [.testplane/src/config/types.ts:166](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L166) | +| `openAndWaitOpts.ignoreNetworkErrorsPatterns` | (`string` \| `RegExp`)[] | [.testplane/src/config/types.ts:167](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L167) | +| `openAndWaitOpts.timeout?` | `number` | [.testplane/src/config/types.ts:163](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L163) | +| `openAndWaitOpts.waitNetworkIdle` | `boolean` | [.testplane/src/config/types.ts:164](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L164) | +| `openAndWaitOpts.waitNetworkIdleTimeout` | `number` | [.testplane/src/config/types.ts:165](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L165) | +| `orientation` | `null` \| `"landscape"` \| `"portrait"` | [.testplane/src/config/types.ts:140](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L140) | +| `pageLoadTimeout` | `null` \| `number` | [.testplane/src/config/types.ts:111](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L111) | +| `region` | `null` \| `string` | [.testplane/src/config/types.ts:150](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L150) | +| `resetCursor` | `boolean` | [.testplane/src/config/types.ts:141](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L141) | +| `retry` | `number` | [.testplane/src/config/types.ts:107](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L107) | +| `saveHistoryMode` | `"all"` \| `"none"` \| `"onlyFailed"` | [.testplane/src/config/types.ts:117](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L117) | +| `screenshotDelay` | `number` | [.testplane/src/config/types.ts:131](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L131) | +| `screenshotMode` | `"auto"` \| `"fullpage"` \| `"viewport"` | [.testplane/src/config/types.ts:130](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L130) | +| `screenshotPath` | `null` \| `string` | [.testplane/src/config/types.ts:125](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L125) | +| `sessionEnvFlags` | `Record`\< \| `"isW3C"` \| `"isAndroid"` \| `"isMobile"` \| `"isIOS"` \| `"isSauce"` \| `"isSeleniumStandalone"` \| `"isChrome"`, `boolean`\> | [.testplane/src/config/types.ts:99](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L99) | +| `sessionQuitTimeout` | `null` \| `number` | [.testplane/src/config/types.ts:113](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L113) | +| `sessionRequestTimeout` | `null` \| `number` | [.testplane/src/config/types.ts:112](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L112) | +| `sessionsPerBrowser` | `number` | [.testplane/src/config/types.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L105) | +| `strictSSL` | `null` \| `boolean` | [.testplane/src/config/types.ts:147](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L147) | +| `strictTestsOrder` | `boolean` | [.testplane/src/config/types.ts:129](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L129) | +| `system` | [`SystemConfig`](SystemConfig.mdx) | [.testplane/src/config/types.ts:152](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L152) | +| `takeScreenshotOnFails` | \{ `assertViewFail`: `boolean`; `testFail`: `boolean`; \} | [.testplane/src/config/types.ts:118](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L118) | +| `takeScreenshotOnFails.assertViewFail` | `boolean` | [.testplane/src/config/types.ts:120](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L120) | +| `takeScreenshotOnFails.testFail` | `boolean` | [.testplane/src/config/types.ts:119](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L119) | +| `takeScreenshotOnFailsMode` | `"fullpage"` \| `"viewport"` | [.testplane/src/config/types.ts:123](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L123) | +| `takeScreenshotOnFailsTimeout` | `null` \| `number` | [.testplane/src/config/types.ts:122](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L122) | +| `testTimeout` | `null` \| `number` | [.testplane/src/config/types.ts:114](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L114) | +| `testsPerSession` | `number` | [.testplane/src/config/types.ts:106](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L106) | +| `tolerance` | `number` | [.testplane/src/config/types.ts:132](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L132) | +| `transformRequest` | (`req`: `RequestOptions`) => `RequestOptions` | [.testplane/src/config/types.ts:144](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L144) | +| `transformResponse` | (`res`: `Response`, `req`: `RequestOptions`) => `Response` | [.testplane/src/config/types.ts:145](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L145) | +| `urlHttpTimeout` | `null` \| `number` | [.testplane/src/config/types.ts:110](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L110) | +| `user` | `null` \| `string` | [.testplane/src/config/types.ts:148](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L148) | +| `waitInterval` | `number` | [.testplane/src/config/types.ts:116](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L116) | +| `waitTimeout` | `number` | [.testplane/src/config/types.ts:115](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L115) | +| `windowSize` | `null` \| `string` \| \{ `height`: `number`; `width`: `number`; \} | [.testplane/src/config/types.ts:139](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L139) | ## Methods @@ -97,7 +97,7 @@ prepareBrowser(browser): null | void #### Defined in -testplane-docs/.testplane/src/config/types.ts:124 +[.testplane/src/config/types.ts:124](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L124) *** @@ -119,7 +119,7 @@ screenshotsDir(test): string #### Defined in -testplane-docs/.testplane/src/config/types.ts:126 +[.testplane/src/config/types.ts:126](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L126) *** @@ -143,4 +143,4 @@ shouldRetry(testInfo): null | boolean #### Defined in -testplane-docs/.testplane/src/config/types.ts:108 +[.testplane/src/config/types.ts:108](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L108) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/CompareOptsConfig.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/CompareOptsConfig.mdx index cd6964b..9fdd13d 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/CompareOptsConfig.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/CompareOptsConfig.mdx @@ -6,6 +6,6 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `clustersSize` | `number` | testplane-docs/.testplane/src/config/types.ts:9 | -| `shouldCluster` | `boolean` | testplane-docs/.testplane/src/config/types.ts:8 | -| `stopOnFirstFail` | `boolean` | testplane-docs/.testplane/src/config/types.ts:10 | +| `clustersSize` | `number` | [.testplane/src/config/types.ts:9](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L9) | +| `shouldCluster` | `boolean` | [.testplane/src/config/types.ts:8](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L8) | +| `stopOnFirstFail` | `boolean` | [.testplane/src/config/types.ts:10](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L10) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/DiffOptions.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/DiffOptions.mdx index df740a3..4254892 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/DiffOptions.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/DiffOptions.mdx @@ -8,18 +8,8 @@ ## Properties -| Property | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | -| `antialiasingTolerance?` | `number` | Sometimes the antialiasing algorithm can work incorrectly due to some features of the browser rendering engine. Use the option antialiasingTolerance to make the algorithm less strict. With this option you can specify the minimum difference in brightness (zero by default) between the darkest/lightest pixel (which is adjacent to the antialiasing pixel) and theirs adjacent pixels. We recommend that you don't increase this value above 10. If you need to increase more than 10 then this is definitely not antialiasing. | `LooksSameOptions.antialiasingTolerance` | testplane/node\_modules/looks-same/index.d.ts:139 | -| `clustersSize?` | `number` | Radius for every diff cluster | `LooksSameOptions.clustersSize` | testplane/node\_modules/looks-same/index.d.ts:152 | -| `createDiffImage?` | `boolean` | If you need both to compare images and create diff image | `LooksSameOptions.createDiffImage` | testplane/node\_modules/looks-same/index.d.ts:156 | -| `current` | `string` | - | - | testplane-docs/.testplane/src/types/index.ts:72 | -| `diffColor` | `string` | - | - | testplane-docs/.testplane/src/types/index.ts:74 | -| `ignoreAntialiasing?` | `boolean` | Some images has difference while comparing because of antialiasing. These diffs will be ignored by default. You can use ignoreAntialiasing option with false value to disable ignoring such diffs. In that way antialiased pixels will be marked as diffs. | `LooksSameOptions.ignoreAntialiasing` | testplane/node\_modules/looks-same/index.d.ts:130 | -| `ignoreCaret?` | `boolean` | Text caret in text input elements it is a pain for visual regression tasks, because it is always blinks. These diffs will be ignored by default. You can use `ignoreCaret` option with `false` value to disable ignoring such diffs. In that way text caret will be marked as diffs. | `LooksSameOptions.ignoreCaret` | testplane/node\_modules/looks-same/index.d.ts:124 | -| `pixelRatio?` | `number` | Some devices can have different proportion between physical and logical screen resolutions also known as pixel ratio. Default value for this proportion is 1. This param also affects the comparison result, so it can be set manually with pixelRatio option. | `LooksSameOptions.pixelRatio` | testplane/node\_modules/looks-same/index.d.ts:118 | -| `reference` | `string` | - | - | testplane-docs/.testplane/src/types/index.ts:73 | -| `shouldCluster?` | `boolean` | Responsible for diff bounds clustering | `LooksSameOptions.shouldCluster` | testplane/node\_modules/looks-same/index.d.ts:148 | -| `stopOnFirstFail?` | `boolean` | Responsible for diff area which will be returned when comparing images. Diff bounds will contain the whole diff if stopOnFirstFail is false and only first diff pixel - otherwise. | `LooksSameOptions.stopOnFirstFail` | testplane/node\_modules/looks-same/index.d.ts:144 | -| `strict?` | `boolean` | By default, it will detect only noticeable differences. If you wish to detect any difference, use strict options. | `LooksSameOptions.strict` | testplane/node\_modules/looks-same/index.d.ts:108 | -| `tolerance?` | `number` | You can also adjust the ΔE value that will be treated as error in non-strict mode. | `LooksSameOptions.tolerance` | testplane/node\_modules/looks-same/index.d.ts:112 | +| Property | Type | Defined in | +| ------ | ------ | ------ | +| `current` | `string` | [.testplane/src/types/index.ts:72](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L72) | +| `diffColor` | `string` | [.testplane/src/types/index.ts:74](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L74) | +| `reference` | `string` | [.testplane/src/types/index.ts:73](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L73) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ErrorDetails.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ErrorDetails.mdx index f5eeb87..4823100 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ErrorDetails.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ErrorDetails.mdx @@ -6,6 +6,6 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `data?` | `unknown` | testplane-docs/.testplane/src/types/index.ts:53 | -| `filePath` | `string` | testplane-docs/.testplane/src/types/index.ts:54 | -| `title` | `string` | testplane-docs/.testplane/src/types/index.ts:52 | +| `data?` | `unknown` | [.testplane/src/types/index.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L53) | +| `filePath` | `string` | [.testplane/src/types/index.ts:54](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L54) | +| `title` | `string` | [.testplane/src/types/index.ts:52](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L52) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ExecutionThreadToolCtx.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ExecutionThreadToolCtx.mdx index 47daa55..e8c4c21 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ExecutionThreadToolCtx.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ExecutionThreadToolCtx.mdx @@ -6,9 +6,9 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `assertViewResults` | \{ `add`: (`result`) => `void`; `get`: () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[]; `hasFails`: () => `boolean`; `hasState`: (`stateName`) => `boolean`; `toRawObject`: () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[]; \} | testplane-docs/.testplane/src/types/index.ts:125 | -| `assertViewResults.add` | (`result`: [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)) => `void` | testplane-docs/.testplane/src/types/index.ts:126 | -| `assertViewResults.get` | () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | testplane-docs/.testplane/src/types/index.ts:130 | -| `assertViewResults.hasFails` | () => `boolean` | testplane-docs/.testplane/src/types/index.ts:127 | -| `assertViewResults.hasState` | (`stateName`: `string`) => `boolean` | testplane-docs/.testplane/src/types/index.ts:128 | -| `assertViewResults.toRawObject` | () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | testplane-docs/.testplane/src/types/index.ts:129 | +| `assertViewResults` | \{ `add`: (`result`) => `void`; `get`: () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[]; `hasFails`: () => `boolean`; `hasState`: (`stateName`) => `boolean`; `toRawObject`: () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[]; \} | [.testplane/src/types/index.ts:125](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L125) | +| `assertViewResults.add` | (`result`: [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)) => `void` | [.testplane/src/types/index.ts:126](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L126) | +| `assertViewResults.get` | () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | [.testplane/src/types/index.ts:130](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L130) | +| `assertViewResults.hasFails` | () => `boolean` | [.testplane/src/types/index.ts:127](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L127) | +| `assertViewResults.hasState` | (`stateName`: `string`) => `boolean` | [.testplane/src/types/index.ts:128](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L128) | +| `assertViewResults.toRawObject` | () => [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | [.testplane/src/types/index.ts:129](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L129) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ExpectOptsConfig.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ExpectOptsConfig.mdx index 8ad07b9..7fedb69 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ExpectOptsConfig.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ExpectOptsConfig.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `interval` | `number` | testplane-docs/.testplane/src/config/types.ts:50 | -| `wait` | `number` | testplane-docs/.testplane/src/config/types.ts:49 | +| `interval` | `number` | [.testplane/src/config/types.ts:50](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L50) | +| `wait` | `number` | [.testplane/src/config/types.ts:49](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L49) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/GlobalHelper.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/GlobalHelper.mdx index 14fb338..5df7c73 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/GlobalHelper.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/GlobalHelper.mdx @@ -6,9 +6,9 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `also` | `AlsoController` | testplane-docs/.testplane/src/types/index.ts:165 | -| `browser` | (`browserName`: `string`) => `BrowserVersionController` | testplane-docs/.testplane/src/types/index.ts:166 | -| `config` | `ConfigController` | testplane-docs/.testplane/src/types/index.ts:167 | -| `ctx` | [`TestplaneCtx`](TestplaneCtx.mdx) | testplane-docs/.testplane/src/types/index.ts:162 | -| `only` | `OnlyController` | testplane-docs/.testplane/src/types/index.ts:164 | -| `skip` | `SkipController` | testplane-docs/.testplane/src/types/index.ts:163 | +| `also` | `AlsoController` | [.testplane/src/types/index.ts:165](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L165) | +| `browser` | (`browserName`: `string`) => `BrowserVersionController` | [.testplane/src/types/index.ts:166](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L166) | +| `config` | `ConfigController` | [.testplane/src/types/index.ts:167](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L167) | +| `ctx` | [`TestplaneCtx`](TestplaneCtx.mdx) | [.testplane/src/types/index.ts:162](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L162) | +| `only` | `OnlyController` | [.testplane/src/types/index.ts:164](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L164) | +| `skip` | `SkipController` | [.testplane/src/types/index.ts:163](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L163) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ImageBase64.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ImageBase64.mdx index 48a744d..9ecfa74 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ImageBase64.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ImageBase64.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `base64` | `string` | testplane-docs/.testplane/src/types/index.ts:47 | -| `size` | [`ImageSize`](ImageSize.mdx) | testplane-docs/.testplane/src/types/index.ts:48 | +| `base64` | `string` | [.testplane/src/types/index.ts:47](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L47) | +| `size` | [`ImageSize`](ImageSize.mdx) | [.testplane/src/types/index.ts:48](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L48) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ImageInfo.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ImageInfo.mdx index 5391b1e..7e062ee 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ImageInfo.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ImageInfo.mdx @@ -10,5 +10,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `path` | `string` | testplane-docs/.testplane/src/types/index.ts:63 | -| `size` | [`ImageSize`](ImageSize.mdx) | testplane-docs/.testplane/src/types/index.ts:64 | +| `path` | `string` | [.testplane/src/types/index.ts:63](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L63) | +| `size` | [`ImageSize`](ImageSize.mdx) | [.testplane/src/types/index.ts:64](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L64) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ImageSize.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ImageSize.mdx index 9b34c8f..a9e9b00 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ImageSize.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ImageSize.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `height` | `number` | testplane-docs/.testplane/src/types/index.ts:43 | -| `width` | `number` | testplane-docs/.testplane/src/types/index.ts:42 | +| `height` | `number` | [.testplane/src/types/index.ts:43](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L43) | +| `width` | `number` | [.testplane/src/types/index.ts:42](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L42) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/InterceptData.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/InterceptData.mdx index 3cb78fc..6f1dbe8 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/InterceptData.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/InterceptData.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `data?` | [`Test`](../classes/Test.mdx) | testplane-docs/.testplane/src/events/types.ts:6 | -| `event?` | [`InterceptedEvent`](../type-aliases/InterceptedEvent.mdx) | testplane-docs/.testplane/src/events/types.ts:5 | +| `data?` | [`Test`](../classes/Test.mdx) | [.testplane/src/events/types.ts:6](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/types.ts#L6) | +| `event?` | [`InterceptedEvent`](../type-aliases/InterceptedEvent.mdx) | [.testplane/src/events/types.ts:5](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/types.ts#L5) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/MochaOpts.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/MochaOpts.mdx index 33e2cb8..cec6040 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/MochaOpts.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/MochaOpts.mdx @@ -6,6 +6,6 @@ | Property | Type | Description | Defined in | | ------ | ------ | ------ | ------ | -| `grep?` | `string` \| `RegExp` | string or regexp to filter tests with. | testplane-docs/.testplane/src/config/types.ts:61 | -| `slow?` | `number` | milliseconds to wait before considering a test slow. | testplane-docs/.testplane/src/config/types.ts:55 | -| `timeout?` | `number` | timeout in milliseconds or time string like '1s'. | testplane-docs/.testplane/src/config/types.ts:58 | +| `grep?` | `string` \| `RegExp` | string or regexp to filter tests with. | [.testplane/src/config/types.ts:61](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L61) | +| `slow?` | `number` | milliseconds to wait before considering a test slow. | [.testplane/src/config/types.ts:55](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L55) | +| `timeout?` | `number` | timeout in milliseconds or time string like '1s'. | [.testplane/src/config/types.ts:58](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L58) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ReadTestsOpts.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ReadTestsOpts.mdx index 88f4fbc..ca07eb1 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ReadTestsOpts.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/ReadTestsOpts.mdx @@ -10,12 +10,12 @@ | Property | Type | Inherited from | Defined in | | ------ | ------ | ------ | ------ | -| `browsers` | `string`[] | `Pick.browsers` | testplane-docs/.testplane/src/testplane.ts:23 | -| `grep` | `RegExp` | `Pick.grep` | testplane-docs/.testplane/src/testplane.ts:25 | -| `ignore` | `string` \| `string`[] | - | testplane-docs/.testplane/src/testplane.ts:49 | -| `replMode` | \{ `beforeTest`: `boolean`; `enabled`: `boolean`; `onFail`: `boolean`; \} | `Pick.replMode` | testplane-docs/.testplane/src/testplane.ts:33 | -| `replMode.beforeTest` | `boolean` | - | testplane-docs/.testplane/src/testplane.ts:35 | -| `replMode.enabled` | `boolean` | - | testplane-docs/.testplane/src/testplane.ts:34 | -| `replMode.onFail` | `boolean` | - | testplane-docs/.testplane/src/testplane.ts:36 | -| `sets` | `string`[] | `Pick.sets` | testplane-docs/.testplane/src/testplane.ts:24 | -| `silent` | `boolean` | - | testplane-docs/.testplane/src/testplane.ts:48 | +| `browsers` | `string`[] | `Pick.browsers` | [.testplane/src/testplane.ts:23](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L23) | +| `grep` | `RegExp` | `Pick.grep` | [.testplane/src/testplane.ts:25](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L25) | +| `ignore` | `string` \| `string`[] | - | [.testplane/src/testplane.ts:49](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L49) | +| `replMode` | \{ `beforeTest`: `boolean`; `enabled`: `boolean`; `onFail`: `boolean`; \} | `Pick.replMode` | [.testplane/src/testplane.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L33) | +| `replMode.beforeTest` | `boolean` | - | [.testplane/src/testplane.ts:35](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L35) | +| `replMode.enabled` | `boolean` | - | [.testplane/src/testplane.ts:34](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L34) | +| `replMode.onFail` | `boolean` | - | [.testplane/src/testplane.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L36) | +| `sets` | `string`[] | `Pick.sets` | [.testplane/src/testplane.ts:24](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L24) | +| `silent` | `boolean` | - | [.testplane/src/testplane.ts:48](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L48) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/RefImageInfo.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/RefImageInfo.mdx index 3c77d75..4a275d4 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/RefImageInfo.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/RefImageInfo.mdx @@ -10,6 +10,6 @@ | Property | Type | Inherited from | Defined in | | ------ | ------ | ------ | ------ | -| `path` | `string` | [`ImageInfo`](ImageInfo.mdx).`path` | testplane-docs/.testplane/src/types/index.ts:63 | -| `relativePath` | `string` | - | testplane-docs/.testplane/src/types/index.ts:68 | -| `size` | [`ImageSize`](ImageSize.mdx) | [`ImageInfo`](ImageInfo.mdx).`size` | testplane-docs/.testplane/src/types/index.ts:64 | +| `path` | `string` | [`ImageInfo`](ImageInfo.mdx).`path` | [.testplane/src/types/index.ts:63](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L63) | +| `relativePath` | `string` | - | [.testplane/src/types/index.ts:68](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L68) | +| `size` | [`ImageSize`](ImageSize.mdx) | [`ImageInfo`](ImageInfo.mdx).`size` | [.testplane/src/types/index.ts:64](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L64) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/RootSuite.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/RootSuite.mdx index ce72ca0..aeed1a1 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/RootSuite.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/RootSuite.mdx @@ -10,8 +10,8 @@ | Property | Modifier | Type | Default value | Overrides | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | ------ | ------ | -| `parent` | `public` | `null` \| [`Suite`](../classes/Suite.mdx) | `null` | - | [`Suite`](../classes/Suite.mdx).`parent` | testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:6 | -| `root` | `public` | `true` | `undefined` | [`Suite`](../classes/Suite.mdx).[`root`](../classes/Suite.mdx#root) | - | testplane-docs/.testplane/src/types/index.ts:28 | +| `parent` | `public` | `null` \| [`Suite`](../classes/Suite.mdx) | `null` | - | [`Suite`](../classes/Suite.mdx).`parent` | [.testplane/src/test-reader/test-object/test-object.ts:6](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L6) | +| `root` | `public` | `true` | `undefined` | [`Suite`](../classes/Suite.mdx).[`root`](../classes/Suite.mdx#root) | - | [.testplane/src/types/index.ts:28](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L28) | ## Accessors @@ -31,7 +31,7 @@ get afterEachHooks(): Hook[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:95 +[.testplane/src/test-reader/test-object/suite.ts:95](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L95) *** @@ -51,7 +51,7 @@ get beforeEachHooks(): Hook[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:91 +[.testplane/src/test-reader/test-object/suite.ts:91](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L91) *** @@ -81,7 +81,7 @@ set browserId(id): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:93 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:93](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L93) *** @@ -111,7 +111,7 @@ set browserVersion(version): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:101 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:101](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L101) *** @@ -141,7 +141,7 @@ set disabled(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:69 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:69](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L69) *** @@ -161,7 +161,7 @@ get file(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:45 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L45) *** @@ -181,7 +181,7 @@ get hasBrowserVersionOverwritten(): boolean #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:105 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L105) *** @@ -201,7 +201,7 @@ get id(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:41 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L41) *** @@ -231,7 +231,7 @@ set pending(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:53 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L53) *** @@ -261,7 +261,7 @@ set silentSkip(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:77 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:77](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L77) *** @@ -291,7 +291,7 @@ set skipReason(reason): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:61 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:61](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L61) *** @@ -311,7 +311,7 @@ get suites(): Suite[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:83 +[.testplane/src/test-reader/test-object/suite.ts:83](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L83) *** @@ -331,7 +331,7 @@ get tests(): Test[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:87 +[.testplane/src/test-reader/test-object/suite.ts:87](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L87) *** @@ -361,7 +361,7 @@ set timeout(timeout): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:85 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:85](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L85) *** @@ -381,7 +381,7 @@ get title(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:16 +[.testplane/src/test-reader/test-object/test-object.ts:16](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L16) ## Methods @@ -407,7 +407,7 @@ addAfterEachHook(hook): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:41 +[.testplane/src/test-reader/test-object/suite.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L41) *** @@ -433,7 +433,7 @@ addBeforeEachHook(hook): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:37 +[.testplane/src/test-reader/test-object/suite.ts:37](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L37) *** @@ -459,7 +459,7 @@ addSuite(suite): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:29 +[.testplane/src/test-reader/test-object/suite.ts:29](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L29) *** @@ -485,7 +485,7 @@ addTest(test): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:33 +[.testplane/src/test-reader/test-object/suite.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L33) *** @@ -511,7 +511,7 @@ afterEach(fn): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:49 +[.testplane/src/test-reader/test-object/suite.ts:49](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L49) *** @@ -537,7 +537,7 @@ assign(src): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:20 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L20) *** @@ -563,7 +563,7 @@ beforeEach(fn): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:45 +[.testplane/src/test-reader/test-object/suite.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L45) *** @@ -583,7 +583,7 @@ disable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:31 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:31](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L31) *** @@ -609,7 +609,7 @@ eachTest(cb): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:60 +[.testplane/src/test-reader/test-object/suite.ts:60](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L60) *** @@ -629,7 +629,7 @@ enable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:36 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L36) *** @@ -655,7 +655,7 @@ filterTests(cb): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:70 +[.testplane/src/test-reader/test-object/suite.ts:70](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L70) *** @@ -675,7 +675,7 @@ fullTitle(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:30 +[.testplane/src/test-reader/test-object/test-object.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L30) *** @@ -695,7 +695,7 @@ getTests(): Test[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/suite.ts:65 +[.testplane/src/test-reader/test-object/suite.ts:65](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/suite.ts#L65) *** @@ -721,7 +721,7 @@ skip(__namedParameters): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:26 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L26) *** @@ -741,4 +741,4 @@ titlePath(): string[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:20 +[.testplane/src/test-reader/test-object/test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L20) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/RunOpts.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/RunOpts.mdx index 7cf2653..7ce00c5 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/RunOpts.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/RunOpts.mdx @@ -6,17 +6,17 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `browsers` | `string`[] | testplane-docs/.testplane/src/testplane.ts:23 | -| `devtools` | `boolean` | testplane-docs/.testplane/src/testplane.ts:38 | -| `grep` | `RegExp` | testplane-docs/.testplane/src/testplane.ts:25 | -| `inspectMode` | \{ `inspect`: `boolean`; `inspectBrk`: `boolean`; \} | testplane-docs/.testplane/src/testplane.ts:28 | -| `inspectMode.inspect` | `boolean` | testplane-docs/.testplane/src/testplane.ts:29 | -| `inspectMode.inspectBrk` | `boolean` | testplane-docs/.testplane/src/testplane.ts:30 | -| `replMode` | \{ `beforeTest`: `boolean`; `enabled`: `boolean`; `onFail`: `boolean`; \} | testplane-docs/.testplane/src/testplane.ts:33 | -| `replMode.beforeTest` | `boolean` | testplane-docs/.testplane/src/testplane.ts:35 | -| `replMode.enabled` | `boolean` | testplane-docs/.testplane/src/testplane.ts:34 | -| `replMode.onFail` | `boolean` | testplane-docs/.testplane/src/testplane.ts:36 | -| `reporters` | `string`[] | testplane-docs/.testplane/src/testplane.ts:32 | -| `requireModules` | `string`[] | testplane-docs/.testplane/src/testplane.ts:27 | -| `sets` | `string`[] | testplane-docs/.testplane/src/testplane.ts:24 | -| `updateRefs` | `boolean` | testplane-docs/.testplane/src/testplane.ts:26 | +| `browsers` | `string`[] | [.testplane/src/testplane.ts:23](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L23) | +| `devtools` | `boolean` | [.testplane/src/testplane.ts:38](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L38) | +| `grep` | `RegExp` | [.testplane/src/testplane.ts:25](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L25) | +| `inspectMode` | \{ `inspect`: `boolean`; `inspectBrk`: `boolean`; \} | [.testplane/src/testplane.ts:28](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L28) | +| `inspectMode.inspect` | `boolean` | [.testplane/src/testplane.ts:29](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L29) | +| `inspectMode.inspectBrk` | `boolean` | [.testplane/src/testplane.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L30) | +| `replMode` | \{ `beforeTest`: `boolean`; `enabled`: `boolean`; `onFail`: `boolean`; \} | [.testplane/src/testplane.ts:33](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L33) | +| `replMode.beforeTest` | `boolean` | [.testplane/src/testplane.ts:35](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L35) | +| `replMode.enabled` | `boolean` | [.testplane/src/testplane.ts:34](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L34) | +| `replMode.onFail` | `boolean` | [.testplane/src/testplane.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L36) | +| `reporters` | `string`[] | [.testplane/src/testplane.ts:32](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L32) | +| `requireModules` | `string`[] | [.testplane/src/testplane.ts:27](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L27) | +| `sets` | `string`[] | [.testplane/src/testplane.ts:24](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L24) | +| `updateRefs` | `boolean` | [.testplane/src/testplane.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/testplane.ts#L26) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/SetsConfig.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/SetsConfig.mdx index b85b741..13f0dba 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/SetsConfig.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/SetsConfig.mdx @@ -6,6 +6,6 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `browsers?` | `string`[] | testplane-docs/.testplane/src/config/types.ts:183 | -| `files` | `string` \| `string`[] | testplane-docs/.testplane/src/config/types.ts:181 | -| `ignoreFiles?` | `string`[] | testplane-docs/.testplane/src/config/types.ts:182 | +| `browsers?` | `string`[] | [.testplane/src/config/types.ts:183](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L183) | +| `files` | `string` \| `string`[] | [.testplane/src/config/types.ts:181](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L181) | +| `ignoreFiles?` | `string`[] | [.testplane/src/config/types.ts:182](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L182) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/SystemConfig.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/SystemConfig.mdx index dd63434..a53d8e0 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/SystemConfig.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/SystemConfig.mdx @@ -6,15 +6,15 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `ctx` | \{\} | testplane-docs/.testplane/src/config/types.ts:68 | -| `debug` | `boolean` | testplane-docs/.testplane/src/config/types.ts:65 | -| `diffColor` | `string` | testplane-docs/.testplane/src/config/types.ts:72 | -| `expectOpts` | [`ExpectOptsConfig`](ExpectOptsConfig.mdx) | testplane-docs/.testplane/src/config/types.ts:67 | -| `fileExtensions` | `string`[] | testplane-docs/.testplane/src/config/types.ts:75 | -| `mochaOpts` | [`MochaOpts`](MochaOpts.mdx) | testplane-docs/.testplane/src/config/types.ts:66 | -| `parallelLimit` | `number` | testplane-docs/.testplane/src/config/types.ts:74 | -| `patternsOnReject` | `string`[] | testplane-docs/.testplane/src/config/types.ts:69 | -| `tempDir` | `string` | testplane-docs/.testplane/src/config/types.ts:73 | -| `testRunEnv` | `"nodejs"` \| `"browser"` \| [`"browser"`, `BrowserTestRunEnvOptions`] | testplane-docs/.testplane/src/config/types.ts:76 | -| `testsPerWorker` | `number` | testplane-docs/.testplane/src/config/types.ts:71 | -| `workers` | `number` | testplane-docs/.testplane/src/config/types.ts:70 | +| `ctx` | \{\} | [.testplane/src/config/types.ts:68](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L68) | +| `debug` | `boolean` | [.testplane/src/config/types.ts:65](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L65) | +| `diffColor` | `string` | [.testplane/src/config/types.ts:72](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L72) | +| `expectOpts` | [`ExpectOptsConfig`](ExpectOptsConfig.mdx) | [.testplane/src/config/types.ts:67](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L67) | +| `fileExtensions` | `string`[] | [.testplane/src/config/types.ts:75](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L75) | +| `mochaOpts` | [`MochaOpts`](MochaOpts.mdx) | [.testplane/src/config/types.ts:66](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L66) | +| `parallelLimit` | `number` | [.testplane/src/config/types.ts:74](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L74) | +| `patternsOnReject` | `string`[] | [.testplane/src/config/types.ts:69](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L69) | +| `tempDir` | `string` | [.testplane/src/config/types.ts:73](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L73) | +| `testRunEnv` | `"nodejs"` \| `"browser"` \| [`"browser"`, `BrowserTestRunEnvOptions`] | [.testplane/src/config/types.ts:76](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L76) | +| `testsPerWorker` | `number` | [.testplane/src/config/types.ts:71](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L71) | +| `workers` | `number` | [.testplane/src/config/types.ts:70](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L70) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestError.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestError.mdx index e19e9d8..56e39ff 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestError.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestError.mdx @@ -10,8 +10,8 @@ | Property | Type | Inherited from | Defined in | | ------ | ------ | ------ | ------ | -| `details` | [`ErrorDetails`](ErrorDetails.mdx) | - | testplane-docs/.testplane/src/types/index.ts:59 | -| `message` | `string` | `Error.message` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1077 | -| `name` | `string` | `Error.name` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 | -| `screenshot?` | [`ImageBase64`](ImageBase64.mdx) | - | testplane-docs/.testplane/src/types/index.ts:58 | -| `stack?` | `string` | `Error.stack` | testplane-docs/node\_modules/typescript/lib/lib.es5.d.ts:1078 | +| `details` | [`ErrorDetails`](ErrorDetails.mdx) | - | [.testplane/src/types/index.ts:59](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L59) | +| `message` | `string` | `Error.message` | node\_modules/typescript/lib/lib.es5.d.ts:1077 | +| `name` | `string` | `Error.name` | node\_modules/typescript/lib/lib.es5.d.ts:1076 | +| `screenshot?` | [`ImageBase64`](ImageBase64.mdx) | - | [.testplane/src/types/index.ts:58](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L58) | +| `stack?` | `string` | `Error.stack` | node\_modules/typescript/lib/lib.es5.d.ts:1078 | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestFunctionCtx.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestFunctionCtx.mdx index f7f7092..495215a 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestFunctionCtx.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestFunctionCtx.mdx @@ -6,5 +6,5 @@ | Property | Type | Defined in | | ------ | ------ | ------ | -| `browser` | `Browser` | testplane-docs/.testplane/src/test-reader/test-object/types.ts:22 | -| `currentTest` | [`Test`](../classes/Test.mdx) | testplane-docs/.testplane/src/test-reader/test-object/types.ts:23 | +| `browser` | `Browser` | [.testplane/src/test-reader/test-object/types.ts:22](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/types.ts#L22) | +| `currentTest` | [`Test`](../classes/Test.mdx) | [.testplane/src/test-reader/test-object/types.ts:23](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/types.ts#L23) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestResult.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestResult.mdx index eb227eb..da452c6 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestResult.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestResult.mdx @@ -14,18 +14,18 @@ | Property | Modifier | Type | Default value | Description | Overrides | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | ------ | ------ | ------ | -| `assertViewResults` | `public` | [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:135 | -| `description?` | `public` | `string` | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:136 | -| `duration` | `public` | `number` | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:137 | -| `err?` | `public` | [`TestError`](TestError.mdx) | `undefined` | - | [`Test`](../classes/Test.mdx).`err` | - | testplane-docs/.testplane/src/types/index.ts:138 | -| `fn` | `public` | `TestFunction`\<[`TestFunctionCtx`](TestFunctionCtx.mdx)\> | `undefined` | - | - | [`Test`](../classes/Test.mdx).`fn` | testplane-docs/.testplane/src/test-reader/test-object/test.ts:10 | -| ~~`hermioneCtx`~~ | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | **Deprecated** Use `testplaneCtx` instead | - | - | testplane-docs/.testplane/src/types/index.ts:143 | -| `history` | `public` | [`CommandHistory`](CommandHistory.mdx) | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:144 | -| `meta` | `public` | \{\} | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:145 | -| `parent` | `public` | `null` \| [`Suite`](../classes/Suite.mdx) | `null` | - | - | [`Test`](../classes/Test.mdx).`parent` | testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:6 | -| `sessionId` | `public` | `string` | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:146 | -| `startTime` | `public` | `number` | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:147 | -| `testplaneCtx` | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | - | - | - | testplane-docs/.testplane/src/types/index.ts:139 | +| `assertViewResults` | `public` | [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | `undefined` | - | - | - | [.testplane/src/types/index.ts:135](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L135) | +| `description?` | `public` | `string` | `undefined` | - | - | - | [.testplane/src/types/index.ts:136](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L136) | +| `duration` | `public` | `number` | `undefined` | - | - | - | [.testplane/src/types/index.ts:137](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L137) | +| `err?` | `public` | [`TestError`](TestError.mdx) | `undefined` | - | [`Test`](../classes/Test.mdx).`err` | - | [.testplane/src/types/index.ts:138](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L138) | +| `fn` | `public` | `TestFunction`\<[`TestFunctionCtx`](TestFunctionCtx.mdx)\> | `undefined` | - | - | [`Test`](../classes/Test.mdx).`fn` | [.testplane/src/test-reader/test-object/test.ts:10](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L10) | +| ~~`hermioneCtx`~~ | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | **Deprecated** Use `testplaneCtx` instead | - | - | [.testplane/src/types/index.ts:143](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L143) | +| `history` | `public` | [`CommandHistory`](CommandHistory.mdx) | `undefined` | - | - | - | [.testplane/src/types/index.ts:144](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L144) | +| `meta` | `public` | \{\} | `undefined` | - | - | - | [.testplane/src/types/index.ts:145](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L145) | +| `parent` | `public` | `null` \| [`Suite`](../classes/Suite.mdx) | `null` | - | - | [`Test`](../classes/Test.mdx).`parent` | [.testplane/src/test-reader/test-object/test-object.ts:6](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L6) | +| `sessionId` | `public` | `string` | `undefined` | - | - | - | [.testplane/src/types/index.ts:146](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L146) | +| `startTime` | `public` | `number` | `undefined` | - | - | - | [.testplane/src/types/index.ts:147](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L147) | +| `testplaneCtx` | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | - | - | - | [.testplane/src/types/index.ts:139](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L139) | ## Accessors @@ -55,7 +55,7 @@ set browserId(id): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:93 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:93](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L93) *** @@ -85,7 +85,7 @@ set browserVersion(version): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:101 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:101](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L101) *** @@ -115,7 +115,7 @@ set disabled(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:69 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:69](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L69) *** @@ -135,7 +135,7 @@ get file(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:45 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L45) *** @@ -155,7 +155,7 @@ get hasBrowserVersionOverwritten(): boolean #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:105 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L105) *** @@ -175,7 +175,7 @@ get id(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:41 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L41) *** @@ -205,7 +205,7 @@ set pending(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:53 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L53) *** @@ -235,7 +235,7 @@ set silentSkip(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:77 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:77](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L77) *** @@ -265,7 +265,7 @@ set skipReason(reason): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:61 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:61](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L61) *** @@ -295,7 +295,7 @@ set timeout(timeout): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:85 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:85](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L85) *** @@ -315,7 +315,7 @@ get title(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:16 +[.testplane/src/test-reader/test-object/test-object.ts:16](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L16) ## Methods @@ -341,7 +341,7 @@ assign(src): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:20 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L20) *** @@ -361,7 +361,7 @@ clone(): Test #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test.ts:23 +[.testplane/src/test-reader/test-object/test.ts:23](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L23) *** @@ -381,7 +381,7 @@ disable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:31 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:31](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L31) *** @@ -401,7 +401,7 @@ enable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:36 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L36) *** @@ -421,7 +421,7 @@ fullTitle(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:30 +[.testplane/src/test-reader/test-object/test-object.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L30) *** @@ -447,7 +447,7 @@ skip(__namedParameters): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:26 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L26) *** @@ -467,4 +467,4 @@ titlePath(): string[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:20 +[.testplane/src/test-reader/test-object/test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L20) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestResultWithRetries.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestResultWithRetries.mdx index 17a76c6..854689c 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestResultWithRetries.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/TestResultWithRetries.mdx @@ -10,19 +10,19 @@ | Property | Modifier | Type | Default value | Description | Inherited from | Defined in | | ------ | ------ | ------ | ------ | ------ | ------ | ------ | -| `assertViewResults` | `public` | [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | `undefined` | - | [`TestResult`](TestResult.mdx).`assertViewResults` | testplane-docs/.testplane/src/types/index.ts:135 | -| `description?` | `public` | `string` | `undefined` | - | [`TestResult`](TestResult.mdx).`description` | testplane-docs/.testplane/src/types/index.ts:136 | -| `duration` | `public` | `number` | `undefined` | - | [`TestResult`](TestResult.mdx).`duration` | testplane-docs/.testplane/src/types/index.ts:137 | -| `err?` | `public` | [`TestError`](TestError.mdx) | `undefined` | - | [`TestResult`](TestResult.mdx).`err` | testplane-docs/.testplane/src/types/index.ts:138 | -| `fn` | `public` | `TestFunction`\<[`TestFunctionCtx`](TestFunctionCtx.mdx)\> | `undefined` | - | [`TestResult`](TestResult.mdx).`fn` | testplane-docs/.testplane/src/test-reader/test-object/test.ts:10 | -| ~~`hermioneCtx`~~ | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | **Deprecated** Use `testplaneCtx` instead | [`TestResult`](TestResult.mdx).`hermioneCtx` | testplane-docs/.testplane/src/types/index.ts:143 | -| `history` | `public` | [`CommandHistory`](CommandHistory.mdx) | `undefined` | - | [`TestResult`](TestResult.mdx).`history` | testplane-docs/.testplane/src/types/index.ts:144 | -| `meta` | `public` | \{\} | `undefined` | - | [`TestResult`](TestResult.mdx).`meta` | testplane-docs/.testplane/src/types/index.ts:145 | -| `parent` | `public` | `null` \| [`Suite`](../classes/Suite.mdx) | `null` | - | [`TestResult`](TestResult.mdx).`parent` | testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:6 | -| `retriesLeft` | `public` | `number` | `undefined` | - | - | testplane-docs/.testplane/src/types/index.ts:151 | -| `sessionId` | `public` | `string` | `undefined` | - | [`TestResult`](TestResult.mdx).`sessionId` | testplane-docs/.testplane/src/types/index.ts:146 | -| `startTime` | `public` | `number` | `undefined` | - | [`TestResult`](TestResult.mdx).`startTime` | testplane-docs/.testplane/src/types/index.ts:147 | -| `testplaneCtx` | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | - | [`TestResult`](TestResult.mdx).`testplaneCtx` | testplane-docs/.testplane/src/types/index.ts:139 | +| `assertViewResults` | `public` | [`AssertViewResult`](../type-aliases/AssertViewResult.mdx)[] | `undefined` | - | [`TestResult`](TestResult.mdx).`assertViewResults` | [.testplane/src/types/index.ts:135](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L135) | +| `description?` | `public` | `string` | `undefined` | - | [`TestResult`](TestResult.mdx).`description` | [.testplane/src/types/index.ts:136](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L136) | +| `duration` | `public` | `number` | `undefined` | - | [`TestResult`](TestResult.mdx).`duration` | [.testplane/src/types/index.ts:137](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L137) | +| `err?` | `public` | [`TestError`](TestError.mdx) | `undefined` | - | [`TestResult`](TestResult.mdx).`err` | [.testplane/src/types/index.ts:138](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L138) | +| `fn` | `public` | `TestFunction`\<[`TestFunctionCtx`](TestFunctionCtx.mdx)\> | `undefined` | - | [`TestResult`](TestResult.mdx).`fn` | [.testplane/src/test-reader/test-object/test.ts:10](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L10) | +| ~~`hermioneCtx`~~ | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | **Deprecated** Use `testplaneCtx` instead | [`TestResult`](TestResult.mdx).`hermioneCtx` | [.testplane/src/types/index.ts:143](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L143) | +| `history` | `public` | [`CommandHistory`](CommandHistory.mdx) | `undefined` | - | [`TestResult`](TestResult.mdx).`history` | [.testplane/src/types/index.ts:144](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L144) | +| `meta` | `public` | \{\} | `undefined` | - | [`TestResult`](TestResult.mdx).`meta` | [.testplane/src/types/index.ts:145](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L145) | +| `parent` | `public` | `null` \| [`Suite`](../classes/Suite.mdx) | `null` | - | [`TestResult`](TestResult.mdx).`parent` | [.testplane/src/test-reader/test-object/test-object.ts:6](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L6) | +| `retriesLeft` | `public` | `number` | `undefined` | - | - | [.testplane/src/types/index.ts:151](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L151) | +| `sessionId` | `public` | `string` | `undefined` | - | [`TestResult`](TestResult.mdx).`sessionId` | [.testplane/src/types/index.ts:146](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L146) | +| `startTime` | `public` | `number` | `undefined` | - | [`TestResult`](TestResult.mdx).`startTime` | [.testplane/src/types/index.ts:147](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L147) | +| `testplaneCtx` | `public` | [`ExecutionThreadToolCtx`](ExecutionThreadToolCtx.mdx) | `undefined` | - | [`TestResult`](TestResult.mdx).`testplaneCtx` | [.testplane/src/types/index.ts:139](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L139) | ## Accessors @@ -52,7 +52,7 @@ set browserId(id): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:93 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:93](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L93) *** @@ -82,7 +82,7 @@ set browserVersion(version): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:101 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:101](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L101) *** @@ -112,7 +112,7 @@ set disabled(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:69 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:69](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L69) *** @@ -132,7 +132,7 @@ get file(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:45 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:45](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L45) *** @@ -152,7 +152,7 @@ get hasBrowserVersionOverwritten(): boolean #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:105 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L105) *** @@ -172,7 +172,7 @@ get id(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:41 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:41](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L41) *** @@ -202,7 +202,7 @@ set pending(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:53 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:53](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L53) *** @@ -232,7 +232,7 @@ set silentSkip(val): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:77 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:77](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L77) *** @@ -262,7 +262,7 @@ set skipReason(reason): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:61 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:61](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L61) *** @@ -292,7 +292,7 @@ set timeout(timeout): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:85 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:85](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L85) *** @@ -312,7 +312,7 @@ get title(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:16 +[.testplane/src/test-reader/test-object/test-object.ts:16](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L16) ## Methods @@ -338,7 +338,7 @@ assign(src): this #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:20 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L20) *** @@ -358,7 +358,7 @@ clone(): Test #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test.ts:23 +[.testplane/src/test-reader/test-object/test.ts:23](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test.ts#L23) *** @@ -378,7 +378,7 @@ disable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:31 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:31](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L31) *** @@ -398,7 +398,7 @@ enable(): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:36 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L36) *** @@ -418,7 +418,7 @@ fullTitle(): string #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:30 +[.testplane/src/test-reader/test-object/test-object.ts:30](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L30) *** @@ -444,7 +444,7 @@ skip(__namedParameters): void #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/configurable-test-object.ts:26 +[.testplane/src/test-reader/test-object/configurable-test-object.ts:26](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/configurable-test-object.ts#L26) *** @@ -464,4 +464,4 @@ titlePath(): string[] #### Defined in -testplane-docs/.testplane/src/test-reader/test-object/test-object.ts:20 +[.testplane/src/test-reader/test-object/test-object.ts:20](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/test-reader/test-object/test-object.ts#L20) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/WdioBrowser.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/WdioBrowser.mdx deleted file mode 100644 index f321ad4..0000000 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/interfaces/WdioBrowser.mdx +++ /dev/null @@ -1,10465 +0,0 @@ -[testplane](../README.mdx) / WdioBrowser - -# Interface: ~~WdioBrowser~~ - -## Deprecated - -use `WebdriverIO.Browser` instead - -## Extends - -- `Omit`\<`BrowserBase`, `"on"` \| `"once"`\>.`BidiEventHandler`.`BidiHandler`.`ProtocolCommands`.`BrowserCommandsType` - -## Properties - -| Property | Type | Description | Inherited from | Defined in | -| ------ | ------ | ------ | ------ | ------ | -| ~~`$`~~ | (...`args`: [`Selector`]) => `ChainablePromiseElement`\<`Element`\> | - | `BrowserCommandsType.$` | | -| ~~`$$`~~ | (...`args`: [`HTMLElement`[] \| `Selector` \| `ElementReference`[] \| `Element`[]]) => `ChainablePromiseArray`\<`ElementArray`\> | - | `BrowserCommandsType.$$` | | -| ~~`CDP_SESSIONS`~~ | `Record`\<`string`, `CDPSession`\> | - | `BrowserCommandsType.CDP_SESSIONS` | testplane/node\_modules/webdriverio/build/commands/browser/mock.d.ts:6 | -| ~~`SESSION_MOCKS`~~ | `Record`\<`string`, `Set`\<`Interception`\>\> | - | `BrowserCommandsType.SESSION_MOCKS` | testplane/node\_modules/webdriverio/build/commands/browser/mock.d.ts:5 | -| ~~`action`~~ | (`this`: `Browser`, `type`: `"key"`, `opts`?: `Pick`\<`BaseActionParams`, `"id"`\>) => `KeyAction`(`this`: `Browser`, `type`: `"pointer"`, `opts`?: `BaseActionParams`) => `PointerAction`(`this`: `Browser`, `type`: `"wheel"`, `opts`?: `Pick`\<`BaseActionParams`, `"id"`\>) => `WheelAction` | - | `BrowserCommandsType.action` | testplane/node\_modules/webdriverio/build/commands/browser/action.d.ts:151 | -| ~~`actions`~~ | (`this`: `Browser`, `actions`: (`KeyAction` \| `PointerAction` \| `WheelAction`)[]) => `Promise`\<`void`\> | - | `BrowserCommandsType.actions` | testplane/node\_modules/webdriverio/build/commands/browser/actions.d.ts:28 | -| ~~`call`~~ | \<`T`\>(`fn`: () => `T`) => `T` \| `Promise`\<`T`\> | - | `BrowserCommandsType.call` | testplane/node\_modules/webdriverio/build/commands/browser/call.d.ts:43 | -| ~~`capabilities`~~ | `RemoteCapability` | Applied capabilities used in the current session. Note: these can differ from the actual requested capabilities if the remote end couldn't provide an exact match. | `Omit.capabilities` | testplane/node\_modules/webdriverio/build/types.d.ts:154 | -| ~~`commandList`~~ | `string`[] | - | `Omit.commandList` | testplane/node\_modules/webdriverio/build/types.d.ts:169 | -| ~~`custom$`~~ | (...`args`: [`string`, `...strategyArguments: any[]`]) => `ChainablePromiseElement`\<`Element`\> | - | `BrowserCommandsType.custom$` | | -| ~~`custom$$`~~ | (...`args`: [`string`, `...strategyArguments: any[]`]) => `ChainablePromiseArray`\<`ElementArray`\> | - | `BrowserCommandsType.custom$$` | | -| ~~`debug`~~ | (`this`: `Browser`, `commandTimeout`?: `number`) => `Promise`\<`unknown`\> | - | `BrowserCommandsType.debug` | testplane/node\_modules/webdriverio/build/commands/browser/debug.d.ts:31 | -| ~~`deleteCookies`~~ | (`this`: `Browser`, `names`?: `string` \| `string`[]) => `Promise`\<`void`\> \| `Promise`\<`void`[]\> | - | `BrowserCommandsType.deleteCookies` | testplane/node\_modules/webdriverio/build/commands/browser/deleteCookies.d.ts:11 | -| ~~`downloadFile`~~ | (`this`: `Browser`, `fileName`: `string`, `targetDirectory`: `string`) => `Promise`\<`object`\> | - | `BrowserCommandsType.downloadFile` | testplane/node\_modules/webdriverio/build/commands/browser/downloadFile.d.ts:43 | -| ~~`emulate`~~ | \<`Scope`\>(`this`: `Browser`, `scope`: `Scope`, `options`: `EmulationOptions`\[`Scope`\]) => `Promise`\<`void`\> | - | `BrowserCommandsType.emulate` | testplane/node\_modules/webdriverio/build/commands/browser/emulate.d.ts:34 | -| ~~`execute`~~ | \<`ReturnValue`, `InnerArguments`\>(`this`: `Browser` \| `MultiRemoteBrowser` \| `Element`, `script`: `string` \| (...`innerArgs`) => `ReturnValue`, ...`args`: `InnerArguments`) => `Promise`\<`ReturnValue`\> | - | `BrowserCommandsType.execute` | testplane/node\_modules/webdriverio/build/commands/browser/execute.d.ts:36 | -| ~~`executeAsync`~~ | \<`ReturnValue`, `InnerArguments`\>(`this`: `Browser` \| `Element`, `script`: `string` \| (...`args`) => `void`, ...`args`: `InnerArguments`) => `Promise`\<`ReturnValue`\> | - | `BrowserCommandsType.executeAsync` | testplane/node\_modules/webdriverio/build/commands/browser/executeAsync.d.ts:44 | -| ~~`getCookies`~~ | (`this`: `Browser`, `names`?: `string` \| `string`[]) => `Promise`\<`Cookie`[]\> | - | `BrowserCommandsType.getCookies` | testplane/node\_modules/webdriverio/build/commands/browser/getCookies.d.ts:33 | -| ~~`getPuppeteer`~~ | (`this`: `Browser`) => `Promise`\<`PuppeteerBrowser`\> | - | `BrowserCommandsType.getPuppeteer` | testplane/node\_modules/webdriverio/build/commands/browser/getPuppeteer.d.ts:37 | -| ~~`getWindowSize`~~ | (`this`: `Browser`) => `Promise`\<`BrowserSize`\> | - | `BrowserCommandsType.getWindowSize` | testplane/node\_modules/webdriverio/build/commands/browser/getWindowSize.d.ts:23 | -| ~~`isAndroid`~~ | `boolean` | - | `Omit.isAndroid` | testplane/node\_modules/webdriver/build/types.d.ts:16 | -| ~~`isBidi`~~ | `boolean` | - | `Omit.isBidi` | testplane/node\_modules/webdriver/build/types.d.ts:22 | -| ~~`isChromium`~~ | `boolean` | - | `Omit.isChromium` | testplane/node\_modules/webdriver/build/types.d.ts:14 | -| ~~`isDevTools`~~ | `boolean` | - | `Omit.isDevTools` | testplane/node\_modules/webdriver/build/types.d.ts:21 | -| ~~`isFirefox`~~ | `boolean` | - | `Omit.isFirefox` | testplane/node\_modules/webdriver/build/types.d.ts:15 | -| ~~`isIOS`~~ | `boolean` | - | `Omit.isIOS` | testplane/node\_modules/webdriver/build/types.d.ts:18 | -| ~~`isMobile`~~ | `boolean` | - | `Omit.isMobile` | testplane/node\_modules/webdriver/build/types.d.ts:17 | -| ~~`isMultiremote`~~ | `false` | - | `Omit.isMultiremote` | testplane/node\_modules/webdriverio/build/types.d.ts:183 | -| ~~`isSauce`~~ | `boolean` | - | `Omit.isSauce` | testplane/node\_modules/webdriver/build/types.d.ts:19 | -| ~~`isSeleniumStandalone`~~ | `boolean` | - | `Omit.isSeleniumStandalone` | testplane/node\_modules/webdriver/build/types.d.ts:20 | -| ~~`isW3C`~~ | `boolean` | - | `Omit.isW3C` | testplane/node\_modules/webdriver/build/types.d.ts:13 | -| ~~`keys`~~ | (`this`: `Browser`, `value`: `string` \| `string`[]) => `Promise`\<`void`\> | - | `BrowserCommandsType.keys` | testplane/node\_modules/webdriverio/build/commands/browser/keys.d.ts:22 | -| ~~`mock`~~ | (`this`: `Browser`, `url`: `string` \| `RegExp`, `filterOptions`?: `MockFilterOptions`) => `Promise`\<`Mock`\> | - | `BrowserCommandsType.mock` | testplane/node\_modules/webdriverio/build/commands/browser/mock.d.ts:113 | -| ~~`mockClearAll`~~ | () => `Promise`\<`void`\> | - | `BrowserCommandsType.mockClearAll` | testplane/node\_modules/webdriverio/build/commands/browser/mockClearAll.d.ts:27 | -| ~~`mockRestoreAll`~~ | () => `Promise`\<`void`\> | - | `BrowserCommandsType.mockRestoreAll` | testplane/node\_modules/webdriverio/build/commands/browser/mockRestoreAll.d.ts:25 | -| ~~`newWindow`~~ | (`this`: `Browser`, `url`: `string`, `__namedParameters`?: `NewWindowOptions`) => `Promise`\<`string`\> | - | `BrowserCommandsType.newWindow` | testplane/node\_modules/webdriverio/build/commands/browser/newWindow.d.ts:40 | -| ~~`options`~~ | `WebdriverIO` \| `Testrunner` | Applied WebdriverIO options (options that aren't officially part of WebdriverIO are stripped out of this object). | `Omit.options` | testplane/node\_modules/webdriverio/build/types.d.ts:163 | -| ~~`pause`~~ | (`this`: `Browser`, `milliseconds`?: `number`) => `Promise`\<`unknown`\> | - | `BrowserCommandsType.pause` | testplane/node\_modules/webdriverio/build/commands/browser/pause.d.ts:22 | -| ~~`puppeteer?`~~ | `Browser` | Puppeteer instance | `Omit.puppeteer` | testplane/node\_modules/webdriverio/build/types.d.ts:167 | -| ~~`react$`~~ | (...`args`: [`string`, `ReactSelectorOptions?`]) => `ChainablePromiseElement`\<`Element`\> | - | `BrowserCommandsType.react$` | | -| ~~`react$$`~~ | (...`args`: [`string`, `ReactSelectorOptions?`]) => `ChainablePromiseArray`\<`ElementArray`\> | - | `BrowserCommandsType.react$$` | | -| ~~`reloadSession`~~ | (`this`: `Browser`, `newCapabilities`?: `Capabilities`) => `Promise`\<`string`\> | - | `BrowserCommandsType.reloadSession` | testplane/node\_modules/webdriverio/build/commands/browser/reloadSession.d.ts:51 | -| ~~`requestedCapabilities`~~ | `RemoteCapability` | Requested capabilities defined in the config object. | `Omit.requestedCapabilities` | testplane/node\_modules/webdriverio/build/types.d.ts:158 | -| ~~`savePDF`~~ | (`this`: `Browser`, `filepath`: `string`, `options`?: `PDFPrintOptions`) => `Promise`\<`Buffer`\> | - | `BrowserCommandsType.savePDF` | testplane/node\_modules/webdriverio/build/commands/browser/savePDF.d.ts:44 | -| ~~`saveRecordingScreen`~~ | (`this`: `Browser`, `filepath`: `string`) => `Promise`\<`Buffer`\> | - | `BrowserCommandsType.saveRecordingScreen` | testplane/node\_modules/webdriverio/build/commands/browser/saveRecordingScreen.d.ts:27 | -| ~~`saveScreenshot`~~ | (`this`: `Browser`, `filepath`: `string`) => `Promise`\<`Buffer`\> | - | `BrowserCommandsType.saveScreenshot` | testplane/node\_modules/webdriverio/build/commands/browser/saveScreenshot.d.ts:28 | -| ~~`scroll`~~ | (`this`: `Browser`, `x`?: `number`, `y`?: `number`) => `void` \| `Promise`\<`void`\> | - | `BrowserCommandsType.scroll` | testplane/node\_modules/webdriverio/build/commands/browser/scroll.d.ts:24 | -| ~~`sessionId`~~ | `string` | Session id for the current running session | `Omit.sessionId` | testplane/node\_modules/webdriverio/build/types.d.ts:149 | -| ~~`setCookies`~~ | (`this`: `Browser`, `cookieObjs`: `Cookie` \| `Cookie`[]) => `Promise`\<`void`\> | - | `BrowserCommandsType.setCookies` | testplane/node\_modules/webdriverio/build/commands/browser/setCookies.d.ts:56 | -| ~~`setTimeout`~~ | (`this`: `Browser`, `timeouts`: `Partial`\<`Timeouts`\>) => `Promise`\<`void`\> | - | `BrowserCommandsType.setTimeout` | testplane/node\_modules/webdriverio/build/commands/browser/setTimeout.d.ts:37 | -| ~~`setWindowSize`~~ | (`this`: `Browser`, `width`: `number`, `height`: `number`) => `Promise`\<`void`\> | - | `BrowserCommandsType.setWindowSize` | testplane/node\_modules/webdriverio/build/commands/browser/setWindowSize.d.ts:19 | -| ~~`shadow$`~~ | (...`args`: [`string`]) => `ChainablePromiseElement`\<`Element`\> | - | `BrowserCommandsType.shadow$` | | -| ~~`shadow$$`~~ | (...`args`: [`string`]) => `ChainablePromiseArray`\<`ElementArray`\> | - | `BrowserCommandsType.shadow$$` | | -| ~~`strategies`~~ | `Map`\<`any`, `any`\> | - | `Omit.strategies` | testplane/node\_modules/webdriverio/build/types.d.ts:168 | -| ~~`switchWindow`~~ | (`this`: `Browser`, `matcher`: `string` \| `RegExp`) => `Promise`\<`string`\> | - | `BrowserCommandsType.switchWindow` | testplane/node\_modules/webdriverio/build/commands/browser/switchWindow.d.ts:29 | -| ~~`throttle`~~ | (`this`: `Browser`, `params`: `ThrottleOptions`) => `Promise`\<`void`\> | - | `BrowserCommandsType.throttle` | testplane/node\_modules/webdriverio/build/commands/browser/throttle.d.ts:5 | -| ~~`throttleNetwork`~~ | (`this`: `Browser`, `params`: `ThrottleOptions`) => `Promise`\<`null`\> | - | `BrowserCommandsType.throttleNetwork` | testplane/node\_modules/webdriverio/build/commands/browser/throttleNetwork.d.ts:2 | -| ~~`touchAction`~~ | (`this`: `Browser`, `actions`: `TouchActions`) => `Promise`\<`void`\> | - | `BrowserCommandsType.touchAction` | testplane/node\_modules/webdriverio/build/commands/browser/touchAction.d.ts:73 | -| ~~`uploadFile`~~ | (`this`: `Browser`, `localPath`: `string`) => `Promise`\<`string`\> | - | `BrowserCommandsType.uploadFile` | testplane/node\_modules/webdriverio/build/commands/browser/uploadFile.d.ts:31 | -| ~~`url`~~ | (`this`: `Browser`, `path`: `string`) => `Promise`\<`string`\> | - | `BrowserCommandsType.url` | testplane/node\_modules/webdriverio/build/commands/browser/url.d.ts:37 | -| ~~`waitUntil`~~ | \<`ReturnValue`\>(`this`: `Browser` \| `Element`, `condition`: () => `ReturnValue` \| `Promise`\<`ReturnValue`\>, `__namedParameters`?: `Partial`\<`WaitUntilOptions`\>) => `Promise`\<`Exclude`\<`ReturnValue`, `boolean`\>\> | - | `BrowserCommandsType.waitUntil` | testplane/node\_modules/webdriverio/build/commands/browser/waitUntil.d.ts:21 | - -## Accessors - -### ~~isConnected~~ - -```ts -get isConnected(): boolean -``` - -#### Returns - -`boolean` - -#### Inherited from - -`BidiHandler.isConnected` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/core.d.ts:12 - -*** - -### ~~socket~~ - -```ts -get socket(): WebSocket -``` - -#### Returns - -`WebSocket` - -#### Inherited from - -`BidiHandler.socket` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/core.d.ts:11 - -## Methods - -### ~~\[captureRejectionSymbol\]()?~~ - -```ts -optional [captureRejectionSymbol]( - error, - event, ... - args): void -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `error` | `Error` | -| `event` | `string` | -| ...`args` | `any`[] | - -#### Returns - -`void` - -#### Inherited from - -`Omit.[captureRejectionSymbol]` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:115 - -*** - -### ~~\_getWindowSize()~~ - -```ts -_getWindowSize(): Promise -``` - -Jsonwp Protocol Command - -Get the size of the current focused window. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidwindowwindowhandlesize - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands._getWindowSize` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:193 - -*** - -### ~~\_setWindowSize()~~ - -```ts -_setWindowSize(width, height): Promise -``` - -Jsonwp Protocol Command - -Change the size of the current focused window. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `width` | `number` | -| `height` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidwindowwindowhandlesize - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands._setWindowSize` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:202 - -*** - -### ~~acceptAlert()~~ - -```ts -acceptAlert(): Promise -``` - -Webdriver Protocol Command - -The Accept Alert command accepts a simple dialog if present, otherwise error. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-accept-alert - -#### Inherited from - -`ProtocolCommands.acceptAlert` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:450 - -*** - -### ~~activateApp()~~ - -```ts -activateApp(appId): Promise -``` - -Appium Protocol Command - -Activate the given app onto the device - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `appId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/activate-app/ - -#### Inherited from - -`ProtocolCommands.activateApp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:154 - -*** - -### ~~activateIME()~~ - -```ts -activateIME(engine): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `engine` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactivate - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.activateIME` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:525 - -*** - -### ~~addCommand()~~ - -```ts -addCommand( - name, - func, - attachToElement?, - proto?, - instances?): void -``` - -add command to `browser` or `element` scope - -#### Type Parameters - -| Type Parameter | Default type | -| ------ | ------ | -| `IsElement` *extends* `boolean` | `false` | - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `string` | -| `func` | `AddCommandFn` \| `AddCommandFnScoped`\<[`WdioBrowser`](WdioBrowser.mdx), `IsElement`\> | -| `attachToElement`? | `IsElement` | -| `proto`? | `Record`\<`string`, `any`\> | -| `instances`? | `Record`\<`string`, `Browser` \| `MultiRemoteBrowser`\> | - -#### Returns - -`void` - -#### Inherited from - -`Omit.addCommand` - -#### Defined in - -testplane/node\_modules/webdriverio/build/types.d.ts:135 - -*** - -### ~~addCookie()~~ - -```ts -addCookie(cookie): Promise -``` - -Webdriver Protocol Command - -The Add Cookie command adds a single cookie to the cookie store associated with the active document's address. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `cookie` | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-adding-a-cookie - -#### Inherited from - -`ProtocolCommands.addCookie` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:394 - -*** - -### ~~addCredential()~~ - -```ts -addCredential( - authenticatorId, - credentialId, - isResidentCredential, - rpId, - privateKey, - userHandle, - signCount, -largeBlob?): Promise -``` - -Webdriver Protocol Command - -Injects a Public Key Credential Source into an existing Virtual Authenticator. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `authenticatorId` | `string` | -| `credentialId` | `string` | -| `isResidentCredential` | `boolean` | -| `rpId` | `string` | -| `privateKey` | `string` | -| `userHandle` | `string` | -| `signCount` | `number` | -| `largeBlob`? | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://www.w3.org/TR/webauthn-2/#sctn-automation-add-credential - -#### Inherited from - -`ProtocolCommands.addCredential` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:593 - -*** - -### ~~addListener()~~ - -```ts -addListener(eventName, listener): this -``` - -Alias for `emitter.on(eventName, listener)`. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| `listener` | (...`args`) => `void` | - -#### Returns - -`this` - -#### Since - -v0.1.26 - -#### Inherited from - -`Omit.addListener` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:475 - -*** - -### ~~addLocatorStrategy()~~ - -```ts -addLocatorStrategy(name, func): void -``` - -create custom selector - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `string` | -| `func` | (`selector`, `root`) => `CustomLocatorReturnValue` \| (`selector`) => `CustomLocatorReturnValue` | - -#### Returns - -`void` - -#### Inherited from - -`Omit.addLocatorStrategy` - -#### Defined in - -testplane/node\_modules/webdriverio/build/types.d.ts:143 - -*** - -### ~~addVirtualAuthenticator()~~ - -```ts -addVirtualAuthenticator( - protocol?, - transport?, - hasResidentKey?, - hasUserVerification?, - isUserConsenting?, - isUserVerified?, - extensions?, -uvm?): Promise -``` - -Webdriver Protocol Command - -Creates a software [Virtual Authenticator](https://www.w3.org/TR/webauthn-2/#virtual-authenticators). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `protocol`? | `string` | -| `transport`? | `string` | -| `hasResidentKey`? | `boolean` | -| `hasUserVerification`? | `boolean` | -| `isUserConsenting`? | `boolean` | -| `isUserVerified`? | `boolean` | -| `extensions`? | `string`[] | -| `uvm`? | `object`[] | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://www.w3.org/TR/webauthn-2/#sctn-automation-add-virtual-authenticator - -#### Inherited from - -`ProtocolCommands.addVirtualAuthenticator` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:577 - -*** - -### ~~assertPerformance()~~ - -```ts -assertPerformance(name, metrics?): Promise -``` - -Saucelabs Protocol Command - -Assert against the performance baseline of your app. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `string` | -| `metrics`? | `string`[] | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands - -#### Example - -```js -// test performance for a page -browser.url('https://webdriver.io') -const hasRegression = browser.assertPerformance({ - name: 'my performance test', // make sure that the name is also set in the sauce options in your capabilities - metrics: ['score', 'firstPaint'] -}) -``` - -#### Inherited from - -`ProtocolCommands.assertPerformance` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:147 - -*** - -### ~~back()~~ - -```ts -back(): Promise -``` - -Webdriver Protocol Command - -The Back command causes the browser to traverse one step backward in the joint session history of the current top-level browsing context. This is equivalent to pressing the back button in the browser chrome or calling `window.history.back`. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-back - -#### Inherited from - -`ProtocolCommands.back` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:66 - -*** - -### ~~background()~~ - -```ts -background(seconds): Promise -``` - -Appium Protocol Command - -Send the currently running app for this session to the background. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `seconds` | `null` \| `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/background-app/ - -#### Deprecated - -Use `driver.execute('mobile: backgroundApp', { ... })` instead - -#### Inherited from - -`ProtocolCommands.background` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:349 - -*** - -### ~~browserClose()~~ - -```ts -browserClose(params): Promise -``` - -WebDriver Bidi command to send command method "browser.close" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `EmptyParams` | `remote.EmptyParams` [command parameter](https://w3c.github.io/webdriver-bidi/#command-browser-close) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browser-close - -#### Inherited from - -`BidiHandler.browserClose` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:60 - -*** - -### ~~browsingContextActivate()~~ - -```ts -browsingContextActivate(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.activate" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextActivateParameters` | `remote.BrowsingContextActivateParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate - -#### Inherited from - -`BidiHandler.browsingContextActivate` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:67 - -*** - -### ~~browsingContextCaptureScreenshot()~~ - -```ts -browsingContextCaptureScreenshot(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.captureScreenshot" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextCaptureScreenshotParameters` | `remote.BrowsingContextCaptureScreenshotParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-browsingContext-captureScreenshot) | - -#### Returns - -`Promise`\<`BrowsingContextCaptureScreenshotResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-captureScreenshot - -#### Inherited from - -`BidiHandler.browsingContextCaptureScreenshot` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:74 - -*** - -### ~~browsingContextClose()~~ - -```ts -browsingContextClose(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.close" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextCloseParameters` | `remote.BrowsingContextCloseParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-browsingContext-close) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-close - -#### Inherited from - -`BidiHandler.browsingContextClose` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:81 - -*** - -### ~~browsingContextCreate()~~ - -```ts -browsingContextCreate(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.create" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextCreateParameters` | `remote.BrowsingContextCreateParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-browsingContext-create) | - -#### Returns - -`Promise`\<`BrowsingContextCreateResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-create - -#### Inherited from - -`BidiHandler.browsingContextCreate` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:88 - -*** - -### ~~browsingContextGetTree()~~ - -```ts -browsingContextGetTree(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.getTree" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextGetTreeParameters` | `remote.BrowsingContextGetTreeParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-browsingContext-getTree) | - -#### Returns - -`Promise`\<`BrowsingContextGetTreeResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-getTree - -#### Inherited from - -`BidiHandler.browsingContextGetTree` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:95 - -*** - -### ~~browsingContextHandleUserPrompt()~~ - -```ts -browsingContextHandleUserPrompt(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.handleUserPrompt" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextHandleUserPromptParameters` | `remote.BrowsingContextHandleUserPromptParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-browsingContext-handleUserPrompt) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-handleUserPrompt - -#### Inherited from - -`BidiHandler.browsingContextHandleUserPrompt` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:102 - -*** - -### ~~browsingContextLocateNodes()~~ - -```ts -browsingContextLocateNodes(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.locateNodes" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextLocateNodesParameters` | `remote.BrowsingContextLocateNodesParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-browsingContext-locateNodes) | - -#### Returns - -`Promise`\<`BrowsingContextLocateNodesResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-locateNodes - -#### Inherited from - -`BidiHandler.browsingContextLocateNodes` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:109 - -*** - -### ~~browsingContextNavigate()~~ - -```ts -browsingContextNavigate(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.navigate" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextNavigateParameters` | `remote.BrowsingContextNavigateParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-browsingContext-navigate) | - -#### Returns - -`Promise`\<`BrowsingContextNavigateResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-navigate - -#### Inherited from - -`BidiHandler.browsingContextNavigate` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:116 - -*** - -### ~~browsingContextPrint()~~ - -```ts -browsingContextPrint(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.print" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextPrintParameters` | `remote.BrowsingContextPrintParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-browsingContext-print) | - -#### Returns - -`Promise`\<`BrowsingContextPrintResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-print - -#### Inherited from - -`BidiHandler.browsingContextPrint` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:123 - -*** - -### ~~browsingContextReload()~~ - -```ts -browsingContextReload(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.reload" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextReloadParameters` | `remote.BrowsingContextReloadParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-browsingContext-reload) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-reload - -#### Inherited from - -`BidiHandler.browsingContextReload` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:130 - -*** - -### ~~browsingContextSetViewport()~~ - -```ts -browsingContextSetViewport(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.setViewport" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextSetViewportParameters` | `remote.BrowsingContextSetViewportParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-browsingContext-setViewport) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-setViewport - -#### Inherited from - -`BidiHandler.browsingContextSetViewport` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:137 - -*** - -### ~~browsingContextTraverseHistory()~~ - -```ts -browsingContextTraverseHistory(params): Promise -``` - -WebDriver Bidi command to send command method "browsingContext.traverseHistory" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `BrowsingContextTraverseHistoryParameters` | `remote.BrowsingContextTraverseHistoryParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-browsingContext-traverseHistory) | - -#### Returns - -`Promise`\<`BrowsingContextTraverseHistoryResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-browsingContext-traverseHistory - -#### Inherited from - -`BidiHandler.browsingContextTraverseHistory` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:144 - -*** - -### ~~buttonDown()~~ - -```ts -buttonDown(button?): Promise -``` - -Jsonwp Protocol Command - -Click and hold the left mouse button (at the coordinates set by the last moveto command). Note that the next mouse-related command that should follow is buttonup . Any other mouse command (such as click or another call to buttondown) will yield undefined behaviour. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `button`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidbuttondown - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a click gesture! - -#### Inherited from - -`ProtocolCommands.buttonDown` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:561 - -*** - -### ~~buttonUp()~~ - -```ts -buttonUp(button?): Promise -``` - -Jsonwp Protocol Command - -Releases the mouse button previously held (where the mouse is currently at). Must be called once for every buttondown command issued. See the note in click and buttondown about implications of out-of-order commands. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `button`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidbuttonup - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a click gesture! - -#### Inherited from - -`ProtocolCommands.buttonUp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:570 - -*** - -### ~~clearLocalStorage()~~ - -```ts -clearLocalStorage(): Promise -``` - -Jsonwp Protocol Command - -Clear the storage. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storage - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.clearLocalStorage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:669 - -*** - -### ~~clearMockCalls()~~ - -```ts -clearMockCalls(mockId, restore?): Promise -``` - -Saucelabs Protocol Command - -Clear list of mock calls. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `mockId` | `string` | -| `restore`? | `boolean` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands - -#### Inherited from - -`ProtocolCommands.clearMockCalls` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:185 - -*** - -### ~~clearSessionStorage()~~ - -```ts -clearSessionStorage(): Promise -``` - -Jsonwp Protocol Command - -Clear the storage. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidsession_storage - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.clearSessionStorage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:723 - -*** - -### ~~closeApp()~~ - -```ts -closeApp(): Promise -``` - -Appium Protocol Command - -Close an app on device. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/close-app/ - -#### Deprecated - -Use `driver.execute('mobile: terminateApp', { ... })` instead - -#### Inherited from - -`ProtocolCommands.closeApp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:340 - -*** - -### ~~closeWindow()~~ - -```ts -closeWindow(): Promise -``` - -Webdriver Protocol Command - -The Close Window command closes the current top-level browsing context. Once done, if there are no more top-level browsing contexts open, the WebDriver session itself is closed. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-close-window - -#### Inherited from - -`ProtocolCommands.closeWindow` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:106 - -*** - -### ~~compareImages()~~ - -```ts -compareImages( - mode, - firstImage, - secondImage, -options): Promise -``` - -Appium Protocol Command - -This feature conducts image comparisons utilizing the capabilities of the OpenCV framework. Please note that for this functionality to work, both the OpenCV framework and the opencv4nodejs module must be installed on the machine where the Appium server is operational. ***Furthermore, you'll need to have the [`images-plugin`](https://github.com/appium/appium/tree/master/packages/images-plugin) plugin installed to use this feature with Appium 2.0.*** - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `mode` | `string` | -| `firstImage` | `string` | -| `secondImage` | `string` | -| `options` | `object` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/writing-running-appium/image-comparison/ - -#### Inherited from - -`ProtocolCommands.compareImages` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:563 - -*** - -### ~~connect()~~ - -```ts -connect(): Promise -``` - -#### Returns - -`Promise`\<`void`\> - -#### Inherited from - -`BidiHandler.connect` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/core.d.ts:10 - -*** - -### ~~createMockSensor()~~ - -```ts -createMockSensor( - mockSensorType, - maxSamplingFrequency, -minSamplingFrequency): Promise -``` - -Webdriver Protocol Command - -Creates a mock sensor to emulate sensors like Ambient Light Sensor. __Note:__ this feature has not landed in all browsers yet. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `mockSensorType` | `string` | -| `maxSamplingFrequency` | `number` | -| `minSamplingFrequency` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/sensors/#create-mock-sensor-command - -#### Inherited from - -`ProtocolCommands.createMockSensor` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:537 - -*** - -### ~~createWindow()~~ - -```ts -createWindow(type): Promise -``` - -Webdriver Protocol Command - -Create a new top-level browsing context. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `type` | `"tab"` \| `"window"` | - -#### Returns - -`Promise`\<`WindowHandle`\> - -#### Ref - -https://w3c.github.io/webdriver/#new-window - -#### Inherited from - -`ProtocolCommands.createWindow` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:122 - -*** - -### ~~deactivateIME()~~ - -```ts -deactivateIME(): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimedeactivate - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.deactivateIME` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:516 - -*** - -### ~~deleteAllCookies()~~ - -```ts -deleteAllCookies(): Promise -``` - -Webdriver Protocol Command - -The Delete All Cookies command allows deletion of all cookies associated with the active document's address. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-delete-all-cookies - -#### Inherited from - -`ProtocolCommands.deleteAllCookies` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:402 - -*** - -### ~~deleteCookie()~~ - -```ts -deleteCookie(name): Promise -``` - -Webdriver Protocol Command - -The Delete Cookie command allows you to delete either a single cookie by parameter name, or all the cookies associated with the active document's address if name is undefined. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-delete-cookie - -#### Inherited from - -`ProtocolCommands.deleteCookie` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:418 - -*** - -### ~~deleteDownloadableFiles()~~ - -```ts -deleteDownloadableFiles(): Promise -``` - -Selenium Protocol Command - -Remove all downloadable files from remote machine on which the browser is running. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://www.seleniumhq.org/ - -#### Inherited from - -`ProtocolCommands.deleteDownloadableFiles` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:34 - -*** - -### ~~deleteLocalStorageItem()~~ - -```ts -deleteLocalStorageItem(key): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `key` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidlocal_storagekeykey - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.deleteLocalStorageItem` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:687 - -*** - -### ~~deleteMockSensor()~~ - -```ts -deleteMockSensor(type): Promise -``` - -Webdriver Protocol Command - -The Delete Session command closes any top-level browsing contexts associated with the current session, terminates the connection, and finally closes the current session. __Note:__ this feature has not landed in all browsers yet. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `type` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/sensors/#delete-mock-sensor-command - -#### Inherited from - -`ProtocolCommands.deleteMockSensor` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:561 - -*** - -### ~~deleteNetworkConditions()~~ - -```ts -deleteNetworkConditions(): Promise -``` - -Chromium Protocol Command - -Disable any network throttling which might have been set. Equivalent of setting the `No throttling` preset. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L1724-L1745 - -#### Inherited from - -`ProtocolCommands.deleteNetworkConditions` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:155 - -*** - -### ~~deleteSession()~~ - -```ts -deleteSession(deleteSessionOpts?): Promise -``` - -Webdriver Protocol Command - -The Delete Session command closes any top-level browsing contexts associated with the current session, terminates the connection, and finally closes the current session. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `deleteSessionOpts`? | `DeleteSessionOpts` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-delete-session - -#### Inherited from - -`ProtocolCommands.deleteSession` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:18 - -*** - -### ~~deleteSessionStorageItem()~~ - -```ts -deleteSessionStorageItem(key): Promise -``` - -Jsonwp Protocol Command - -Remove the storage item for the given key. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `key` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidsession_storagekeykey - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.deleteSessionStorageItem` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:741 - -*** - -### ~~dismissAlert()~~ - -```ts -dismissAlert(): Promise -``` - -Webdriver Protocol Command - -The Dismiss Alert command dismisses a simple dialog if present, otherwise error. A request to dismiss an alert user prompt, which may not necessarily have a dismiss button, has the same effect as accepting it. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-dismiss-alert - -#### Inherited from - -`ProtocolCommands.dismissAlert` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:442 - -*** - -### ~~download()~~ - -```ts -download(name): Promise -``` - -Selenium Protocol Command - -Download a file from remote machine on which the browser is running. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://www.seleniumhq.org/ - -#### Inherited from - -`ProtocolCommands.download` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:26 - -*** - -### ~~elementClear()~~ - -```ts -elementClear(elementId): Promise -``` - -Webdriver Protocol Command - -The Element Clear command scrolls into view an editable or resettable element and then attempts to clear its selected files or text content. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-element-clear - -#### Inherited from - -`ProtocolCommands.elementClear` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:346 - -*** - -### ~~elementClick()~~ - -```ts -elementClick(elementId): Promise -``` - -Webdriver Protocol Command - -The Element Click command scrolls into view the element if it is not already pointer-interactable, and clicks its in-view center point. If the element's center point is obscured by another element, an element click intercepted error is returned. If the element is outside the viewport, an element not interactable error is returned. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-element-click - -#### Inherited from - -`ProtocolCommands.elementClick` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:338 - -*** - -### ~~elementEquals()~~ - -```ts -elementEquals(elementId, otherElementId): Promise -``` - -Jsonwp Protocol Command - -Compare elements with each other. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `otherElementId` | `string` | - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidequalsother - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.elementEquals` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:350 - -*** - -### ~~elementHover()~~ - -```ts -elementHover(elementId): Promise -``` - -Chromium Protocol Command - -Enable hover state for an element, which is reset upon next interaction. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/element_commands.cc#L126-L146 - -#### Inherited from - -`ProtocolCommands.elementHover` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:220 - -*** - -### ~~elementSendKeys()~~ - -```ts -elementSendKeys(elementId, text): Promise -``` - -Webdriver Protocol Command - -The Element Send Keys command scrolls into view the form control element and then sends the provided keys to the element. In case the element is not keyboard-interactable, an element not interactable error is returned.

The key input state used for input may be cleared mid-way through "typing" by sending the null key, which is U+E000 (NULL). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `text` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-element-send-keys - -#### Inherited from - -`ProtocolCommands.elementSendKeys` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:354 - -*** - -### ~~elementSubmit()~~ - -```ts -elementSubmit(elementId): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidsubmit - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.elementSubmit` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:359 - -*** - -### ~~emit()~~ - -```ts -emit(eventName, ...args): boolean -``` - -Synchronously calls each of the listeners registered for the event named`eventName`, in the order they were registered, passing the supplied arguments -to each. - -Returns `true` if the event had listeners, `false` otherwise. - -```js -const EventEmitter = require('events'); -const myEmitter = new EventEmitter(); - -// First listener -myEmitter.on('event', function firstListener() { - console.log('Helloooo! first listener'); -}); -// Second listener -myEmitter.on('event', function secondListener(arg1, arg2) { - console.log(`event with parameters ${arg1}, ${arg2} in second listener`); -}); -// Third listener -myEmitter.on('event', function thirdListener(...args) { - const parameters = args.join(', '); - console.log(`event with parameters ${parameters} in third listener`); -}); - -console.log(myEmitter.listeners('event')); - -myEmitter.emit('event', 1, 2, 3, 4, 5); - -// Prints: -// [ -// [Function: firstListener], -// [Function: secondListener], -// [Function: thirdListener] -// ] -// Helloooo! first listener -// event with parameters 1, 2 in second listener -// event with parameters 1, 2, 3, 4, 5 in third listener -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| ...`args` | `any`[] | - -#### Returns - -`boolean` - -#### Since - -v0.1.26 - -#### Inherited from - -`Omit.emit` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:731 - -*** - -### ~~endCoverage()~~ - -```ts -endCoverage(intent, path): Promise -``` - -Appium Protocol Command - -Get test coverage data. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `intent` | `string` | -| `path` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/end-test-coverage/ - -#### Inherited from - -`ProtocolCommands.endCoverage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:357 - -*** - -### ~~eventNames()~~ - -```ts -eventNames(): (string | symbol)[] -``` - -Returns an array listing the events for which the emitter has registered -listeners. The values in the array are strings or `Symbol`s. - -```js -const EventEmitter = require('events'); -const myEE = new EventEmitter(); -myEE.on('foo', () => {}); -myEE.on('bar', () => {}); - -const sym = Symbol('symbol'); -myEE.on(sym, () => {}); - -console.log(myEE.eventNames()); -// Prints: [ 'foo', 'bar', Symbol(symbol) ] -``` - -#### Returns - -(`string` \| `symbol`)[] - -#### Since - -v6.0.0 - -#### Inherited from - -`Omit.eventNames` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:794 - -*** - -### ~~executeAsyncScript()~~ - -```ts -executeAsyncScript(script, args): Promise -``` - -Webdriver Protocol Command - -The Execute Async Script command causes JavaScript to execute as an anonymous function. Unlike the Execute Script command, the result of the function is ignored. Instead an additional argument is provided as the final argument to the function. This is a function that, when called, returns its first argument as the response. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `script` | `string` | -| `args` | ( \| `undefined` \| `null` \| `string` \| `number` \| `boolean` \| `object`)[] | - -#### Returns - -`Promise`\<`any`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-execute-async-script - -#### Inherited from - -`ProtocolCommands.executeAsyncScript` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:378 - -*** - -### ~~executeDriverScript()~~ - -```ts -executeDriverScript( - script, - type?, -timeout?): Promise -``` - -Appium Protocol Command - -This command enables you to specify a WebdriverIO script as a string and transmit it to the Appium server for local execution on the server itself. This approach helps minimize potential latency associated with each command. ***To utilize this command with Appium 2.0, you must have the [`execute-driver-plugin`](https://github.com/appium/appium/tree/master/packages/execute-driver-plugin) plugin installed.*** - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `script` | `string` | -| `type`? | `string` | -| `timeout`? | `number` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/appium/appium/blob/master/docs/en/commands/session/execute-driver.md - -#### Inherited from - -`ProtocolCommands.executeDriverScript` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:539 - -*** - -### ~~executeScript()~~ - -```ts -executeScript(script, args): Promise -``` - -Webdriver Protocol Command - -The Execute Script command executes a JavaScript function in the context of the current browsing context and returns the return value of the function. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `script` | `string` | -| `args` | ( \| `undefined` \| `null` \| `string` \| `number` \| `boolean` \| `object`)[] | - -#### Returns - -`Promise`\<`any`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-execute-script - -#### Inherited from - -`ProtocolCommands.executeScript` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:370 - -*** - -### ~~file()~~ - -```ts -file(file): Promise -``` - -Chromium Protocol Command - -Upload a file to remote machine on which the browser is running. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `file` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L1037-L1065 - -#### Inherited from - -`ProtocolCommands.file` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:179 - -*** - -### ~~findElement()~~ - -```ts -findElement(using, value): Promise -``` - -Webdriver Protocol Command - -The Find Element command is used to find an element in the current browsing context that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `using` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`ElementReference`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-find-element - -#### Inherited from - -`ProtocolCommands.findElement` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:202 - -*** - -### ~~findElementFromElement()~~ - -```ts -findElementFromElement( - elementId, - using, -value): Promise -``` - -Webdriver Protocol Command - -The Find Element From Element command is used to find an element from a web element in the current browsing context that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `using` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`ElementReference`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-find-element-from-element - -#### Inherited from - -`ProtocolCommands.findElementFromElement` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:234 - -*** - -### ~~findElementFromShadowRoot()~~ - -```ts -findElementFromShadowRoot( - shadowId, - using, -value): Promise -``` - -Webdriver Protocol Command - -The Find Element From Shadow Root command is used to find an element within the shadow root of an element that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `shadowId` | `string` | -| `using` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`ElementReference`\> - -#### Ref - -https://w3c.github.io/webdriver/#find-element-from-shadow-root - -#### Inherited from - -`ProtocolCommands.findElementFromShadowRoot` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:210 - -*** - -### ~~findElements()~~ - -```ts -findElements(using, value): Promise -``` - -Webdriver Protocol Command - -The Find Elements command is used to find elements in the current browsing context that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `using` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`ElementReference`[]\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-find-elements - -#### Inherited from - -`ProtocolCommands.findElements` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:218 - -*** - -### ~~findElementsFromElement()~~ - -```ts -findElementsFromElement( - elementId, - using, -value): Promise -``` - -Webdriver Protocol Command - -The Find Elements From Element command is used to find elements from a web element in the current browsing context that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `using` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`ElementReference`[]\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-find-elements-from-element - -#### Inherited from - -`ProtocolCommands.findElementsFromElement` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:242 - -*** - -### ~~findElementsFromShadowRoot()~~ - -```ts -findElementsFromShadowRoot( - shadowId, - using, -value): Promise -``` - -Webdriver Protocol Command - -The Find Elements command is used to find elements within the shadow root of an element that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `shadowId` | `string` | -| `using` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`ElementReference`[]\> - -#### Ref - -https://w3c.github.io/webdriver/#find-elements-from-shadow-root - -#### Inherited from - -`ProtocolCommands.findElementsFromShadowRoot` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:226 - -*** - -### ~~fingerPrint()~~ - -```ts -fingerPrint(fingerprintId): Promise -``` - -Appium Protocol Command - -Authenticate users by using their finger print scans on supported emulators. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `fingerprintId` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/authentication/finger-print/ - -#### Inherited from - -`ProtocolCommands.fingerPrint` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:461 - -*** - -### ~~forward()~~ - -```ts -forward(): Promise -``` - -Webdriver Protocol Command - -The Forward command causes the browser to traverse one step forwards in the joint session history of the current top-level browsing context. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-forward - -#### Inherited from - -`ProtocolCommands.forward` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:74 - -*** - -### ~~freeze()~~ - -```ts -freeze(): Promise -``` - -Chromium Protocol Command - -Freeze the current page. Extension for [Page Lifecycle API](https://developers.google.com/web/updates/2018/07/page-lifecycle-api). - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L625-L633 - -#### Inherited from - -`ProtocolCommands.freeze` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:236 - -*** - -### ~~fullPageScreenshot()~~ - -```ts -fullPageScreenshot(): Promise -``` - -Gecko Protocol Command - -Captures a screenshot of the entire page. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://phabricator.services.mozilla.com/source/mozilla-central/browse/default/testing/geckodriver/src/command.rs$43-46 - -#### Inherited from - -`ProtocolCommands.fullPageScreenshot` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/gecko.d.ts:9 - -*** - -### ~~fullscreenWindow()~~ - -```ts -fullscreenWindow(): Promise -``` - -Webdriver Protocol Command - -The Fullscreen Window command invokes the window manager-specific “full screen” operation, if any, on the window containing the current top-level browsing context. This typically increases the window to the size of the physical display and can hide browser chrome elements such as toolbars. - -#### Returns - -`Promise`\<`RectReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-fullscreen-window - -#### Inherited from - -`ProtocolCommands.fullscreenWindow` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:194 - -*** - -### ~~generateTestReport()~~ - -```ts -generateTestReport(message, group): Promise -``` - -Webdriver Protocol Command - -Generates a report for testing. Extension for [Reporting API](https://developers.google.com/web/updates/2018/09/reportingapi). __Note:__ this feature has not landed in all browsers yet. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `message` | `string` | -| `group` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/reporting/#automation - -#### Inherited from - -`ProtocolCommands.generateTestReport` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:529 - -*** - -### ~~getActiveElement()~~ - -```ts -getActiveElement(): Promise -``` - -Webdriver Protocol Command - -Get Active Element returns the active element of the current browsing context’s document element. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement). - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-active-element - -#### Inherited from - -`ProtocolCommands.getActiveElement` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:258 - -*** - -### ~~getActiveEngine()~~ - -```ts -getActiveEngine(): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactive_engine - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getActiveEngine` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:498 - -*** - -### ~~getAlertText()~~ - -```ts -getAlertText(): Promise -``` - -Webdriver Protocol Command - -The Get Alert Text command returns the message of the current user prompt. If there is no current user prompt, it returns an error. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-alert-text - -#### Inherited from - -`ProtocolCommands.getAlertText` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:458 - -*** - -### ~~getAllCookies()~~ - -```ts -getAllCookies(): Promise -``` - -Webdriver Protocol Command - -The Get All Cookies command returns all cookies associated with the address of the current browsing context’s active document. - -#### Returns - -`Promise`\<`Cookie`[]\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-all-cookies - -#### Inherited from - -`ProtocolCommands.getAllCookies` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:386 - -*** - -### ~~getApplicationCacheStatus()~~ - -```ts -getApplicationCacheStatus(): Promise -``` - -Jsonwp Protocol Command - -Get the status of the html5 application cache. - -#### Returns - -`Promise`\<`number`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidapplication_cachestatus - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getApplicationCacheStatus` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:777 - -*** - -### ~~getAvailableEngines()~~ - -```ts -getAvailableEngines(): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeavailable_engines - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getAvailableEngines` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:489 - -*** - -### ~~getCastIssueMessage()~~ - -```ts -getCastIssueMessage(): Promise -``` - -Chromium Protocol Command - -Returns error message if there is any issue in a Cast session. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#751 - -#### Inherited from - -`ProtocolCommands.getCastIssueMessage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:276 - -*** - -### ~~getCastSinks()~~ - -```ts -getCastSinks(): Promise -``` - -Chromium Protocol Command - -Returns the list of cast sinks (Cast devices) available to the Chrome media router. - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#748 - -#### Inherited from - -`ProtocolCommands.getCastSinks` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:252 - -*** - -### ~~getClipboard()~~ - -```ts -getClipboard(contentType?): Promise -``` - -Appium Protocol Command - -Get the content of the system clipboard - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `contentType`? | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/clipboard/get-clipboard/ - -#### Inherited from - -`ProtocolCommands.getClipboard` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:477 - -*** - -### ~~getContext()~~ - -```ts -getContext(): Promise -``` - -Appium Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`Context`\> - -#### Ref - -https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts - -#### Inherited from - -`ProtocolCommands.getContext` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:10 - -*** - -### ~~getContexts()~~ - -```ts -getContexts(): Promise -``` - -Appium Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`Context`[]\> - -#### Ref - -https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts - -#### Inherited from - -`ProtocolCommands.getContexts` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:26 - -*** - -### ~~getCredentials()~~ - -```ts -getCredentials(authenticatorId): Promise -``` - -Webdriver Protocol Command - -Returns one Credential Parameters object for every Public Key Credential Source stored in a Virtual Authenticator, regardless of whether they were stored using Add Credential or `navigator.credentials.create()`. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `authenticatorId` | `string` | - -#### Returns - -`Promise`\<`Credential`[]\> - -#### Ref - -https://www.w3.org/TR/webauthn-2/#sctn-automation-get-credentials - -#### Inherited from - -`ProtocolCommands.getCredentials` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:601 - -*** - -### ~~getCurrentActivity()~~ - -```ts -getCurrentActivity(): Promise -``` - -Appium Protocol Command - -Get the name of the current Android activity. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/activity/current-activity/ - -#### Inherited from - -`ProtocolCommands.getCurrentActivity` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:130 - -*** - -### ~~getCurrentPackage()~~ - -```ts -getCurrentPackage(): Promise -``` - -Appium Protocol Command - -Get the name of the current Android package. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/activity/current-package/ - -#### Inherited from - -`ProtocolCommands.getCurrentPackage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:138 - -*** - -### ~~getDeviceTime()~~ - -```ts -getDeviceTime(): Promise -``` - -Appium Protocol Command - -Get the time on the device. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/system/system-time/ - -#### Inherited from - -`ProtocolCommands.getDeviceTime` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:298 - -*** - -### ~~getDisplayDensity()~~ - -```ts -getDisplayDensity(): Promise -``` - -Appium Protocol Command - -Get display density from device. - -#### Returns - -`Promise`\<`any`\> - -#### Ref - -https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints - -#### Inherited from - -`ProtocolCommands.getDisplayDensity` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:306 - -*** - -### ~~getDownloadableFiles()~~ - -```ts -getDownloadableFiles(): Promise -``` - -Selenium Protocol Command - -List files from remote machine available for download. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://www.seleniumhq.org/ - -#### Inherited from - -`ProtocolCommands.getDownloadableFiles` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:18 - -*** - -### ~~getElementAttribute()~~ - -```ts -getElementAttribute(elementId, name): Promise -``` - -Webdriver Protocol Command - -The Get Element Attribute command will return the attribute of a web element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `name` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-element-attribute - -#### Inherited from - -`ProtocolCommands.getElementAttribute` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:282 - -*** - -### ~~getElementCSSValue()~~ - -```ts -getElementCSSValue(elementId, propertyName): Promise -``` - -Webdriver Protocol Command - -The Get Element CSS Value command retrieves the computed value of the given CSS property of the given web element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `propertyName` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-element-css-value - -#### Inherited from - -`ProtocolCommands.getElementCSSValue` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:298 - -*** - -### ~~getElementComputedLabel()~~ - -```ts -getElementComputedLabel(elementId): Promise -``` - -Webdriver Protocol Command - -Get the accessible name of the element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#get-computed-label - -#### Inherited from - -`ProtocolCommands.getElementComputedLabel` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:498 - -*** - -### ~~getElementComputedRole()~~ - -```ts -getElementComputedRole(elementId): Promise -``` - -Webdriver Protocol Command - -Get the computed WAI-ARIA role of an element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#get-computed-role - -#### Inherited from - -`ProtocolCommands.getElementComputedRole` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:490 - -*** - -### ~~getElementLocation()~~ - -```ts -getElementLocation(elementId): Promise -``` - -Jsonwp Protocol Command - -Determine an element's location on the page. The point `(0, 0)` refers to the upper-left corner of the page. The element's coordinates are returned as a JSON object with `x` and `y` properties. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidlocation - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getElementLocation` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:307 - -*** - -### ~~getElementLocationInView()~~ - -```ts -getElementLocationInView(elementId): Promise -``` - -Jsonwp Protocol Command - -Determine an element's location on the screen once it has been scrolled into view.

__Note:__ This is considered an internal command and should only be used to determine an element's location for correctly generating native events. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidlocation_in_view - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getElementLocationInView` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:316 - -*** - -### ~~getElementProperty()~~ - -```ts -getElementProperty(elementId, name): Promise -``` - -Webdriver Protocol Command - -The Get Element Property command will return the result of getting a property of an element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `name` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-element-property - -#### Inherited from - -`ProtocolCommands.getElementProperty` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:290 - -*** - -### ~~getElementRect()~~ - -```ts -getElementRect(elementId): Promise -``` - -Webdriver Protocol Command - -The Get Element Rect command returns the dimensions and coordinates of the given web element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`RectReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-element-rect - -#### Inherited from - -`ProtocolCommands.getElementRect` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:322 - -*** - -### ~~getElementShadowRoot()~~ - -```ts -getElementShadowRoot(elementId): Promise -``` - -Webdriver Protocol Command - -Get the shadow root object of an element. The result object can be used to fetch elements within this shadow root using e.g. findElementFromShadowRoots or findElementsFromShadowRoots. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`ShadowElementReference`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-active-element - -#### Inherited from - -`ProtocolCommands.getElementShadowRoot` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:250 - -*** - -### ~~getElementSize()~~ - -```ts -getElementSize(elementId): Promise -``` - -Jsonwp Protocol Command - -Determine an element's size in pixels. The size will be returned as a JSON object with `width` and `height` properties. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidsize - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "getElementRect" command instead of "getElementSize"! - -#### Inherited from - -`ProtocolCommands.getElementSize` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:325 - -*** - -### ~~getElementTagName()~~ - -```ts -getElementTagName(elementId): Promise -``` - -Webdriver Protocol Command - -The Get Element Tag Name command returns the qualified element name of the given web element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-element-tag-name - -#### Inherited from - -`ProtocolCommands.getElementTagName` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:314 - -*** - -### ~~getElementText()~~ - -```ts -getElementText(elementId): Promise -``` - -Webdriver Protocol Command - -The Get Element Text command intends to return an element’s text "as rendered". An element's rendered text is also used for locating a elements by their link text and partial link text. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-element-text - -#### Inherited from - -`ProtocolCommands.getElementText` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:306 - -*** - -### ~~getElementValue()~~ - -```ts -getElementValue(elementId): Promise -``` - -Chromium Protocol Command - -Retrieves the value of a given form control element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`null` \| `string`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/element_commands.cc#L431-L443 - -#### Inherited from - -`ProtocolCommands.getElementValue` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:212 - -*** - -### ~~getEvents()~~ - -```ts -getEvents(type): Promise -``` - -Appium Protocol Command - -Get events stored in appium server. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `type` | `string`[] | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/appium/appium/blob/master/docs/en/commands/session/events/get-events.md - -#### Inherited from - -`ProtocolCommands.getEvents` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:547 - -*** - -### ~~getGeoLocation()~~ - -```ts -getGeoLocation(): Promise -``` - -Jsonwp Protocol Command - -Get the current geo location. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocation - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getGeoLocation` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:633 - -*** - -### ~~getHubConfig()~~ - -```ts -getHubConfig(): Promise -``` - -Selenium Protocol Command - -Receive hub config remotely. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/nicegraham/selenium-grid2-api#gridapihub - -#### Inherited from - -`ProtocolCommands.getHubConfig` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:42 - -*** - -### ~~getLocalStorage()~~ - -```ts -getLocalStorage(): Promise -``` - -Jsonwp Protocol Command - -Get all keys of the storage. - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storage - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.getLocalStorage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:651 - -*** - -### ~~getLocalStorageItem()~~ - -```ts -getLocalStorageItem(key): Promise -``` - -Jsonwp Protocol Command - -Get the storage item for the given key. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `key` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storagekeykey - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.getLocalStorageItem` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:678 - -*** - -### ~~getLocalStorageSize()~~ - -```ts -getLocalStorageSize(): Promise -``` - -Jsonwp Protocol Command - -Get the number of items in the storage. - -#### Returns - -`Promise`\<`number`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlocal_storagesize - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.getLocalStorageSize` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:696 - -*** - -### ~~getLogTypes()~~ - -```ts -getLogTypes(): Promise -``` - -Jsonwp Protocol Command - -Get available log types. - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlogtypes - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "devtools" instead to get logs! - -#### Inherited from - -`ProtocolCommands.getLogTypes` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:768 - -*** - -### ~~getLogs()~~ - -```ts -getLogs(type): Promise -``` - -Jsonwp Protocol Command - -Get the log for a given log type. Log buffer is reset after each request. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `type` | `string` | - -#### Returns - -`Promise`\<`object`[]\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlog - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "devtools" instead to get logs! - -#### Inherited from - -`ProtocolCommands.getLogs` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:759 - -*** - -### ~~getMaxListeners()~~ - -```ts -getMaxListeners(): number -``` - -Returns the current max listener value for the `EventEmitter` which is either -set by `emitter.setMaxListeners(n)` or defaults to defaultMaxListeners. - -#### Returns - -`number` - -#### Since - -v1.0.0 - -#### Inherited from - -`Omit.getMaxListeners` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:647 - -*** - -### ~~getMockCalls()~~ - -```ts -getMockCalls(mockId): Promise -``` - -Saucelabs Protocol Command - -Receive request information about requests that match the mocked resource. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `mockId` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands - -#### Inherited from - -`ProtocolCommands.getMockCalls` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:177 - -*** - -### ~~getMockSensor()~~ - -```ts -getMockSensor(type): Promise -``` - -Webdriver Protocol Command - -Retrieves information about a given type of mock sensor. __Note:__ this feature has not landed in all browsers yet. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `type` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://w3c.github.io/sensors/#get-mock-sensor-command - -#### Inherited from - -`ProtocolCommands.getMockSensor` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:545 - -*** - -### ~~getMozContext()~~ - -```ts -getMozContext(): Promise -``` - -Gecko Protocol Command - -Get the context that is currently in effect, e.g. `CHROME` or `CONTENT`. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/blob/586affe0cf675b1d5c8abc756defa4a46d95391b/javascript/node/selenium-webdriver/firefox.js#L615-L622 - -#### Example - -```js -console.log(await browser.getMozContext()); // outputs: 'CHROME' -``` - -#### Inherited from - -`ProtocolCommands.getMozContext` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/gecko.d.ts:21 - -*** - -### ~~getNamedCookie()~~ - -```ts -getNamedCookie(name): Promise -``` - -Webdriver Protocol Command - -The Get Named Cookie command returns the cookie with the requested name from the associated cookies in the cookie store of the current browsing context's active document. If no cookie is found, a no such cookie error is returned. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `string` | - -#### Returns - -`Promise`\<`Cookie`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-named-cookie - -#### Inherited from - -`ProtocolCommands.getNamedCookie` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:410 - -*** - -### ~~getNetworkConditions()~~ - -```ts -getNetworkConditions(): Promise -``` - -Chromium Protocol Command - -Get current network conditions used for emulation. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L839-L859 - -#### Inherited from - -`ProtocolCommands.getNetworkConditions` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:119 - -*** - -### ~~getNetworkConnection()~~ - -```ts -getNetworkConnection(): Promise -``` - -Chromium Protocol Command - -Get the connection type for network emulation. This command is only applicable when remote end replies with `networkConnectionEnabled` capability set to `true`. - -#### Returns - -`Promise`\<`number`\> - -#### Ref - -https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-modes - -#### Example - -```js -const browser = remote({ - capabilities: { - browserName: 'chrome', - 'goog:chromeOptions': { - // Network emulation requires device mode, which is only enabled when mobile emulation is on - mobileEmulation: { deviceName: 'iPad' }, - }, - } -}); -console.log(browser.getNetworkConnection()); // outputs: 6 (Both Wi-Fi and data) -``` - -#### Inherited from - -`ProtocolCommands.getNetworkConnection` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:90 - -*** - -### ~~getOrientation()~~ - -```ts -getOrientation(): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidorientation - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getOrientation` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:534 - -*** - -### ~~getPageIndex()~~ - -```ts -getPageIndex(): Promise -``` - -Mjsonwp Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#mobile-json-wire-protocol-endpoints - -#### Deprecated - -In Appium 2.0, this method is marked as deprecated and currently has no available alternatives. - -#### Inherited from - -`ProtocolCommands.getPageIndex` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/mjsonwp.d.ts:10 - -*** - -### ~~getPageLogs()~~ - -```ts -getPageLogs(type): Promise -``` - -Saucelabs Protocol Command - -Get webpage specific log information based on the last page load. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `type` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-ExtendedDebuggingTools - -#### Examples - -```js -// Get Network Logs -console.log(browser.getPageLogs('sauce:network')); -// -// outputs: -// [{ -// "url": "https://app.saucelabs.com/dashboard", -// "statusCode": 200, -// "method": "GET", -// "requestHeaders": { -// ... -// }, -// "responseHeaders": { -// ... -// }, -// "timing": { -// ... -// } -// }, {, -// ... -// }] -// -```* - -```js -// Get Performance Logs (needs capturePerformance capability see: https://wiki.saucelabs.com/display/DOCS/Measure+Page+Load+Performance+Using+Test+Automation#MeasurePageLoadPerformanceUsingTestAutomation-EnableYourScript) -console.log(browser.getPageLogs('sauce:performance')); -// -// outputs: -// { -// "speedIndex": 1472.023, -// "timeToFirstInteractive": 1243.214, -// "firstMeaningfulPaint": 892.643, -// ... -// } -// -``` - -#### Inherited from - -`ProtocolCommands.getPageLogs` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:48 - -*** - -### ~~getPageSource()~~ - -```ts -getPageSource(): Promise -``` - -Webdriver Protocol Command - -The Get Page Source command returns a string serialization of the DOM of the current browsing context active document. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-page-source - -#### Inherited from - -`ProtocolCommands.getPageSource` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:362 - -*** - -### ~~getPerformanceData()~~ - -```ts -getPerformanceData( - packageName, - dataType, -dataReadTimeout?): Promise -``` - -Appium Protocol Command - -Returns the information of the system state which is supported to read as like cpu, memory, network traffic, and battery. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `packageName` | `string` | -| `dataType` | `string` | -| `dataReadTimeout`? | `number` | - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/performance-data/get-performance-data/ - -#### Inherited from - -`ProtocolCommands.getPerformanceData` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:90 - -*** - -### ~~getPerformanceDataTypes()~~ - -```ts -getPerformanceDataTypes(): Promise -``` - -Appium Protocol Command - -Returns the information types of the system state which is supported to read as like cpu, memory, network traffic, and battery. - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/performance-data/performance-data-types/ - -#### Inherited from - -`ProtocolCommands.getPerformanceDataTypes` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:82 - -*** - -### ~~getSession()~~ - -```ts -getSession(): Promise -``` - -Jsonwp Protocol Command - -Retrieve the capabilities of the specified session. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionid - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getSession` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:36 - -*** - -### ~~getSessionStorage()~~ - -```ts -getSessionStorage(): Promise -``` - -Jsonwp Protocol Command - -Get all keys of the storage. - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidsession_storage - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.getSessionStorage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:705 - -*** - -### ~~getSessionStorageItem()~~ - -```ts -getSessionStorageItem(key): Promise -``` - -Jsonwp Protocol Command - -Get the storage item for the given key. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `key` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidsession_storagekeykey - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.getSessionStorageItem` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:732 - -*** - -### ~~getSessionStorageSize()~~ - -```ts -getSessionStorageSize(): Promise -``` - -Jsonwp Protocol Command - -Get the number of items in the storage. - -#### Returns - -`Promise`\<`number`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidsession_storagesize - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.getSessionStorageSize` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:750 - -*** - -### ~~getSessions()~~ - -```ts -getSessions(): Promise -``` - -Jsonwp Protocol Command - -Returns a list of the currently active sessions. Each session will be returned as a list of JSON objects containing `id` and `capabilities`. - -#### Returns - -`Promise`\<`object`[]\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessions - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getSessions` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:27 - -*** - -### ~~getSettings()~~ - -```ts -getSettings(): Promise -``` - -Appium Protocol Command - -Retrieve the current settings on the device. - -#### Returns - -`Promise`\<`SettingsReturn`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/session/settings/get-settings/ - -#### Inherited from - -`ProtocolCommands.getSettings` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:389 - -*** - -### ~~getStrings()~~ - -```ts -getStrings(language?, stringFile?): Promise -``` - -Appium Protocol Command - -Get app strings. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `language`? | `string` | -| `stringFile`? | `string` | - -#### Returns - -`Promise`\<`StringsReturn`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/get-app-strings/ - -#### Inherited from - -`ProtocolCommands.getStrings` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:365 - -*** - -### ~~getSystemBars()~~ - -```ts -getSystemBars(): Promise -``` - -Appium Protocol Command - -Retrieve visibility and bounds information of the status and navigation bars. - -#### Returns - -`Promise`\<`object`[]\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/system/system-bars/ - -#### Inherited from - -`ProtocolCommands.getSystemBars` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:290 - -*** - -### ~~getTimeouts()~~ - -```ts -getTimeouts(): Promise -``` - -Webdriver Protocol Command - -The Get Timeouts command gets timeout durations associated with the current session. - -#### Returns - -`Promise`\<`Timeouts`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-timeouts - -#### Inherited from - -`ProtocolCommands.getTimeouts` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:34 - -*** - -### ~~getTitle()~~ - -```ts -getTitle(): Promise -``` - -Webdriver Protocol Command - -The Get Title command returns the document title of the current top-level browsing context, equivalent to calling `document.title`. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-title - -#### Inherited from - -`ProtocolCommands.getTitle` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:90 - -*** - -### ~~getUrl()~~ - -```ts -getUrl(): Promise -``` - -Webdriver Protocol Command - -The Get Current URL command returns the URL of the current top-level browsing context. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-current-url - -#### Inherited from - -`ProtocolCommands.getUrl` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:50 - -*** - -### ~~getWindowHandle()~~ - -```ts -getWindowHandle(): Promise -``` - -Webdriver Protocol Command - -The Get Window Handle command returns the window handle for the current top-level browsing context. It can be used as an argument to Switch To Window. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-window-handle - -#### Inherited from - -`ProtocolCommands.getWindowHandle` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:98 - -*** - -### ~~getWindowHandles()~~ - -```ts -getWindowHandles(): Promise -``` - -Webdriver Protocol Command - -The Get Window Handles command returns a list of window handles for every open top-level browsing context. The order in which the window handles are returned is arbitrary. - -#### Returns - -`Promise`\<`string`[]\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-window-handles - -#### Inherited from - -`ProtocolCommands.getWindowHandles` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:130 - -*** - -### ~~getWindowPosition()~~ - -```ts -getWindowPosition(): Promise -``` - -Jsonwp Protocol Command - -Get the position of the current focussed window. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidwindowwindowhandleposition - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.getWindowPosition` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:175 - -*** - -### ~~getWindowRect()~~ - -```ts -getWindowRect(): Promise -``` - -Webdriver Protocol Command - -The Get Window Rect command returns the size and position on the screen of the operating system window corresponding to the current top-level browsing context. - -#### Returns - -`Promise`\<`RectReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-get-window-rect - -#### Inherited from - -`ProtocolCommands.getWindowRect` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:162 - -*** - -### ~~gridProxyDetails()~~ - -```ts -gridProxyDetails(id): Promise -``` - -Selenium Protocol Command - -Get proxy details. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `id` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/nicegraham/selenium-grid2-api#gridapiproxy - -#### Inherited from - -`ProtocolCommands.gridProxyDetails` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:58 - -*** - -### ~~gridTestSession()~~ - -```ts -gridTestSession(session): Promise -``` - -Selenium Protocol Command - -Get the details of the Selenium Grid node running a session. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `session` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/nicegraham/selenium-grid2-api#gridapitestsession - -#### Inherited from - -`ProtocolCommands.gridTestSession` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:50 - -*** - -### ~~gsmCall()~~ - -```ts -gsmCall(phoneNumber, action): Promise -``` - -Appium Protocol Command - -Make GSM call (Emulator only). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `phoneNumber` | `string` | -| `action` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/gsm-call/ - -#### Inherited from - -`ProtocolCommands.gsmCall` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:413 - -*** - -### ~~gsmSignal()~~ - -```ts -gsmSignal(signalStrength, signalStrengh?): Promise -``` - -Appium Protocol Command - -Set GSM signal strength (Emulator only). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `signalStrength` | `string` | -| `signalStrengh`? | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/gsm-signal/ - -#### Inherited from - -`ProtocolCommands.gsmSignal` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:421 - -*** - -### ~~gsmVoice()~~ - -```ts -gsmVoice(state): Promise -``` - -Appium Protocol Command - -Set GSM voice state (Emulator only). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `state` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/gsm-voice/ - -#### Inherited from - -`ProtocolCommands.gsmVoice` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:445 - -*** - -### ~~hideKeyboard()~~ - -```ts -hideKeyboard( - strategy?, - key?, - keyCode?, -keyName?): Promise -``` - -Appium Protocol Command - -Hide soft keyboard. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `strategy`? | `string` | -| `key`? | `string` | -| `keyCode`? | `string` | -| `keyName`? | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/keys/hide-keyboard/ - -#### Inherited from - -`ProtocolCommands.hideKeyboard` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:194 - -*** - -### ~~inputPerformActions()~~ - -```ts -inputPerformActions(params): Promise -``` - -WebDriver Bidi command to send command method "input.performActions" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `InputPerformActionsParameters` | `remote.InputPerformActionsParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-input-performActions) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-input-performActions - -#### Inherited from - -`BidiHandler.inputPerformActions` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:242 - -*** - -### ~~inputReleaseActions()~~ - -```ts -inputReleaseActions(params): Promise -``` - -WebDriver Bidi command to send command method "input.releaseActions" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `InputReleaseActionsParameters` | `remote.InputReleaseActionsParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-input-releaseActions) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-input-releaseActions - -#### Inherited from - -`BidiHandler.inputReleaseActions` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:249 - -*** - -### ~~installAddOn()~~ - -```ts -installAddOn(addon, temporary): Promise -``` - -Gecko Protocol Command - -Installs a new addon with the current session. This function will return an ID that may later be used to uninstall the addon using `uninstallAddon`. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `addon` | `string` | -| `temporary` | `boolean` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/blob/586affe0cf675b1d5c8abc756defa4a46d95391b/javascript/node/selenium-webdriver/firefox.js#L647-L668 - -#### Example - -```js -// Create a buffer of the add on .zip file -const extension = await fs.promises.readFile('/path/to/extension.zip') -// Load extension in Firefox -const id = await browser.installAddOn(extension.toString('base64'), false); -``` - -#### Inherited from - -`ProtocolCommands.installAddOn` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/gecko.d.ts:50 - -*** - -### ~~installApp()~~ - -```ts -installApp(appPath): Promise -``` - -Appium Protocol Command - -Install the given app onto the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `appPath` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/install-app/ - -#### Inherited from - -`ProtocolCommands.installApp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:146 - -*** - -### ~~interceptRequest()~~ - -```ts -interceptRequest(rule): Promise -``` - -Saucelabs Protocol Command - -Allows modifying any request made by the browser. You can blacklist, modify, or redirect these as required for your tests. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `rule` | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-InterceptNetworkRequests - -#### Examples - -```js -// redirect a request -browser.interceptRequest({ - url: 'https://saucelabs.com', - redirect: 'https://google.com' -}) -```* - -```js -// Blacklist requests to 3rd party vendors -browser.interceptRequest({ - url: 'https://api.segment.io/v1/p', - error: 'Failed' -}) -```* - -```js -// Modify requests to REST API (Mock REST API response) -browser.interceptRequest({ - url: 'http://sampleapp.appspot.com/api/todos', - response: { - headers: { - 'x-custom-headers': 'foobar' - }, - body: [{ - title: 'My custom todo', - order: 1, - completed: false, - url: 'http://todo-backend-express.herokuapp.com/15727' - }] - } -}) -``` - -#### Inherited from - -`ProtocolCommands.interceptRequest` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:130 - -*** - -### ~~isAlertOpen()~~ - -```ts -isAlertOpen(): Promise -``` - -Chromium Protocol Command - -Whether a simple dialog is currently open. - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/alert_commands.cc#L42-L49 - -#### Example - -```js -console.log(browser.isAlertOpen()); // outputs: false -browser.execute('window.alert()'); -console.log(browser.isAlertOpen()); // outputs: true -``` - -#### Inherited from - -`ProtocolCommands.isAlertOpen` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:16 - -*** - -### ~~isAppInstalled()~~ - -```ts -isAppInstalled(appId): Promise -``` - -Appium Protocol Command - -Check whether the specified app is installed on the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `appId` | `string` | - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/is-app-installed/ - -#### Inherited from - -`ProtocolCommands.isAppInstalled` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:178 - -*** - -### ~~isAutoReporting()~~ - -```ts -isAutoReporting(): Promise -``` - -Chromium Protocol Command - -Whether it should automatically raises errors on browser logs. - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://codereview.chromium.org/101203012 - -#### Inherited from - -`ProtocolCommands.isAutoReporting` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:24 - -*** - -### ~~isElementDisplayed()~~ - -```ts -isElementDisplayed(elementId): Promise -``` - -Webdriver Protocol Command - -Is Element Displayed determines the visibility of an element which is guided by what is perceptually visible to the human eye. In this context, an element's displayedness does not relate to the `visibility` or `display` style properties. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://w3c.github.io/webdriver/#element-displayedness - -#### Inherited from - -`ProtocolCommands.isElementDisplayed` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:274 - -*** - -### ~~isElementEnabled()~~ - -```ts -isElementEnabled(elementId): Promise -``` - -Webdriver Protocol Command - -Is Element Enabled determines if the referenced element is enabled or not. This operation only makes sense on form controls. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-is-element-enabled - -#### Inherited from - -`ProtocolCommands.isElementEnabled` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:330 - -*** - -### ~~isElementSelected()~~ - -```ts -isElementSelected(elementId): Promise -``` - -Webdriver Protocol Command - -Is Element Selected determines if the referenced element is selected or not. This operation only makes sense on input elements of the Checkbox- and Radio Button states, or option elements. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-is-element-selected - -#### Inherited from - -`ProtocolCommands.isElementSelected` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:266 - -*** - -### ~~isIMEActivated()~~ - -```ts -isIMEActivated(): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactivated - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.isIMEActivated` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:507 - -*** - -### ~~isKeyboardShown()~~ - -```ts -isKeyboardShown(): Promise -``` - -Appium Protocol Command - -Whether or not the soft keyboard is shown. - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/keys/is-keyboard-shown/ - -#### Inherited from - -`ProtocolCommands.isKeyboardShown` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:202 - -*** - -### ~~isLoading()~~ - -```ts -isLoading(): Promise -``` - -Chromium Protocol Command - -Determines load status for active window handle. - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L783-L802 - -#### Example - -```js -console.log(browser.isLoading()); // outputs: false -browser.newWindow('https://webdriver.io'); -console.log(browser.isLoading()); // outputs: true -``` - -#### Inherited from - -`ProtocolCommands.isLoading` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:61 - -*** - -### ~~isLocked()~~ - -```ts -isLocked(): Promise -``` - -Appium Protocol Command - -Check whether the device is locked or not. - -#### Returns - -`Promise`\<`boolean`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/interactions/is-locked/ - -#### Inherited from - -`ProtocolCommands.isLocked` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:58 - -*** - -### ~~jankinessCheck()~~ - -```ts -jankinessCheck(): Promise -``` - -Saucelabs Protocol Command - -Perform a scroll test that evaluates the jankiness of the application. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands - -#### Example - -```js -// test performance for a page -browser.url('https://webdriver.io') -browser.jankinessCheck() -``` - -#### Inherited from - -`ProtocolCommands.jankinessCheck` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:161 - -*** - -### ~~launchApp()~~ - -```ts -launchApp(): Promise -``` - -Appium Protocol Command - -Launch an app on device. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/launch-app/ - -#### Deprecated - -For iOS, utilize `driver.execute('mobile: launchApp', { ... })`, and for Android, make use of `driver.execute('mobile: activateApp', { ... })`. - -#### Inherited from - -`ProtocolCommands.launchApp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:331 - -*** - -### ~~launchChromeApp()~~ - -```ts -launchChromeApp(id): Promise -``` - -Chromium Protocol Command - -Launches a Chrome app by specified id. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `id` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L521-L539 - -#### Example - -```js -import fs from 'fs' -const browser = remote({ - capabilities: { - browserName: 'chrome', - 'goog:chromeOptions': { - // Install upon starting browser in order to launch it - extensions: [ - // Entry should be a base64-encoded packed Chrome app (.crx) - fs.readFileSync('/absolute/path/app.crx').toString('base64') - ] - } - } -}); -browser.launchChromeApp('aohghmighlieiainnegkcijnfilokake')); // Google Docs (https://chrome.google.com/webstore/detail/docs/aohghmighlieiainnegkcijnfilokake) -``` - -#### Inherited from - -`ProtocolCommands.launchChromeApp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:204 - -*** - -### ~~listenerCount()~~ - -```ts -listenerCount(eventName, listener?): number -``` - -Returns the number of listeners listening to the event named `eventName`. - -If `listener` is provided, it will return how many times the listener -is found in the list of the listeners of the event. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `eventName` | `string` \| `symbol` | The name of the event being listened for | -| `listener`? | `Function` | The event handler function | - -#### Returns - -`number` - -#### Since - -v3.2.0 - -#### Inherited from - -`Omit.listenerCount` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:741 - -*** - -### ~~listeners()~~ - -```ts -listeners(eventName): Function[] -``` - -Returns a copy of the array of listeners for the event named `eventName`. - -```js -server.on('connection', (stream) => { - console.log('someone connected!'); -}); -console.log(util.inspect(server.listeners('connection'))); -// Prints: [ [Function] ] -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | - -#### Returns - -`Function`[] - -#### Since - -v0.1.26 - -#### Inherited from - -`Omit.listeners` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:660 - -*** - -### ~~lock()~~ - -```ts -lock(seconds?): Promise -``` - -Appium Protocol Command - -Lock the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `seconds`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/interactions/lock/ - -#### Inherited from - -`ProtocolCommands.lock` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:42 - -*** - -### ~~logEvent()~~ - -```ts -logEvent(vendor, event): Promise -``` - -Appium Protocol Command - -Store a custom event. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `vendor` | `string` | -| `event` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/appium/appium/blob/master/docs/en/commands/session/events/log-event.md - -#### Inherited from - -`ProtocolCommands.logEvent` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:555 - -*** - -### ~~longPressKeyCode()~~ - -```ts -longPressKeyCode( - keycode, - metastate?, -flags?): Promise -``` - -Appium Protocol Command - -Press and hold a particular key code on the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `keycode` | `number` | -| `metastate`? | `number` | -| `flags`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/keys/long-press-keycode/ - -#### Inherited from - -`ProtocolCommands.longPressKeyCode` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:106 - -*** - -### ~~manageSeleniumHubLifecycle()~~ - -```ts -manageSeleniumHubLifecycle(action): Promise -``` - -Selenium Protocol Command - -Manage lifecycle of hub node. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `action` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/nicegraham/selenium-grid2-api#lifecycle-manager - -#### Inherited from - -`ProtocolCommands.manageSeleniumHubLifecycle` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:66 - -*** - -### ~~maximizeWindow()~~ - -```ts -maximizeWindow(): Promise -``` - -Webdriver Protocol Command - -The Maximize Window command invokes the window manager-specific "maximize" operation, if any, on the window containing the current top-level browsing context. This typically increases the window to the maximum available size without going full-screen. - -#### Returns - -`Promise`\<`RectReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-maximize-window - -#### Inherited from - -`ProtocolCommands.maximizeWindow` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:178 - -*** - -### ~~minimizeWindow()~~ - -```ts -minimizeWindow(): Promise -``` - -Webdriver Protocol Command - -The Minimize Window command invokes the window manager-specific "minimize" operation, if any, on the window containing the current top-level browsing context. This typically hides the window in the system tray. - -#### Returns - -`Promise`\<`RectReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-minimize-window - -#### Inherited from - -`ProtocolCommands.minimizeWindow` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:186 - -*** - -### ~~mockRequest()~~ - -```ts -mockRequest(url, filterOptions?): Promise -``` - -Saucelabs Protocol Command - -Mocks a network resource. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `url` | `string` | -| `filterOptions`? | `object` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands - -#### Inherited from - -`ProtocolCommands.mockRequest` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:169 - -*** - -### ~~moveToElement()~~ - -```ts -moveToElement( - element?, - xoffset?, -yoffset?): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `element`? | `null` \| `string` | -| `xoffset`? | `number` | -| `yoffset`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidmoveto - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a "move to" gesture! - -#### Inherited from - -`ProtocolCommands.moveToElement` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:552 - -*** - -### ~~multiTouchPerform()~~ - -```ts -multiTouchPerform(actions): Promise -``` - -Appium Protocol Command - -This functionality is only available from within a native context. Perform a multi touch action sequence. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `actions` | `object`[] | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/interactions/touch/multi-touch-perform/ - -#### Inherited from - -`ProtocolCommands.multiTouchPerform` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:531 - -*** - -### ~~navigateTo()~~ - -```ts -navigateTo(url): Promise -``` - -Webdriver Protocol Command - -The navigateTo (go) command is used to cause the user agent to navigate the current top-level browsing context a new location. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `url` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-navigate-to - -#### Inherited from - -`ProtocolCommands.navigateTo` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:58 - -*** - -### ~~networkAddIntercept()~~ - -```ts -networkAddIntercept(params): Promise -``` - -WebDriver Bidi command to send command method "network.addIntercept" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `NetworkAddInterceptParameters` | `remote.NetworkAddInterceptParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-network-addIntercept) | - -#### Returns - -`Promise`\<`NetworkAddInterceptResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-network-addIntercept - -#### Inherited from - -`BidiHandler.networkAddIntercept` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:151 - -*** - -### ~~networkContinueRequest()~~ - -```ts -networkContinueRequest(params): Promise -``` - -WebDriver Bidi command to send command method "network.continueRequest" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `NetworkContinueRequestParameters` | `remote.NetworkContinueRequestParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-network-continueRequest) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-network-continueRequest - -#### Inherited from - -`BidiHandler.networkContinueRequest` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:158 - -*** - -### ~~networkContinueResponse()~~ - -```ts -networkContinueResponse(params): Promise -``` - -WebDriver Bidi command to send command method "network.continueResponse" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `NetworkContinueResponseParameters` | `remote.NetworkContinueResponseParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-network-continueResponse) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-network-continueResponse - -#### Inherited from - -`BidiHandler.networkContinueResponse` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:165 - -*** - -### ~~networkContinueWithAuth()~~ - -```ts -networkContinueWithAuth(params): Promise -``` - -WebDriver Bidi command to send command method "network.continueWithAuth" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `NetworkContinueWithAuthParameters` | `remote.NetworkContinueWithAuthParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-network-continueWithAuth) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-network-continueWithAuth - -#### Inherited from - -`BidiHandler.networkContinueWithAuth` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:172 - -*** - -### ~~networkFailRequest()~~ - -```ts -networkFailRequest(params): Promise -``` - -WebDriver Bidi command to send command method "network.failRequest" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `NetworkFailRequestParameters` | `remote.NetworkFailRequestParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-network-failRequest) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-network-failRequest - -#### Inherited from - -`BidiHandler.networkFailRequest` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:179 - -*** - -### ~~networkProvideResponse()~~ - -```ts -networkProvideResponse(params): Promise -``` - -WebDriver Bidi command to send command method "network.provideResponse" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `NetworkProvideResponseParameters` | `remote.NetworkProvideResponseParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-network-provideResponse) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-network-provideResponse - -#### Inherited from - -`BidiHandler.networkProvideResponse` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:186 - -*** - -### ~~networkRemoveIntercept()~~ - -```ts -networkRemoveIntercept(params): Promise -``` - -WebDriver Bidi command to send command method "network.removeIntercept" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `NetworkRemoveInterceptParameters` | `remote.NetworkRemoveInterceptParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-network-removeIntercept) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-network-removeIntercept - -#### Inherited from - -`BidiHandler.networkRemoveIntercept` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:193 - -*** - -### ~~newSession()~~ - -```ts -newSession(capabilities): Promise -``` - -Webdriver Protocol Command - -The New Session command creates a new WebDriver session with the endpoint node. If the creation fails, a session not created error is returned. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `capabilities` | `object` | - -#### Returns - -`Promise`\<`SessionReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-new-sessions - -#### Inherited from - -`ProtocolCommands.newSession` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:10 - -*** - -### ~~off()~~ - -```ts -off(eventName, listener): this -``` - -Alias for `emitter.removeListener()`. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| `listener` | (...`args`) => `void` | - -#### Returns - -`this` - -#### Since - -v10.0.0 - -#### Inherited from - -`Omit.off` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:620 - -*** - -### ~~on()~~ - -```ts -on(event, listener): this -``` - -#### Type Parameters - -| Type Parameter | -| ------ | -| `K` *extends* \| `"browsingContext.contextCreated"` \| `"browsingContext.contextDestroyed"` \| `"browsingContext.domContentLoaded"` \| `"browsingContext.downloadWillBegin"` \| `"browsingContext.fragmentNavigated"` \| `"browsingContext.load"` \| `"browsingContext.navigationAborted"` \| `"browsingContext.navigationFailed"` \| `"browsingContext.navigationStarted"` \| `"browsingContext.userPromptClosed"` \| `"browsingContext.userPromptOpened"` \| `"log.entryAdded"` \| `"network.authRequired"` \| `"network.beforeRequestSent"` \| `"network.fetchError"` \| `"network.responseCompleted"` \| `"network.responseStarted"` \| `"script.message"` \| `"script.realmCreated"` \| `"script.realmDestroyed"` \| keyof WebDriverClassicEvents | - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `event` | `K` | -| `listener` | (`this`, `param`) => `void` | - -#### Returns - -`this` - -#### Inherited from - -`BidiEventHandler.on` - -#### Defined in - -testplane/node\_modules/webdriver/build/types.d.ts:66 - -*** - -### ~~once()~~ - -```ts -once(event, listener): this -``` - -#### Type Parameters - -| Type Parameter | -| ------ | -| `K` *extends* \| `"browsingContext.contextCreated"` \| `"browsingContext.contextDestroyed"` \| `"browsingContext.domContentLoaded"` \| `"browsingContext.downloadWillBegin"` \| `"browsingContext.fragmentNavigated"` \| `"browsingContext.load"` \| `"browsingContext.navigationAborted"` \| `"browsingContext.navigationFailed"` \| `"browsingContext.navigationStarted"` \| `"browsingContext.userPromptClosed"` \| `"browsingContext.userPromptOpened"` \| `"log.entryAdded"` \| `"network.authRequired"` \| `"network.beforeRequestSent"` \| `"network.fetchError"` \| `"network.responseCompleted"` \| `"network.responseStarted"` \| `"script.message"` \| `"script.realmCreated"` \| `"script.realmDestroyed"` \| keyof WebDriverClassicEvents | - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `event` | `K` | -| `listener` | (`this`, `param`) => `void` | - -#### Returns - -`this` - -#### Inherited from - -`BidiEventHandler.once` - -#### Defined in - -testplane/node\_modules/webdriver/build/types.d.ts:67 - -*** - -### ~~openNotifications()~~ - -```ts -openNotifications(): Promise -``` - -Appium Protocol Command - -Open Android notifications (Emulator only). - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/system/open-notifications/ - -#### Inherited from - -`ProtocolCommands.openNotifications` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:274 - -*** - -### ~~overwriteCommand()~~ - -```ts -overwriteCommand( - name, - func, - attachToElement?, - proto?, - instances?): void -``` - -overwrite `browser` or `element` command - -#### Type Parameters - -| Type Parameter | Default type | -| ------ | ------ | -| `ElementKey` *extends* \| `"$"` \| `"custom$"` \| `"shadow$"` \| `"react$"` \| `"$$"` \| `"custom$$"` \| `"shadow$$"` \| `"react$$"` \| `"saveScreenshot"` \| `"touchAction"` \| `"waitUntil"` \| `"addValue"` \| `"clearValue"` \| `"click"` \| `"doubleClick"` \| `"dragAndDrop"` \| `"getAttribute"` \| `"getCSSProperty"` \| `"getComputedLabel"` \| `"getComputedRole"` \| `"getHTML"` \| `"getLocation"` \| `"getProperty"` \| `"getSize"` \| `"getTagName"` \| `"getText"` \| `"getValue"` \| `"isClickable"` \| `"isDisplayed"` \| `"isDisplayedInViewport"` \| `"isEnabled"` \| `"isEqual"` \| `"isExisting"` \| `"isFocused"` \| `"isSelected"` \| `"moveTo"` \| `"nextElement"` \| `"parentElement"` \| `"previousElement"` \| `"scrollIntoView"` \| `"selectByAttribute"` \| `"selectByIndex"` \| `"selectByVisibleText"` \| `"setValue"` \| `"waitForClickable"` \| `"waitForDisplayed"` \| `"waitForEnabled"` \| `"waitForExist"` \| `"isStable"` \| `"waitForStable"` | - | -| `BrowserKey` *extends* \| `"keys"` \| `"$"` \| `"custom$"` \| `"react$"` \| `"$$"` \| `"custom$$"` \| `"react$$"` \| `"action"` \| `"actions"` \| `"call"` \| `"debug"` \| `"deleteCookies"` \| `"downloadFile"` \| `"emulate"` \| `"execute"` \| `"executeAsync"` \| `"getCookies"` \| `"getPuppeteer"` \| `"getWindowSize"` \| `"mock"` \| `"SESSION_MOCKS"` \| `"CDP_SESSIONS"` \| `"mockClearAll"` \| `"mockRestoreAll"` \| `"newWindow"` \| `"pause"` \| `"reloadSession"` \| `"savePDF"` \| `"saveRecordingScreen"` \| `"saveScreenshot"` \| `"scroll"` \| `"setCookies"` \| `"setTimeout"` \| `"setWindowSize"` \| `"switchWindow"` \| `"throttle"` \| `"throttleCPU"` \| `"throttleNetwork"` \| `"touchAction"` \| `"uploadFile"` \| `"url"` \| `"waitUntil"` | - | -| `IsElement` *extends* `boolean` | `false` | - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `IsElement` *extends* `true` ? `ElementKey` : `BrowserKey` | -| `func` | `OverwriteCommandFn`\<`ElementKey`, `BrowserKey`, `IsElement`\> \| `OverwriteCommandFnScoped`\<`ElementKey`, `BrowserKey`, `IsElement`\> | -| `attachToElement`? | `IsElement` | -| `proto`? | `Record`\<`string`, `any`\> | -| `instances`? | `Record`\<`string`, `Browser` \| `MultiRemoteBrowser`\> | - -#### Returns - -`void` - -#### Inherited from - -`Omit.overwriteCommand` - -#### Defined in - -testplane/node\_modules/webdriverio/build/types.d.ts:139 - -*** - -### ~~performActions()~~ - -```ts -performActions(actions): Promise -``` - -Webdriver Protocol Command - -The Perform Actions command is used to execute complex user actions. See [spec](https://github.com/jlipps/simple-wd-spec#perform-actions) for more details. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `actions` | `object`[] | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-perform-actions - -#### Inherited from - -`ProtocolCommands.performActions` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:426 - -*** - -### ~~positionClick()~~ - -```ts -positionClick(button?): Promise -``` - -Jsonwp Protocol Command - -Clicks at the current mouse coordinates (set by moveto). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `button`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidclick - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead of "positionClick"! - -#### Inherited from - -`ProtocolCommands.positionClick` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:579 - -*** - -### ~~positionDoubleClick()~~ - -```ts -positionDoubleClick(): Promise -``` - -Jsonwp Protocol Command - -Double-clicks at the current mouse coordinates (set by moveto). - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessioniddoubleclick - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a click gesture! - -#### Inherited from - -`ProtocolCommands.positionDoubleClick` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:588 - -*** - -### ~~powerAC()~~ - -```ts -powerAC(state): Promise -``` - -Appium Protocol Command - -Set the state of the battery charger to connected or not (Emulator only). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `state` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/emulator/power_ac/ - -#### Inherited from - -`ProtocolCommands.powerAC` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:437 - -*** - -### ~~powerCapacity()~~ - -```ts -powerCapacity(percent): Promise -``` - -Appium Protocol Command - -Set the battery percentage (Emulator only). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `percent` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/emulator/power_capacity/ - -#### Inherited from - -`ProtocolCommands.powerCapacity` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:429 - -*** - -### ~~prependListener()~~ - -```ts -prependListener(eventName, listener): this -``` - -Adds the `listener` function to the _beginning_ of the listeners array for the -event named `eventName`. No checks are made to see if the `listener` has -already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple -times. - -```js -server.prependListener('connection', (stream) => { - console.log('someone connected!'); -}); -``` - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `eventName` | `string` \| `symbol` | The name of the event. | -| `listener` | (...`args`) => `void` | The callback function | - -#### Returns - -`this` - -#### Since - -v6.0.0 - -#### Inherited from - -`Omit.prependListener` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:759 - -*** - -### ~~prependOnceListener()~~ - -```ts -prependOnceListener(eventName, listener): this -``` - -Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this -listener is removed, and then invoked. - -```js -server.prependOnceListener('connection', (stream) => { - console.log('Ah, we have our first user!'); -}); -``` - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `eventName` | `string` \| `symbol` | The name of the event. | -| `listener` | (...`args`) => `void` | The callback function | - -#### Returns - -`this` - -#### Since - -v6.0.0 - -#### Inherited from - -`Omit.prependOnceListener` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:775 - -*** - -### ~~pressKeyCode()~~ - -```ts -pressKeyCode( - keycode, - metastate?, -flags?): Promise -``` - -Appium Protocol Command - -Press a particular key on the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `keycode` | `number` | -| `metastate`? | `number` | -| `flags`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/keys/press-keycode/ - -#### Inherited from - -`ProtocolCommands.pressKeyCode` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:98 - -*** - -### ~~printPage()~~ - -```ts -printPage( - orientation?, - scale?, - background?, - width?, - height?, - top?, - bottom?, - left?, - right?, - shrinkToFit?, -pageRanges?): Promise -``` - -Webdriver Protocol Command - -The Print Page command renders the document to a paginated PDF document. __Note:__ Chrome currently only supports this in [headless mode](https://webdriver.io/docs/capabilities/#run-browser-headless), see [`crbug753118`](https://bugs.chromium.org/p/chromium/issues/detail?id=753118)). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `orientation`? | `string` | -| `scale`? | `number` | -| `background`? | `boolean` | -| `width`? | `number` | -| `height`? | `number` | -| `top`? | `number` | -| `bottom`? | `number` | -| `left`? | `number` | -| `right`? | `number` | -| `shrinkToFit`? | `boolean` | -| `pageRanges`? | `object`[] | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#print-page - -#### Inherited from - -`ProtocolCommands.printPage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:138 - -*** - -### ~~pullFile()~~ - -```ts -pullFile(path): Promise -``` - -Appium Protocol Command - -Retrieve a file from the device's file system. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `path` | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/files/pull-file/ - -#### Inherited from - -`ProtocolCommands.pullFile` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:218 - -*** - -### ~~pullFolder()~~ - -```ts -pullFolder(path): Promise -``` - -Appium Protocol Command - -Retrieve a folder from the device's file system. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `path` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/files/pull-folder/ - -#### Inherited from - -`ProtocolCommands.pullFolder` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:226 - -*** - -### ~~pushFile()~~ - -```ts -pushFile(path, data): Promise -``` - -Appium Protocol Command - -Place a file onto the device in a particular place. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `path` | `string` | -| `data` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/files/push-file/ - -#### Inherited from - -`ProtocolCommands.pushFile` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:210 - -*** - -### ~~queryAppState()~~ - -```ts -queryAppState(appId): Promise -``` - -Appium Protocol Command - -Get the given app status on the device - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `appId` | `string` | - -#### Returns - -`Promise`\<`number`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/app-state/ - -#### Inherited from - -`ProtocolCommands.queryAppState` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:186 - -*** - -### ~~queryGrid()~~ - -```ts -queryGrid(query): Promise -``` - -Selenium Protocol Command - -Send GraphQL queries to the Selenium (hub or node) server to fetch data. (Only supported with Selenium v4 Server) - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `query` | `string` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://www.selenium.dev/documentation/grid/advanced_features/graphql_support/ - -#### Example - -```js -const result = await browser.queryGrid('{ nodesInfo { nodes { status, uri } } }'); -console.log(JSON.stringify(result, null, 4)) -// -// outputs: -// { -// "data": { -// "nodesInfo": { -// "nodes": [{ -// "status": "UP", -// "uri": "http://192.168.0.39:4444" -// }] -// } -// } -// } -// -``` - -#### Inherited from - -`ProtocolCommands.queryGrid` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/selenium.d.ts:92 - -*** - -### ~~rawListeners()~~ - -```ts -rawListeners(eventName): Function[] -``` - -Returns a copy of the array of listeners for the event named `eventName`, -including any wrappers (such as those created by `.once()`). - -```js -const emitter = new EventEmitter(); -emitter.once('log', () => console.log('log once')); - -// Returns a new Array with a function `onceWrapper` which has a property -// `listener` which contains the original listener bound above -const listeners = emitter.rawListeners('log'); -const logFnWrapper = listeners[0]; - -// Logs "log once" to the console and does not unbind the `once` event -logFnWrapper.listener(); - -// Logs "log once" to the console and removes the listener -logFnWrapper(); - -emitter.on('log', () => console.log('log persistently')); -// Will return a new Array with a single function bound by `.on()` above -const newListeners = emitter.rawListeners('log'); - -// Logs "log persistently" twice -newListeners[0](); -emitter.emit('log'); -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | - -#### Returns - -`Function`[] - -#### Since - -v9.4.0 - -#### Inherited from - -`Omit.rawListeners` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:690 - -*** - -### ~~receiveAsyncResponse()~~ - -```ts -receiveAsyncResponse(response): Promise -``` - -Appium Protocol Command - -Callback url for asynchronous execution of JavaScript. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `response` | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints - -#### Inherited from - -`ProtocolCommands.receiveAsyncResponse` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:405 - -*** - -### ~~refresh()~~ - -```ts -refresh(): Promise -``` - -Webdriver Protocol Command - -The Refresh command causes the browser to reload the page in current top-level browsing context. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-refresh - -#### Inherited from - -`ProtocolCommands.refresh` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:82 - -*** - -### ~~releaseActions()~~ - -```ts -releaseActions(): Promise -``` - -Webdriver Protocol Command - -The Release Actions command is used to release all the keys and pointer buttons that are currently depressed. This causes events to be fired as if the state was released by an explicit series of actions. It also clears all the internal state of the virtual devices. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-release-actions - -#### Inherited from - -`ProtocolCommands.releaseActions` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:434 - -*** - -### ~~removeAllCredentials()~~ - -```ts -removeAllCredentials(authenticatorId): Promise -``` - -Webdriver Protocol Command - -Removes all Public Key Credential Sources stored on a Virtual Authenticator. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `authenticatorId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-all-credentials - -#### Inherited from - -`ProtocolCommands.removeAllCredentials` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:609 - -*** - -### ~~removeAllListeners()~~ - -```ts -removeAllListeners(event?): this -``` - -Removes all listeners, or those of the specified `eventName`. - -It is bad practice to remove listeners added elsewhere in the code, -particularly when the `EventEmitter` instance was created by some other -component or module (e.g. sockets or file streams). - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `event`? | `string` \| `symbol` | - -#### Returns - -`this` - -#### Since - -v0.1.26 - -#### Inherited from - -`Omit.removeAllListeners` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:631 - -*** - -### ~~removeApp()~~ - -```ts -removeApp(appId): Promise -``` - -Appium Protocol Command - -Remove an app from the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `appId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/remove-app/ - -#### Inherited from - -`ProtocolCommands.removeApp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:162 - -*** - -### ~~removeCredential()~~ - -```ts -removeCredential(authenticatorId, credentialId): Promise -``` - -Webdriver Protocol Command - -Removes a Public Key Credential Source stored on a Virtual Authenticator. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `authenticatorId` | `string` | -| `credentialId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-credential - -#### Inherited from - -`ProtocolCommands.removeCredential` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:617 - -*** - -### ~~removeListener()~~ - -```ts -removeListener(eventName, listener): this -``` - -Removes the specified `listener` from the listener array for the event named`eventName`. - -```js -const callback = (stream) => { - console.log('someone connected!'); -}; -server.on('connection', callback); -// ... -server.removeListener('connection', callback); -``` - -`removeListener()` will remove, at most, one instance of a listener from the -listener array. If any single listener has been added multiple times to the -listener array for the specified `eventName`, then `removeListener()` must be -called multiple times to remove each instance. - -Once an event is emitted, all listeners attached to it at the -time of emitting are called in order. This implies that any`removeListener()` or `removeAllListeners()` calls _after_ emitting and _before_ the last listener finishes execution -will not remove them from`emit()` in progress. Subsequent events behave as expected. - -```js -const myEmitter = new MyEmitter(); - -const callbackA = () => { - console.log('A'); - myEmitter.removeListener('event', callbackB); -}; - -const callbackB = () => { - console.log('B'); -}; - -myEmitter.on('event', callbackA); - -myEmitter.on('event', callbackB); - -// callbackA removes listener callbackB but it will still be called. -// Internal listener array at time of emit [callbackA, callbackB] -myEmitter.emit('event'); -// Prints: -// A -// B - -// callbackB is now removed. -// Internal listener array [callbackA] -myEmitter.emit('event'); -// Prints: -// A -``` - -Because listeners are managed using an internal array, calling this will -change the position indices of any listener registered _after_ the listener -being removed. This will not impact the order in which listeners are called, -but it means that any copies of the listener array as returned by -the `emitter.listeners()` method will need to be recreated. - -When a single function has been added as a handler multiple times for a single -event (as in the example below), `removeListener()` will remove the most -recently added instance. In the example the `once('ping')`listener is removed: - -```js -const ee = new EventEmitter(); - -function pong() { - console.log('pong'); -} - -ee.on('ping', pong); -ee.once('ping', pong); -ee.removeListener('ping', pong); - -ee.emit('ping'); -ee.emit('ping'); -``` - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `eventName` | `string` \| `symbol` | -| `listener` | (...`args`) => `void` | - -#### Returns - -`this` - -#### Since - -v0.1.26 - -#### Inherited from - -`Omit.removeListener` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:615 - -*** - -### ~~removeVirtualAuthenticator()~~ - -```ts -removeVirtualAuthenticator(authenticatorId): Promise -``` - -Webdriver Protocol Command - -Removes a previously created Virtual Authenticator. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `authenticatorId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-virtual-authenticator - -#### Inherited from - -`ProtocolCommands.removeVirtualAuthenticator` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:585 - -*** - -### ~~replaceValue()~~ - -```ts -replaceValue(elementId, value): Promise -``` - -Appium Protocol Command - -Replace the value to element directly. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints - -#### Inherited from - -`ProtocolCommands.replaceValue` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:381 - -*** - -### ~~respondMock()~~ - -```ts -respondMock(mockId, payload): Promise -``` - -Saucelabs Protocol Command - -Respond if mock matches a specific resource. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `mockId` | `string` | -| `payload` | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands - -#### Inherited from - -`ProtocolCommands.respondMock` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:193 - -*** - -### ~~resume()~~ - -```ts -resume(): Promise -``` - -Chromium Protocol Command - -Resume the current page. Extension for [Page Lifecycle API](https://developers.google.com/web/updates/2018/07/page-lifecycle-api). - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L635-L645 - -#### Inherited from - -`ProtocolCommands.resume` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:244 - -*** - -### ~~rotateDevice()~~ - -```ts -rotateDevice( - x, - y, -z): Promise -``` - -Appium Protocol Command - -Rotate the device in three dimensions. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `x` | `number` | -| `y` | `number` | -| `z` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-rotation - -#### Inherited from - -`ProtocolCommands.rotateDevice` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:122 - -*** - -### ~~sauceThrottleNetwork()~~ - -```ts -sauceThrottleNetwork(condition): Promise -``` - -Saucelabs Protocol Command - -With network conditioning you can test your site on a variety of network connections, including Edge, 3G, and even offline. You can throttle the data throughput, including the maximum download and upload throughput, and use latency manipulation to enforce a minimum delay in connection round-trip time (RTT). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `condition` | `string` \| `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-ThrottleNetworkCapabilities - -#### Examples - -```js -// predefined network condition -browser.sauceThrottleNetwork('offline') -```* - -```js -// custom network condition -browser.sauceThrottleNetwork({ - download: 1000, - upload: 500, - latency: 40' -}) -``` - -#### Inherited from - -`ProtocolCommands.sauceThrottleNetwork` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:70 - -*** - -### ~~scriptAddPreloadScript()~~ - -```ts -scriptAddPreloadScript(params): Promise -``` - -WebDriver Bidi command to send command method "script.addPreloadScript" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `ScriptAddPreloadScriptParameters` | `remote.ScriptAddPreloadScriptParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript) | - -#### Returns - -`Promise`\<`ScriptAddPreloadScriptResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript - -#### Inherited from - -`BidiHandler.scriptAddPreloadScript` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:200 - -*** - -### ~~scriptCallFunction()~~ - -```ts -scriptCallFunction(params): Promise -``` - -WebDriver Bidi command to send command method "script.callFunction" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `ScriptCallFunctionParameters` | `remote.ScriptCallFunctionParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-script-callFunction) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-script-callFunction - -#### Inherited from - -`BidiHandler.scriptCallFunction` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:214 - -*** - -### ~~scriptDisown()~~ - -```ts -scriptDisown(params): Promise -``` - -WebDriver Bidi command to send command method "script.disown" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `ScriptDisownParameters` | `remote.ScriptDisownParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-script-disown) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-script-disown - -#### Inherited from - -`BidiHandler.scriptDisown` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:207 - -*** - -### ~~scriptEvaluate()~~ - -```ts -scriptEvaluate(params): Promise -``` - -WebDriver Bidi command to send command method "script.evaluate" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `ScriptEvaluateParameters` | `remote.ScriptEvaluateParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-script-evaluate) | - -#### Returns - -`Promise`\<`ScriptEvaluateResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-script-evaluate - -#### Inherited from - -`BidiHandler.scriptEvaluate` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:221 - -*** - -### ~~scriptGetRealms()~~ - -```ts -scriptGetRealms(params): Promise -``` - -WebDriver Bidi command to send command method "script.getRealms" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `ScriptGetRealmsParameters` | `remote.ScriptGetRealmsParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-script-getRealms) | - -#### Returns - -`Promise`\<`ScriptGetRealmsResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-script-getRealms - -#### Inherited from - -`BidiHandler.scriptGetRealms` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:228 - -*** - -### ~~scriptRemovePreloadScript()~~ - -```ts -scriptRemovePreloadScript(params): Promise -``` - -WebDriver Bidi command to send command method "script.removePreloadScript" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `ScriptRemovePreloadScriptParameters` | `remote.ScriptRemovePreloadScriptParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-script-removePreloadScript) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-script-removePreloadScript - -#### Inherited from - -`BidiHandler.scriptRemovePreloadScript` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:235 - -*** - -### ~~selectCastSink()~~ - -```ts -selectCastSink(sinkName): Promise -``` - -Chromium Protocol Command - -Selects a cast sink (Cast device) as the recipient of media router intents (connect or play). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `sinkName` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#737 - -#### Inherited from - -`ProtocolCommands.selectCastSink` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:260 - -*** - -### ~~send()~~ - -```ts -send(params): Promise -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `params` | `Omit`\<`CommandData`, `"id"`\> | - -#### Returns - -`Promise`\<`CommandResponse`\> - -#### Inherited from - -`BidiHandler.send` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/core.d.ts:13 - -*** - -### ~~sendAlertText()~~ - -```ts -sendAlertText(text): Promise -``` - -Webdriver Protocol Command - -The Send Alert Text command sets the text field of a window.prompt user prompt to the given value. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `text` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-send-alert-text - -#### Inherited from - -`ProtocolCommands.sendAlertText` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:466 - -*** - -### ~~sendAsync()~~ - -```ts -sendAsync(params): number -``` - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `params` | `Omit`\<`CommandData`, `"id"`\> | - -#### Returns - -`number` - -#### Inherited from - -`BidiHandler.sendAsync` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/core.d.ts:14 - -*** - -### ~~sendCommand()~~ - -```ts -sendCommand(cmd, params): Promise -``` - -Chromium Protocol Command - -Send a command to the DevTools debugger.
For a list of available commands and their parameters refer to the [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `cmd` | `string` | -| `params` | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L1290-L1304 - -#### Inherited from - -`ProtocolCommands.sendCommand` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:163 - -*** - -### ~~sendCommandAndGetResult()~~ - -```ts -sendCommandAndGetResult(cmd, params): Promise -``` - -Chromium Protocol Command - -Send a command to the DevTools debugger and wait for the result.
For a list of available commands and their parameters refer to the [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `cmd` | `string` | -| `params` | `object` | - -#### Returns - -`Promise`\<`any`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L1306-L1320 - -#### Inherited from - -`ProtocolCommands.sendCommandAndGetResult` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:171 - -*** - -### ~~sendKeyEvent()~~ - -```ts -sendKeyEvent(keycode, metastate?): Promise -``` - -Appium Protocol Command - -Send a key code to the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `keycode` | `string` | -| `metastate`? | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints - -#### Inherited from - -`ProtocolCommands.sendKeyEvent` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:114 - -*** - -### ~~sendKeys()~~ - -```ts -sendKeys(value): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `value` | `string`[] | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidkeys - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.sendKeys` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:384 - -*** - -### ~~sendSms()~~ - -```ts -sendSms(phoneNumber, message): Promise -``` - -Appium Protocol Command - -Simulate an SMS message (Emulator only). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `phoneNumber` | `string` | -| `message` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/send-sms/ - -#### Inherited from - -`ProtocolCommands.sendSms` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:453 - -*** - -### ~~sessionEnd()~~ - -```ts -sessionEnd(params): Promise -``` - -WebDriver Bidi command to send command method "session.end" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `EmptyParams` | `remote.EmptyParams` [command parameter](https://w3c.github.io/webdriver-bidi/#command-session-end) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-session-end - -#### Inherited from - -`BidiHandler.sessionEnd` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:39 - -*** - -### ~~sessionNew()~~ - -```ts -sessionNew(params): Promise -``` - -WebDriver Bidi command to send command method "session.new" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `SessionNewParameters` | `remote.SessionNewParameters` [command parameter](https://w3c.github.io/webdriver-bidi/#command-session-new) | - -#### Returns - -`Promise`\<`SessionNewResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-session-new - -#### Inherited from - -`BidiHandler.sessionNew` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:32 - -*** - -### ~~sessionStatus()~~ - -```ts -sessionStatus(params): Promise -``` - -WebDriver Bidi command to send command method "session.status" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `EmptyParams` | `remote.EmptyParams` [command parameter](https://w3c.github.io/webdriver-bidi/#command-session-status) | - -#### Returns - -`Promise`\<`SessionStatusResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-session-status - -#### Inherited from - -`BidiHandler.sessionStatus` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:25 - -*** - -### ~~sessionSubscribe()~~ - -```ts -sessionSubscribe(params): Promise -``` - -WebDriver Bidi command to send command method "session.subscribe" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `SessionSubscriptionRequest` | `remote.SessionSubscriptionRequest` [command parameter](https://w3c.github.io/webdriver-bidi/#command-session-subscribe) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-session-subscribe - -#### Inherited from - -`BidiHandler.sessionSubscribe` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:46 - -*** - -### ~~sessionUnsubscribe()~~ - -```ts -sessionUnsubscribe(params): Promise -``` - -WebDriver Bidi command to send command method "session.unsubscribe" with parameters. - -#### Parameters - -| Parameter | Type | Description | -| ------ | ------ | ------ | -| `params` | `SessionSubscriptionRequest` | `remote.SessionSubscriptionRequest` [command parameter](https://w3c.github.io/webdriver-bidi/#command-session-unsubscribe) | - -#### Returns - -`Promise`\<`EmptyResult`\> - -`Promise` - -#### Url - -https://w3c.github.io/webdriver-bidi/#command-session-unsubscribe - -#### Inherited from - -`BidiHandler.sessionUnsubscribe` - -#### Defined in - -testplane/node\_modules/webdriver/build/bidi/handler.d.ts:53 - -*** - -### ~~setAsyncTimeout()~~ - -```ts -setAsyncTimeout(ms): Promise -``` - -Jsonwp Protocol Command - -Set the amount of time, in milliseconds, that asynchronous scripts executed by `/session/:sessionId/execute_async` are permitted to run before they are aborted and a `Timeout` error is returned to the client. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `ms` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtimeoutsasync_script - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "setTimeouts" command instead! - -#### Inherited from - -`ProtocolCommands.setAsyncTimeout` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:61 - -*** - -### ~~setAutoReporting()~~ - -```ts -setAutoReporting(enabled): Promise -``` - -Chromium Protocol Command - -Toggle whether to return response with unknown error with first browser error (e.g. failed to load resource due to 403/404 response) for all subsequent commands (once enabled). - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `enabled` | `boolean` | - -#### Returns - -`Promise`\<`null` \| `object`\> - -#### Ref - -https://codereview.chromium.org/101203012 - -#### Examples - -```js -// Enable auto reporting first thing after session was initiated with empty browser logs -console.log(browser.setAutoReporting(true)); // outputs: null -// Upon requesting an non-existing resource it will abort execution due to thrown unknown error -browser.url('https://webdriver.io/img/404-does-not-exist.png'); -```* - -```js -// During the session do some operations which populate the browser logs -browser.url('https://webdriver.io/img/404-does-not-exist.png'); -browser.url('https://webdriver.io/403/no-access'); -// Enable auto reporting which throws an unknown error for first browser log (404 response) -browser.setAutoReporting(true); -``` - -#### Inherited from - -`ProtocolCommands.setAutoReporting` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:47 - -*** - -### ~~setClipboard()~~ - -```ts -setClipboard( - content, - contentType?, -label?): Promise -``` - -Appium Protocol Command - -Set the content of the system clipboard - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `content` | `string` | -| `contentType`? | `string` | -| `label`? | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/clipboard/set-clipboard/ - -#### Inherited from - -`ProtocolCommands.setClipboard` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:469 - -*** - -### ~~setGeoLocation()~~ - -```ts -setGeoLocation(location): Promise -``` - -Jsonwp Protocol Command - -Set the current geo location. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `location` | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidlocation - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.setGeoLocation` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:642 - -*** - -### ~~setImplicitTimeout()~~ - -```ts -setImplicitTimeout(ms): Promise -``` - -Jsonwp Protocol Command - -Set the amount of time the driver should wait when searching for elements. When searching for a single element, the driver should poll the page until an element is found or the timeout expires, whichever occurs first. When searching for multiple elements, the driver should poll the page until at least one element is found or the timeout expires, at which point it should return an empty list. If this command is never sent, the driver should default to an implicit wait of 0ms. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `ms` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtimeoutsimplicit_wait - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "setTimeouts" command instead! - -#### Inherited from - -`ProtocolCommands.setImplicitTimeout` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:70 - -*** - -### ~~setLocalStorage()~~ - -```ts -setLocalStorage(key, value): Promise -``` - -Jsonwp Protocol Command - -Set the storage item for the given key. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `key` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidlocal_storage - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.setLocalStorage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:660 - -*** - -### ~~setMaxListeners()~~ - -```ts -setMaxListeners(n): this -``` - -By default `EventEmitter`s will print a warning if more than `10` listeners are -added for a particular event. This is a useful default that helps finding -memory leaks. The `emitter.setMaxListeners()` method allows the limit to be -modified for this specific `EventEmitter` instance. The value can be set to`Infinity` (or `0`) to indicate an unlimited number of listeners. - -Returns a reference to the `EventEmitter`, so that calls can be chained. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `n` | `number` | - -#### Returns - -`this` - -#### Since - -v0.3.5 - -#### Inherited from - -`Omit.setMaxListeners` - -#### Defined in - -testplane/node\_modules/@types/node/events.d.ts:641 - -*** - -### ~~setMozContext()~~ - -```ts -setMozContext(context): Promise -``` - -Gecko Protocol Command - -Changes target context for commands between chrome- and content.

Changing the current context has a stateful impact on all subsequent commands. The `CONTENT` context has normal web platform document permissions, as if you would evaluate arbitrary JavaScript. The `CHROME` context gets elevated permissions that lets you manipulate the browser chrome itself, with full access to the XUL toolkit. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `context` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/blob/586affe0cf675b1d5c8abc756defa4a46d95391b/javascript/node/selenium-webdriver/firefox.js#L615-L645 - -#### Example - -```js -console.log(await browser.getMozContext()); // outputs: 'CHROME' -browser.setMozContext('CONTENT'); -console.log(await browser.getMozContext()); // outputs: 'CONTENT' -``` - -#### Inherited from - -`ProtocolCommands.setMozContext` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/gecko.d.ts:35 - -*** - -### ~~setNetworkConditions()~~ - -```ts -setNetworkConditions(networkConditions, networkName?): Promise -``` - -Chromium Protocol Command - -Set network conditions used for emulation by throttling connection. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `networkConditions` | `object` | -| `networkName`? | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L1663-L1722 - -#### Examples - -```js -// Use different download (25kb/s) and upload (50kb/s) throughput values for throttling with a latency of 1000ms -browser.setNetworkConditions({ latency: 1000, download_throughput: 25600, upload_throughput: 51200 }); -```* - -```js -// Force disconnected from network by setting 'offline' to true -browser.setNetworkConditions({ latency: 0, throughput: 0, offline: true }); -```* - -```js -// When preset name (e.g. 'DSL') is specified it does not respect values in object (e.g. 'offline') -browser.setNetworkConditions({ latency: 0, throughput: 0, offline: true }, 'DSL'); -```* - -```js -// Best practice for specifying network throttling preset is to use an empty object -browser.setNetworkConditions({}, 'Good 3G'); -``` - -#### Inherited from - -`ProtocolCommands.setNetworkConditions` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:147 - -*** - -### ~~setNetworkConnection()~~ - -```ts -setNetworkConnection(parameters): Promise -``` - -Chromium Protocol Command - -Change connection type for network connection. This command is only applicable when remote end replies with `networkConnectionEnabled` capability set to `true`. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `parameters` | `object` | - -#### Returns - -`Promise`\<`number`\> - -#### Ref - -https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-modes - -#### Example - -```js -const browser = remote({ - capabilities: { - browserName: 'chrome', - 'goog:chromeOptions': { - // Network emulation requires device mode, which is only enabled when mobile emulation is on - mobileEmulation: { deviceName: 'iPad' }, - }, - } -}); -console.log(browser.setNetworkConnection({ type: 1 })); // outputs: 1 (Airplane Mode) -``` - -#### Inherited from - -`ProtocolCommands.setNetworkConnection` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:111 - -*** - -### ~~setOrientation()~~ - -```ts -setOrientation(orientation): Promise -``` - -Jsonwp Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `orientation` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidorientation - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.setOrientation` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:543 - -*** - -### ~~setPermissions()~~ - -```ts -setPermissions( - descriptor, - state, -oneRealm?): Promise -``` - -Webdriver Protocol Command - -Simulates user modification of a PermissionDescriptor's permission state. __Note:__ this feature has not landed in all browsers yet. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `descriptor` | `object` | -| `state` | `string` | -| `oneRealm`? | `boolean` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/permissions/#set-permission-command - -#### Examples - -```js -// set midi permissions -browser.setPermissions( - { name: 'midi', sysex: true }, - 'granted' // can be also "denied" or "prompt" -); -```* - -```js -// set clipboard permissions -browser.setPermissions({ name: 'clipboard-read' }, 'granted'); -// now you can read the clipboard via, e.g. -const clipboardText = await browser.execute(() => navigator.clipboard.readText()); -``` - -#### Inherited from - -`ProtocolCommands.setPermissions` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:521 - -*** - -### ~~setSessionStorage()~~ - -```ts -setSessionStorage(key, value): Promise -``` - -Jsonwp Protocol Command - -Set the storage item for the given key. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `key` | `string` | -| `value` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidsession_storage - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "execute" command instead to interact with the session storage interface! - -#### Inherited from - -`ProtocolCommands.setSessionStorage` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:714 - -*** - -### ~~setTimeZone()~~ - -```ts -setTimeZone(timeZone): Promise -``` - -Webdriver Protocol Command - -Simulates the changing of a time zone for the purposes of testing. __Note:__ this feature has not landed in all browsers yet. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `timeZone` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/sensors/#create-mock-sensor-command - -#### Inherited from - -`ProtocolCommands.setTimeZone` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:569 - -*** - -### ~~setTimeouts()~~ - -```ts -setTimeouts( - implicit?, - pageLoad?, -script?): Promise -``` - -Webdriver Protocol Command - -The Set Timeouts command sets timeout durations associated with the current session. The timeouts that can be controlled are listed in the table of session timeouts below. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `implicit`? | `number` | -| `pageLoad`? | `number` | -| `script`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-set-timeouts - -#### Inherited from - -`ProtocolCommands.setTimeouts` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:42 - -*** - -### ~~setUserVerified()~~ - -```ts -setUserVerified(authenticatorId): Promise -``` - -Webdriver Protocol Command - -The Set User Verified extension command sets the isUserVerified property on the Virtual Authenticator. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `authenticatorId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://www.w3.org/TR/webauthn-2/#sctn-automation-set-user-verified - -#### Inherited from - -`ProtocolCommands.setUserVerified` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:625 - -*** - -### ~~setValueImmediate()~~ - -```ts -setValueImmediate(elementId, text): Promise -``` - -Appium Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `text` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints - -#### Inherited from - -`ProtocolCommands.setValueImmediate` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:373 - -*** - -### ~~setWindowPosition()~~ - -```ts -setWindowPosition(x, y): Promise -``` - -Jsonwp Protocol Command - -Change the position of the current focussed window. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `x` | `number` | -| `y` | `number` | - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidwindowwindowhandleposition - -#### Deprecated - -This command is deprecated and likely not supported by any browser. - -#### Inherited from - -`ProtocolCommands.setWindowPosition` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:184 - -*** - -### ~~setWindowRect()~~ - -```ts -setWindowRect( - x, - y, - width, -height): Promise -``` - -Webdriver Protocol Command - -The Set Window Rect command alters the size and the position of the operating system window corresponding to the current top-level browsing context. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `x` | `null` \| `number` | -| `y` | `null` \| `number` | -| `width` | `null` \| `number` | -| `height` | `null` \| `number` | - -#### Returns - -`Promise`\<`RectReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-set-window-rect - -#### Inherited from - -`ProtocolCommands.setWindowRect` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:170 - -*** - -### ~~shake()~~ - -```ts -shake(): Promise -``` - -Appium Protocol Command - -Perform a shake action on the device. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/interactions/shake/ - -#### Inherited from - -`ProtocolCommands.shake` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:34 - -*** - -### ~~shutdown()~~ - -```ts -shutdown(): Promise -``` - -Chromium Protocol Command - -Shutdown ChromeDriver process and consequently terminating all active sessions. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L489-L498 - -#### Inherited from - -`ProtocolCommands.shutdown` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:292 - -*** - -### ~~startActivity()~~ - -```ts -startActivity( - appPackage, - appActivity, - appWaitPackage?, - appWaitActivity?, - intentAction?, - intentCategory?, - intentFlags?, - optionalIntentArguments?, -dontStopAppOnReset?): Promise -``` - -Appium Protocol Command - -Start an Android activity by providing package name and activity name. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `appPackage` | `string` | -| `appActivity` | `string` | -| `appWaitPackage`? | `string` | -| `appWaitActivity`? | `string` | -| `intentAction`? | `string` | -| `intentCategory`? | `string` | -| `intentFlags`? | `string` | -| `optionalIntentArguments`? | `string` | -| `dontStopAppOnReset`? | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/activity/start-activity/ - -#### Inherited from - -`ProtocolCommands.startActivity` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:282 - -*** - -### ~~startCastTabMirroring()~~ - -```ts -startCastTabMirroring(sinkName): Promise -``` - -Chromium Protocol Command - -Initiates tab mirroring for the current browser tab on the specified device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `sinkName` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#741 - -#### Inherited from - -`ProtocolCommands.startCastTabMirroring` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:268 - -*** - -### ~~startRecordingScreen()~~ - -```ts -startRecordingScreen(options?): Promise -``` - -Appium Protocol Command - -Start recording the screen. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `options`? | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/recording-screen/start-recording-screen/ - -#### Inherited from - -`ProtocolCommands.startRecordingScreen` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:66 - -*** - -### ~~status()~~ - -```ts -status(): Promise -``` - -Webdriver Protocol Command - -The Status command returns information about whether a remote end is in a state in which it can create new sessions and can additionally include arbitrary meta information that is specific to the implementation. - -#### Returns - -`Promise`\<`StatusReturn`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-status - -#### Inherited from - -`ProtocolCommands.status` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:26 - -*** - -### ~~stopCasting()~~ - -```ts -stopCasting(sinkName): Promise -``` - -Chromium Protocol Command - -Stops casting from media router to the specified device, if connected. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `sinkName` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#744 - -#### Inherited from - -`ProtocolCommands.stopCasting` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:284 - -*** - -### ~~stopRecordingScreen()~~ - -```ts -stopRecordingScreen( - remotePath?, - username?, - password?, -method?): Promise -``` - -Appium Protocol Command - -Stop recording screen - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `remotePath`? | `string` | -| `username`? | `string` | -| `password`? | `string` | -| `method`? | `string` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/recording-screen/stop-recording-screen/ - -#### Inherited from - -`ProtocolCommands.stopRecordingScreen` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:74 - -*** - -### ~~switchContext()~~ - -```ts -switchContext(name): Promise -``` - -Appium Protocol Command - -No description available, please see reference link. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `name` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts - -#### Inherited from - -`ProtocolCommands.switchContext` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:18 - -*** - -### ~~switchToFrame()~~ - -```ts -switchToFrame(id): Promise -``` - -Webdriver Protocol Command - -The Switch To Frame command is used to select the current top-level browsing context or a child browsing context of the current browsing context to use as the current browsing context for subsequent commands. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `id` | `null` \| `number` \| `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-switch-to-frame - -#### Inherited from - -`ProtocolCommands.switchToFrame` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:146 - -*** - -### ~~switchToParentFrame()~~ - -```ts -switchToParentFrame(): Promise -``` - -Webdriver Protocol Command - -The Switch to Parent Frame command sets the current browsing context for future commands to the parent of the current browsing context. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-switch-to-parent-frame - -#### Inherited from - -`ProtocolCommands.switchToParentFrame` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:154 - -*** - -### ~~switchToWindow()~~ - -```ts -switchToWindow(handle): Promise -``` - -Webdriver Protocol Command - -The Switch To Window command is used to select the current top-level browsing context for the current session, i.e. the one that will be used for processing commands. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `handle` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-switch-to-window - -#### Inherited from - -`ProtocolCommands.switchToWindow` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:114 - -*** - -### ~~takeElementScreenshot()~~ - -```ts -takeElementScreenshot(elementId, scroll?): Promise -``` - -Webdriver Protocol Command - -The Take Element Screenshot command takes a screenshot of the visible region encompassed by the bounding rectangle of an element. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `elementId` | `string` | -| `scroll`? | `boolean` | - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-take-element-screenshot - -#### Inherited from - -`ProtocolCommands.takeElementScreenshot` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:482 - -*** - -### ~~takeHeapSnapshot()~~ - -```ts -takeHeapSnapshot(): Promise -``` - -Chromium Protocol Command - -Takes a heap snapshot of the current execution context. - -#### Returns - -`Promise`\<`ProtocolCommandResponse`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/chrome/web_view.h#L198-L202 - -#### Inherited from - -`ProtocolCommands.takeHeapSnapshot` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:69 - -*** - -### ~~takeScreenshot()~~ - -```ts -takeScreenshot(): Promise -``` - -Webdriver Protocol Command - -The Take Screenshot command takes a screenshot of the top-level browsing context's viewport. - -#### Returns - -`Promise`\<`string`\> - -#### Ref - -https://w3c.github.io/webdriver/#dfn-take-screenshot - -#### Inherited from - -`ProtocolCommands.takeScreenshot` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:474 - -*** - -### ~~terminateApp()~~ - -```ts -terminateApp(appId): Promise -``` - -Appium Protocol Command - -Terminate the given app on the device - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `appId` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/app/terminate-app/ - -#### Inherited from - -`ProtocolCommands.terminateApp` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:170 - -*** - -### ~~throttleCPU()~~ - -```ts -throttleCPU(rate): Promise -``` - -Saucelabs Protocol Command - -You can throttle the CPU in DevTools to understand how your page performs under that constraint. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `rate` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-ThrottleCPUCapabilities - -#### Examples - -```js -// throttle CPU and make it run 4x slower -browser.throttleCPU(4) -```* - -```js -// reset CPU throttling -browser.throttleCPU(0) -``` - -#### Inherited from - -`ProtocolCommands.throttleCPU` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/saucelabs.d.ts:88 - -*** - -### ~~toggleAirplaneMode()~~ - -```ts -toggleAirplaneMode(): Promise -``` - -Appium Protocol Command - -Toggle airplane mode on device. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-airplane-mode/ - -#### Inherited from - -`ProtocolCommands.toggleAirplaneMode` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:234 - -*** - -### ~~toggleData()~~ - -```ts -toggleData(): Promise -``` - -Appium Protocol Command - -Switch the state of data service. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-data/ - -#### Inherited from - -`ProtocolCommands.toggleData` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:242 - -*** - -### ~~toggleEnrollTouchId()~~ - -```ts -toggleEnrollTouchId(enabled?): Promise -``` - -Appium Protocol Command - -Toggle the simulator being [enrolled](https://support.apple.com/en-ca/ht201371) to accept touchId (iOS Simulator only). To enable this feature, the `allowTouchIdEnroll` desired capability must be set to true. When `allowTouchIdEnroll` is set to true the Simulator will be enrolled by default, and the 'Toggle Touch ID Enrollment' changes the enrollment state. This call will only work if the Appium process or its parent application (e.g., Terminal.app or Appium.app) has access to Mac OS accessibility in System Preferences > Security & Privacy > Privacy > Accessibility list. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `enabled`? | `boolean` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/simulator/toggle-touch-id-enrollment/ - -#### Inherited from - -`ProtocolCommands.toggleEnrollTouchId` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:322 - -*** - -### ~~toggleLocationServices()~~ - -```ts -toggleLocationServices(): Promise -``` - -Appium Protocol Command - -Switch the state of the location service. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-location-services/ - -#### Inherited from - -`ProtocolCommands.toggleLocationServices` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:258 - -*** - -### ~~toggleNetworkSpeed()~~ - -```ts -toggleNetworkSpeed(netspeed): Promise -``` - -Appium Protocol Command - -Set network speed (Emulator only) - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `netspeed` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/network-speed/ - -#### Inherited from - -`ProtocolCommands.toggleNetworkSpeed` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:266 - -*** - -### ~~toggleWiFi()~~ - -```ts -toggleWiFi(): Promise -``` - -Appium Protocol Command - -Switch the state of the wifi service. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/network/toggle-wifi/ - -#### Inherited from - -`ProtocolCommands.toggleWiFi` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:250 - -*** - -### ~~touchClick()~~ - -```ts -touchClick(element): Promise -``` - -Jsonwp Protocol Command - -Single tap on the touch enabled device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `element` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchclick - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a touch gesture! - -#### Inherited from - -`ProtocolCommands.touchClick` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:597 - -*** - -### ~~touchDoubleClick()~~ - -```ts -touchDoubleClick(element): Promise -``` - -Jsonwp Protocol Command - -Double tap on the touch screen using finger motion events. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `element` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchdoubleclick - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a touch gesture! - -#### Inherited from - -`ProtocolCommands.touchDoubleClick` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:615 - -*** - -### ~~touchFlick()~~ - -```ts -touchFlick( - xoffset?, - yoffset?, - element?, - speed?, - xspeed?, -yspeed?): Promise -``` - -Jsonwp Protocol Command - -Flick on the touch screen using finger motion events. This flickcommand starts at a particulat screen location. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `xoffset`? | `number` | -| `yoffset`? | `number` | -| `element`? | `string` | -| `speed`? | `number` | -| `xspeed`? | `number` | -| `yspeed`? | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchflick - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a touch gesture! - -#### Inherited from - -`ProtocolCommands.touchFlick` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:624 - -*** - -### ~~touchId()~~ - -```ts -touchId(match): Promise -``` - -Appium Protocol Command - -Simulate a [touch id](https://support.apple.com/en-ca/ht201371) event (iOS Simulator only). To enable this feature, the `allowTouchIdEnroll` desired capability must be set to true and the Simulator must be [enrolled](https://support.apple.com/en-ca/ht201371). When you set allowTouchIdEnroll to true, it will set the Simulator to be enrolled by default. The enrollment state can be [toggled](https://appium.github.io/appium.io/docs/en/commands/device/simulator/toggle-touch-id-enrollment/index.html). This call will only work if Appium process or its parent application (e.g. Terminal.app or Appium.app) has access to Mac OS accessibility in System Preferences > Security & Privacy > Privacy > Accessibility list. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `match` | `boolean` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/simulator/touch-id/ - -#### Inherited from - -`ProtocolCommands.touchId` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:314 - -*** - -### ~~touchPerform()~~ - -```ts -touchPerform(actions): Promise -``` - -Appium Protocol Command - -This functionality is only available from within a native context. 'Touch Perform' works similarly to the other singular touch interactions, except that this allows you to chain together more than one touch action as one command. This is useful because Appium commands are sent over the network and there's latency between commands. This latency can make certain touch interactions impossible because some interactions need to be performed in one sequence. Vertical, for example, requires pressing down, moving to a different y coordinate, and then releasing. For it to work, there can't be a delay between the interactions. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `actions` | `object`[] | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/interactions/touch/touch-perform/ - -#### Example - -```js -// do a horizontal swipe by percentage -const startPercentage = 10; -const endPercentage = 90; -const anchorPercentage = 50; - -const { width, height } = driver.getWindowSize(); -const anchor = height// anchorPercentage / 100; -const startPoint = width// startPercentage / 100; -const endPoint = width// endPercentage / 100; -driver.touchPerform([ - { - action: 'press', - options: { - x: startPoint, - y: anchor, - }, - }, - { - action: 'wait', - options: { - ms: 100, - }, - }, - { - action: 'moveTo', - options: { - x: endPoint, - y: anchor, - }, - }, - { - action: 'release', - options: {}, - }, -]); -``` - -#### Inherited from - -`ProtocolCommands.touchPerform` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:523 - -*** - -### ~~touchPinch()~~ - -```ts -touchPinch( - x, - y, -scale): Promise -``` - -Chromium Protocol Command - -Trigger a pinch zoom effect. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `x` | `number` | -| `y` | `number` | -| `scale` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L813-L827 - -#### Inherited from - -`ProtocolCommands.touchPinch` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/chromium.d.ts:228 - -*** - -### ~~touchScroll()~~ - -```ts -touchScroll( - xoffset, - yoffset, -element?): Promise -``` - -Jsonwp Protocol Command - -Finger move on the screen. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `xoffset` | `number` | -| `yoffset` | `number` | -| `element`? | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchscroll - -#### Deprecated - -This command is deprecated and likely not supported by any browser. Use the "action" command instead to execute a touch gesture! - -#### Inherited from - -`ProtocolCommands.touchScroll` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/jsonwp.d.ts:606 - -*** - -### ~~uninstallAddOn()~~ - -```ts -uninstallAddOn(id): Promise -``` - -Gecko Protocol Command - -Uninstalls an addon from the current browser session's profile. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `id` | `string` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://github.com/SeleniumHQ/selenium/blob/586affe0cf675b1d5c8abc756defa4a46d95391b/javascript/node/selenium-webdriver/firefox.js#L670-L687 - -#### Example - -```js -// Create a buffer of the add on .zip file -const extension = await fs.promises.readFile('/path/to/extension.zip') -// Load extension in Firefox -const id = await browser.installAddOn(extension.toString('base64'), false); -// ... -await browser.uninstallAddOn(id) -``` - -#### Inherited from - -`ProtocolCommands.uninstallAddOn` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/gecko.d.ts:67 - -*** - -### ~~unlock()~~ - -```ts -unlock(): Promise -``` - -Appium Protocol Command - -Unlock the device. - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/device/interactions/unlock/ - -#### Inherited from - -`ProtocolCommands.unlock` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:50 - -*** - -### ~~updateMockSensor()~~ - -```ts -updateMockSensor( - type, - mockSensorType, - maxSamplingFrequency, -minSamplingFrequency): Promise -``` - -Webdriver Protocol Command - -Updates the mock sensor type. __Note:__ this feature has not landed in all browsers yet. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `type` | `string` | -| `mockSensorType` | `string` | -| `maxSamplingFrequency` | `number` | -| `minSamplingFrequency` | `number` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://w3c.github.io/sensors/#update-mock-sensor-reading-command - -#### Inherited from - -`ProtocolCommands.updateMockSensor` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/webdriver.d.ts:553 - -*** - -### ~~updateSettings()~~ - -```ts -updateSettings(settings): Promise -``` - -Appium Protocol Command - -Update the current setting on the device. - -#### Parameters - -| Parameter | Type | -| ------ | ------ | -| `settings` | `object` | - -#### Returns - -`Promise`\<`void`\> - -#### Ref - -https://appium.github.io/appium.io/docs/en/commands/session/settings/update-settings/ - -#### Inherited from - -`ProtocolCommands.updateSettings` - -#### Defined in - -testplane/node\_modules/@wdio/protocols/build/commands/appium.d.ts:397 diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/AssertViewResult.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/AssertViewResult.mdx index edd17d1..05e4397 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/AssertViewResult.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/AssertViewResult.mdx @@ -8,4 +8,4 @@ type AssertViewResult: AssertViewResultSuccess | AssertViewResultDiff | AssertVi ## Defined in -testplane-docs/.testplane/src/types/index.ts:105 +[.testplane/src/types/index.ts:105](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L105) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/AsyncSessionEventCallback.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/AsyncSessionEventCallback.mdx index 2159c70..77f71a3 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/AsyncSessionEventCallback.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/AsyncSessionEventCallback.mdx @@ -19,4 +19,4 @@ type AsyncSessionEventCallback: (browser, browserInfo) => Promise | void; ## Defined in -testplane-docs/.testplane/src/types/index.ts:36 +[.testplane/src/types/index.ts:36](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L36) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/ConfigInput.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/ConfigInput.mdx index 3b96785..ca099fc 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/ConfigInput.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/ConfigInput.mdx @@ -17,11 +17,11 @@ type ConfigInput: Partial & { | Name | Type | Defined in | | ------ | ------ | ------ | -| `browsers` | `Record`\<`string`, `Partial`\<[`CommonConfig`](../interfaces/CommonConfig.mdx)\> & \{ `desiredCapabilities`: `WebdriverIO.Capabilities`; \}\> | testplane-docs/.testplane/src/config/types.ts:197 | -| `plugins` | `Record`\<`string`, `unknown`\> | testplane-docs/.testplane/src/config/types.ts:198 | -| `prepareEnvironment` | () => `void` \| `null` | testplane-docs/.testplane/src/config/types.ts:200 | -| `sets` | `Record`\<`string`, [`SetsConfig`](../interfaces/SetsConfig.mdx)\> | testplane-docs/.testplane/src/config/types.ts:199 | +| `browsers` | `Record`\<`string`, `Partial`\<[`CommonConfig`](../interfaces/CommonConfig.mdx)\> & \{ `desiredCapabilities`: `WebdriverIO.Capabilities`; \}\> | [.testplane/src/config/types.ts:197](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L197) | +| `plugins` | `Record`\<`string`, `unknown`\> | [.testplane/src/config/types.ts:198](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L198) | +| `prepareEnvironment` | () => `void` \| `null` | [.testplane/src/config/types.ts:200](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L200) | +| `sets` | `Record`\<`string`, [`SetsConfig`](../interfaces/SetsConfig.mdx)\> | [.testplane/src/config/types.ts:199](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L199) | ## Defined in -testplane-docs/.testplane/src/config/types.ts:196 +[.testplane/src/config/types.ts:196](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/config/types.ts#L196) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/InterceptHandler.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/InterceptHandler.mdx index c64b1e7..41183ec 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/InterceptHandler.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/InterceptHandler.mdx @@ -18,4 +18,4 @@ type InterceptHandler: (arg) => InterceptData | void; ## Defined in -testplane-docs/.testplane/src/events/types.ts:9 +[.testplane/src/events/types.ts:9](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/events/types.ts#L9) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/InterceptedEvent.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/InterceptedEvent.mdx index d13c5de..35ce8fa 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/InterceptedEvent.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/InterceptedEvent.mdx @@ -16,4 +16,4 @@ type InterceptedEvent: ValueOf: (event, callback) => T(event, callback) => T(event, ## Defined in -testplane-docs/.testplane/src/types/index.ts:193 +[.testplane/src/types/index.ts:193](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L193) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/SyncSessionEventCallback.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/SyncSessionEventCallback.mdx index e1a6093..2bec5c9 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/SyncSessionEventCallback.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/SyncSessionEventCallback.mdx @@ -21,4 +21,4 @@ type SyncSessionEventCallback: (browser, browserInfo) => void; ## Defined in -testplane-docs/.testplane/src/types/index.ts:188 +[.testplane/src/types/index.ts:188](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L188) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/WorkerEventHandler.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/WorkerEventHandler.mdx index 85b36df..2d98aa5 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/WorkerEventHandler.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/type-aliases/WorkerEventHandler.mdx @@ -80,4 +80,4 @@ type WorkerEventHandler: (event, callback) => T(event, callback) => T(event, ## Defined in -testplane-docs/.testplane/src/types/index.ts:225 +[.testplane/src/types/index.ts:225](https://github.com/gemini-testing/testplane/blob/57d0b182c37e21d8bdf52acbb137a028841767af/src/types/index.ts#L225) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/variables/Key.mdx b/i18n/en/docusaurus-plugin-content-docs/current/api-reference/variables/Key.mdx deleted file mode 100644 index 3b6c37f..0000000 --- a/i18n/en/docusaurus-plugin-content-docs/current/api-reference/variables/Key.mdx +++ /dev/null @@ -1,131 +0,0 @@ -[testplane](../README.mdx) / Key - -# Variable: Key - -```ts -const Key: { - Add: ""; - Alt: ""; - ArrowDown: ""; - ArrowLeft: ""; - ArrowRight: ""; - ArrowUp: ""; - Backspace: ""; - Cancel: ""; - Clear: ""; - Command: ""; - Control: ""; - Ctrl: "WDIO_CONTROL"; - Decimal: ""; - Delete: ""; - Divide: ""; - End: ""; - Enter: ""; - Equals: ""; - Escape: ""; - F1: ""; - F10: ""; - F11: ""; - F12: ""; - F2: ""; - F3: ""; - F4: ""; - F5: ""; - F6: ""; - F7: ""; - F8: ""; - F9: ""; - Help: ""; - Home: ""; - Insert: ""; - Multiply: ""; - NULL: ""; - Numpad0: ""; - Numpad1: ""; - Numpad2: ""; - Numpad3: ""; - Numpad4: ""; - Numpad5: ""; - Numpad6: ""; - Numpad7: ""; - Numpad8: ""; - Numpad9: ""; - PageDown: ""; - PageUp: ""; - Pause: ""; - Return: ""; - Semicolon: ""; - Separator: ""; - Shift: ""; - Space: ""; - Subtract: ""; - Tab: ""; - ZenkakuHankaku: ""; -}; -``` - -## Type declaration - -| Name | Type | Defined in | -| ------ | ------ | ------ | -| `Add` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:45 | -| `Alt` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:18 | -| `ArrowDown` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:29 | -| `ArrowLeft` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:26 | -| `ArrowRight` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:28 | -| `ArrowUp` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:27 | -| `Backspace` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:11 | -| `Cancel` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:9 | -| `Clear` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:13 | -| `Command` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:62 | -| `Control` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:17 | -| `Ctrl` | `"WDIO_CONTROL"` | testplane/node\_modules/webdriverio/build/index.d.ts:7 | -| `Decimal` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:48 | -| `Delete` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:31 | -| `Divide` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:49 | -| `End` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:24 | -| `Enter` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:15 | -| `Equals` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:33 | -| `Escape` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:20 | -| `F1` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:50 | -| `F10` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:59 | -| `F11` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:60 | -| `F12` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:61 | -| `F2` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:51 | -| `F3` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:52 | -| `F4` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:53 | -| `F5` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:54 | -| `F6` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:55 | -| `F7` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:56 | -| `F8` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:57 | -| `F9` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:58 | -| `Help` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:10 | -| `Home` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:25 | -| `Insert` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:30 | -| `Multiply` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:44 | -| `NULL` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:8 | -| `Numpad0` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:34 | -| `Numpad1` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:35 | -| `Numpad2` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:36 | -| `Numpad3` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:37 | -| `Numpad4` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:38 | -| `Numpad5` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:39 | -| `Numpad6` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:40 | -| `Numpad7` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:41 | -| `Numpad8` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:42 | -| `Numpad9` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:43 | -| `PageDown` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:23 | -| `PageUp` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:22 | -| `Pause` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:19 | -| `Return` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:14 | -| `Semicolon` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:32 | -| `Separator` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:46 | -| `Shift` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:16 | -| `Space` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:21 | -| `Subtract` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:47 | -| `Tab` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:12 | -| `ZenkakuHankaku` | `""` | testplane/node\_modules/webdriverio/build/index.d.ts:63 | - -## Defined in - -testplane/node\_modules/webdriverio/build/index.d.ts:6 diff --git a/typedoc.json b/typedoc.json index 7ada539..c9c3e4c 100644 --- a/typedoc.json +++ b/typedoc.json @@ -18,7 +18,7 @@ "classPropertiesFormat": "htmlTable", "excludeProtected": true, "fileExtension": ".mdx", - "mergeReadme": true, + "gitRemote": "origin", "locales": { "ru": {