Skip to content

Screenshots with Puppeteer have incorrect dimensions #12988

@adamraine

Description

@adamraine

#12973 (comment)

Full page screenshot looks ok, but the timeline view has incorrect dimensions:
Screen Shot 2021-08-26 at 4 00 51 PM

Edit: current workaround for Puppeteer is to use ignoreDefaultArgs: ['--enable-automation']

await puppeteer.launch({
  ignoreDefaultArgs: ['--enable-automation'],
});

Edit2: The above workaround isn't enough if you are using Chrome for testing which Puppeteer uses by default now. You can specify a path to a normal Chrome executable as a workaround:

await puppeteer.launch({
  ignoreDefaultArgs: ['--enable-automation'],
  executablePath: '/path/to/chrome'
});

Metadata

Metadata

Assignees

No one assigned

    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