Closed
Description
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:
- Create a second, hidden viewport (= v²)
- Enlarge v² horizontally to the minimum width required to avoid a horizontal scrollbar (
Element.scrollWidth
) - Enlarge v² vertically to the minimum height required to avoid a vertical scrollbar (
Element.scrollHeight
) - Take screenshot of v²
- Purge v²
Metadata
Metadata
Assignees
Labels
No labels