Skip to content

Screenshot of a screen portion. #285

@mathieujobin

Description

@mathieujobin

I wish to be able to use ferrum to load a webpage and take a screenshot of a specific screen portion.

it should be delimited by x,y,w,h or css selector.

I tried....

a = browser.position = { left: 80, top: 500 } ; browser.screenshot(path: "xe-test-1.jpg")
b = browser.screenshot(path: "xe-test-1.jpg", selector: "div#undefined")
c = browser.at_css("div#undefined").screenshot(path: "xe-test-1.jpg")

none works.

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