Describe the bug
Screenshots are saved with jpeg extension even if takeScreenshot is called with {type:"png"}.
NOTE: The file content IS png as expected.
Expected behavior
Would expect screenshots to be created with extension png. Instead their extension is jpeg, the content is indeed png as one would expect.
Describe the bug Screenshots are saved with
jpeg
extension even iftakeScreenshot
is called with{type:"png"}
. NOTE: The file content ISpng
as expected.To Reproduce Steps to reproduce the behavior:
Expected behavior Would expect screenshots to be created with extension
png
. Instead their extension isjpeg
, the content is indeedpng
as one would expect.Additional context
saveScreenshot
does not receive theoptions
thus it is unaware of the expected extension.