Closed nohzafk closed 8 months ago
This is a neat idea for a feature.
I closed the pull request to test the feature. Also add a device-ratio
option to allow capturing only a portion of the webpage, i use it to create a screenshot of a given URL to display in my blog posts. For example, --device 'iPad Mini' --device-ratio 3:1
Device name is a built-in name according to Playwright devices
For example, specify
-d "iPhone 14 Prox Max"
will updatecontext_args
withSpecifying device name will override width, height, and retina options.
Using the device name to take screenshots on Apple devices is more convenient than manually specifying the width, height, and device_scale_factor.