From 7e5175244563bd8acb6e4dd390ca160ab655a8c3 Mon Sep 17 00:00:00 2001 From: Pawel Tomaszewski Date: Wed, 20 Mar 2024 15:12:32 +0100 Subject: [PATCH] update docs to latest changes --- docs/visual-testing/integrations/nightwatch.md | 6 ++++-- docs/visual-testing/integrations/webdriverio.md | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/visual-testing/integrations/nightwatch.md b/docs/visual-testing/integrations/nightwatch.md index 753a289582..85c1904c7d 100644 --- a/docs/visual-testing/integrations/nightwatch.md +++ b/docs/visual-testing/integrations/nightwatch.md @@ -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"], }, diff --git a/docs/visual-testing/integrations/webdriverio.md b/docs/visual-testing/integrations/webdriverio.md index d7c3c5f629..038a8812aa 100644 --- a/docs/visual-testing/integrations/webdriverio.md +++ b/docs/visual-testing/integrations/webdriverio.md @@ -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"], },