Skip to content

Remove an image before a screenshot #14980

@NicoloLattanzio

Description

@NicoloLattanzio

Hello, i wanted to remove an image(or set it as not visible), before a screenshot, i did this script, but isnt working:

await page.locator('body > div.wrapper > img').evaluate(element => element.style.display = 'block;');

It doesnt give an error, it just dont do anything

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