Skip to content

Commit

Permalink
update docs to latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
paweltomaszewskisaucelabs committed Mar 20, 2024
1 parent eab6d7c commit 7e51752
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/visual-testing/integrations/nightwatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,16 +325,18 @@ It's recommended to use the `hideAfterFirstScroll` option for elements like stic

Options:

- `enable`: Enable taking full page screenshot (limited to desktop devices only)
- `delayAfterScrollMs`: Delay in ms after scrolling and before taking screenshots (helps with lazy loading content)
- `hideAfterFirstScroll`: Hide elements on the page after first scroll (uses css selectors)

Example:

```ts
await browser.sauceVisualCheck('Long content page', {
fullPage: true,
});

await browser.sauceVisualCheck('Long content page', {
fullPage: {
enable: true,
delayAfterScroll: 500,
hideAfterFirstScroll: ["#header"],
},
Expand Down
6 changes: 4 additions & 2 deletions docs/visual-testing/integrations/webdriverio.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,18 @@ It's recommended to use the `hideAfterFirstScroll` option for elements like stic

Options:

- `enable`: Enable taking full page screenshot (limited to desktop devices only)
- `delayAfterScrollMs`: Delay in ms after scrolling and before taking screenshots (helps with lazy loading content)
- `hideAfterFirstScroll`: Hide elements on the page after first scroll (uses css selectors)

Example:

```ts
await browser.sauceVisualCheck('Long content page', {
fullPage: true,
});

await browser.sauceVisualCheck('Long content page', {
fullPage: {
enable: true,
delayAfterScroll: 500,
hideAfterFirstScroll: ["#header"],
},
Expand Down

0 comments on commit 7e51752

Please sign in to comment.