Skip to content

Take advantage of built in support for full page screenshots #622

Open
@nextlevelbeard

Description

@nextlevelbeard

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions