Skip to content

Proposal: Add facility to take a screenshot of whole document #1283

Closed
@SetTrend

Description

@SetTrend

Currently, WebDriver only allows to take a screenshot of the current viewport.

This is not sufficient when testing CSS (cascading style sheets).

Changes to a CSS rule may affect regions anywhere on the document. Even regions that have not been in the focus while performing a test recording.

Please concider to add an action for taking a screenshot of the whole document (= Take Document Shot).

Following is the suggested workflow of taking a screenshot of the whole document:

  1. Create a second, hidden viewport (= v²)
  2. Enlarge v² horizontally to the minimum width required to avoid a horizontal scrollbar (Element.scrollWidth)
  3. Enlarge v² vertically to the minimum height required to avoid a vertical scrollbar (Element.scrollHeight)
  4. Take screenshot of v²
  5. Purge v²

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