Skip to content

[Enhancement] Expand saveScreenshot() to capture full page  #522

@HughZurname

Description

@HughZurname

What are you trying to achieve?

The default behaviour for saveScreenshot() is to capture the current viewport, but from my experience on Nightmare in particular the focus isn't on the area of the fault when the screen is captured.

What do you get instead?

Basically you need to manually set the set the viewport to the height that the page may need to be in order to capture any issues to aid investigation of failed tests.

Proposed solution

Allow for saveScreenshot() to capture the full page by resizing the viewport on demand to the availible scrollHeight and scrollWidth

Notes

I've already solved this, the PR should be following shortly. This is more for reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions