Skip to content

Full screenshots don't show page content #18

@Odaeus

Description

@Odaeus

Hi, I'm finding Ferrum to be a great lib, thank you! I have a bug to report when taking screenshots.

The full: true option when passed to #screenshot does not show the full page, instead it only renders the visible area of the page according to the viewport and then the rest is a solid background colour. I think the tests don't catch this because they only check the image dimensions.

Here's an example:

b = Ferrum::Browser.new
b.goto "http://www.csszengarden.com/"
b.resize width: 800, height: 200
b.screenshot(path: "zg200.png", full: true)

b.resize width: 800, height: 600
b.screenshot(path: "zg600.png", full: true)

b.resize width: 800, height: b.evaluate("document.documentElement.offsetHeight")
b.screenshot(path: "zgfull.png", full: true)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions