Closed cirrusone closed 3 years ago
/// Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. Use
/// <c>ViewportSize.NoViewport</c> to disable the default viewport.
As per the docs, you need to pass in ViewportSize.NoViewport
if you want that particular behaviour.
Thank you, I missed that in the docs. I did look do a search on the docs which returned Page.ViewportSize
https://playwright.dev/dotnet/docs/api/class-page#page-viewport-size
The ViewportSize seems to be fixed and won't resize if a user resizes the browser window. Is it possible to allow the ViewportSize to auto resize when user changes browser size? I've seen a few posts on this library and others where setting the
Viewport = null
worked but it's not working here.I would expect when not using headless that the viewport can be auto changed by the user. I understand viewport not changing when in headless mode but sometimes we need to test animations and fluid layouts when size changes.
The following examples all have a fixed viewport which does not auto resize (see image).