cy.screenshot dpi #29338
cy.screenshot dpi
#29338
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Using chrome. Calling
cy.viewport(1920, 1080)
andcy.screenshot({capture: 'viewport'})
results in screenshots that are actually 1440 x 810.Logging the properties via
onAfterScreenshot
indicates that this is probably a DPI issue; e.g.,scaleFactor
is approximately 0.75.Is there a solution?
Beta Was this translation helpful? Give feedback.
All reactions