-
-
Notifications
You must be signed in to change notification settings - Fork 60
Description
Is your feature request related to a problem? Please describe.
Often, the full page screenshots are unreliable and contain ghosting of elements due to scrolling effects.
For example: see #125
Describe the solution you'd like
Multiple browsers have built in support for this that deliver a clean and ghost free image.
For Firefox, we can create a client side script that calls the :screenshot command. See docs here:
https://firefox-source-docs.mozilla.org/devtools-user/taking_screenshots/index.html#taking-screenshots-with-the-web-console
Then execute it with the executor function in getFullPageScreenshotsDataDesktop:
| export async function getFullPageScreenshotsDataDesktop( |
Describe alternatives you've considered
We could also call the webdriverIO API: browser.fullPageScreenshot(), if the browser is available to us.
https://webdriver.io/docs/api/gecko/#fullpagescreenshot