Rayrun
← Back to Discord Forum

Is it possible to increase the zoom level using playwright?

like pressing CMD + in a regular browser

This thread is trying to answer question "Is it possible to increase the zoom level using playwright?"

4 replies

@abdellah. There is no zoom in and out option . You can use page.evaluate method page.evaluate("document.body.style.zoom=2.0")

bububu8615
bububu8615

You can zoom using evaluate js but it's not like ctrl + -/+ not recommand this solution to use on test though

butchmayhew
butchmayhew

https://github.com/microsoft/playwright/issues/2497 <- Add a 👍 to let the devs know you want this implemented.

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.