Skip to content

snap() can't capture elements off initial page (Chromium has changed) [fixed] #479

@JS-code-dev

Description

@JS-code-dev

Hi, I am looking to snap images that could be potentially off the initial screen and requires scrolling.

I am using t.hover to scroll to the image, then use t.snap to take a capture of the image. However it seems like the capture of the off screen element always turns up blank even though it has already scrolled to the element.

Refer to my sample code in Python:

t.url('https://www.google.com/search?q=test')
t.hover('(//div[@role="navigation"])[2]')
t.snap('(//div[@role="navigation"])[2]', 'test.png')

Is this a bug? Or is there a way to overcome this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions