-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Disable screenshot file creation when getting base64 #6637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There is no such thing as
The API is universal - currently, webdriverio always creates a file. This is the main reason why it's the same across the board. I guess, technically we can have different behaviours between different providers. |
Can webdriverio disable the file creation? playwright default is not creating a file. IMO that is a better approach/default as the behavior is more decoupled. Currently, per documentation the |
You are quoting the answer to your own question. It cannot. (At least, to my knowledge) |
Clear and concise description of the problem
Currently, when
page.screenshot({ base64: true })
, the file is still being created.I want to delegate the file creation to another code similar to
jest-image-snapshot
.https://vitest.dev/guide/browser/locators.html#screenshot
Suggested solution
IMO when doing
{ base64: true }
it should not generate the file. It should even returnPromise<Buffer>
like how it is done inplaywright
.If we want to avoid breaking change, we can add
{ skipFileCreation?: true }
option.Alternative
playwright
does not create the file by default:No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: