The width and height parameters for setting viewport size don't set the initial window size in interactive mode (though they are later used to set the viewport before the shot).
This fact makes interactive mode less useful because the playwright browser doesn't seem responsive to interactive window resizing. The initial size of the window is thus important.
Seems like calling page.set_viewport_size() after the interactive window is launched should work.
The
width
andheight
parameters for setting viewport size don't set the initial window size in interactive mode (though they are later used to set the viewport before the shot).This fact makes interactive mode less useful because the playwright browser doesn't seem responsive to interactive window resizing. The initial size of the window is thus important.
Seems like calling
page.set_viewport_size()
after the interactive window is launched should work.