Skip to content

[🚀 Feature]: Node.js version with firefox missing full page screenshot option #13301

Closed
@ghost

Description

Feature and motivation

I have tried python version with firefox driver, it has a extra method for firefox driver.save_full_page_screenshot(screenshot_path).
Samething is missing for Node.js version.

We can use const image = await body.takeScreenshot(true) to take screenshot of whole page but it not same as save_full_page_screenshot. body.takeScreenshot it will scroll to the bottom when taking screenshot and if you have fixed header, header will be at the end of the page. driver.takeScreenshot does not take screenshot of whole page.

I assume it is a firefox only feature and uses built-in firefox screenshot tool. It works well with floating button and fixed header.

Usage example

await firefoxDriver.saveFullPageScreenshot(screenshot_path);

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-nodejsJavaScript BindingsI-enhancementSomething could be betterR-help wantedIssues looking for contributions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions