Skip to content

Commit 79b46a5

Browse files
committed
updated formatting
1 parent e4bdf0f commit 79b46a5

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

docs/playwright-desired-capabilities.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ tests.
6666
| idleTimeout | number| Specifies the timeout of the commands in seconds. <br /><br /> <b>Default value:</b> 300 <br /><br /> <b>Max value:</b> 1800<br /><br /> If a value greater than 1800 is added, idleTimeout will be set to 1800.| `const capability = { "LT:Options": {"idleTimeout": "<number>",}}`|
6767
| lambdaMaskCommands | array | <b> `sendType` or `sendFill` </b> Masks the type method of the ElementHandle and Locator class. <br /><br /> <b>`sendPress`</b> Masks the press method of the ElementHandle and Locator class. <br /><br /> <b>`setHTTPCredentials`</b> Masks the HTTP credentials parameter in the newContext and newPage method of the browser class. <br/><br /> <b>`setStorageState`</b> Masks the storage state parameter in the newContext and newPage method of the browser class <br /><br /> <b>`setGeolocation`</b> Masks the Geolocation parameter in the newContext and newPage method of the browser class.|`const capability = { "LT:Options": {'lambdaMaskCommands': ["sendType", "sendFill", "sendPress", "setHTTPCredentials", "setStorageState", "setGeolocation"]}}` <br /><br /> |
6868
| useSpecificBundleVersion | Boolean | If set **`true`:** LambdaTest will select the playwright server version as per the browser version you have passed in the capabilities. Check the [supported browser version list](/support/docs/playwright-test-execution-setup/#playwright-supported-browsers). <br /><br /> If the value set in the `browser version` capability is supported by multiple Playwright versions, LambdaTest checks your Playwright client version and sets the Playwright version accordingly. <br /><br /><br /> If set **`false` :** LambdaTest will run your playwright tests with the same version as setup in your local system and the browser version will also be used the compatible one as per the [supported browser version list](/support/docs/playwright-test-execution-setup/#playwright-supported-browsers) and not your defined one. | `const capability = { "LT:Options": {"useSpecificBundleVersion": true,}}` |
69-
| lambdaSetBrowserPosition | | The `lambdaSetBrowserPosition` function is designed to arrange two browser windows on the screen, ensuring each occupies exactly half of the available screen space. This layout facilitates side-by-side browser comparisons or multitasking workflows. <br /> <br /> Browsers supported : Chrome, Microsoft Edge , pw-chroium, pw-webkit & pw-firefox | `const capability = {action: 'lambdaSetBrowserPosition',}` |
69+
| lambdaSetBrowserPosition | | The `lambdaSetBrowserPosition` function is designed to arrange two browser windows on the screen, ensuring each occupies exactly half of the available screen space. This layout facilitates side-by-side browser comparisons or multitasking workflows. <br /> <br /> OS Supported - Windows <br /><br /> Browsers supported : Chrome, Microsoft Edge , pw-chroium, pw-webkit & pw-firefox | `const capability = {action: 'lambdaSetBrowserPosition',}` |

docs/playwright-lighthouse library.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,24 @@ The feature allows you to generate Lighthouse reports for authenticated web page
8484
<TabItem value="win" label="Windows" default>
8585

8686
```javascript
87-
await page.evaluate(() => {}, `lambdatest_action: ${JSON.stringify({ action: 'lighthouseReport', arguments: { url: 'https://www.example.com', args: `--extra-headers ${JSON.stringify({ authtoken: "YOUR_AUTH_TOKEN" })}` } })}` );
87+
await page.evaluate(() => {}, `lambdatest_action: ${JSON.stringify({
88+
action: 'lighthouseReport',
89+
arguments: { url: 'https://www.example.com',
90+
args: `--extra-headers
91+
${JSON.stringify({ authtoken: "YOUR_AUTH_TOKEN" })}`
92+
} })}` );
8893
```
8994
</TabItem>
9095

9196
<TabItem value="mac" label="macOS" default>
9297

9398
```javascript
94-
await page.evaluate(() => {}, `lambdatest_action: ${JSON.stringify({ action: 'lighthouseReport', arguments: { url: 'https://www.example.com', args: '--extra-headers "{\\"authtoken\\": \\"YOUR_AUTH_TOKEN\\"}"' } })}`);
99+
await page.evaluate(() => {}, `lambdatest_action: ${JSON.stringify({
100+
action: 'lighthouseReport',
101+
arguments: { url: 'https://www.example.com',
102+
args: '--extra-headers
103+
"{\\"authtoken\\": \\"YOUR_AUTH_TOKEN\\"}"'
104+
} })}`);
95105
```
96106
</TabItem>
97107
</Tabs>

0 commit comments

Comments
 (0)