Skip to content

Not using full viewport using browserless 2 docker image #492

@bk-one

Description

@bk-one

If you initialize Ferrum with a window size using remote browserless 2 - the window size is applied, but the viewport is not updated automatically. The DOM is rendered in a 800x600 frame, even if the browser window is set to 1900x1080.

I'm not sure if it's a bug or expected behavior, just leaving this here for reference. The workaround to utilize the full viewport is easy:

page.driver.browser.set_viewport width: 1900, height: 1080

But I had to explicitly add this, to use the full window.

Expected behavior:
The viewport is automatically extended to the window size given when initializing Ferrum. Did not have the issue when using a local chromium, this appeared after switching to browserless 2.

For reference:
Screenshot 2024-09-10 at 11 44 50

Metadata

Metadata

Assignees

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