I was just struggling with this. I managed to find something that works for me, hopefully it works for you:
driver.execute_script("document.body.style.zoom='zoom %'")
Have ‘zoom%’ = whatever zoom level you want. (e.g. ‘67%’)
More Related Contents:
- ChromeDriver Error: ‘chromedriver’ executable needs to be in PATH [duplicate]
- How to configure ChromeDriver to initiate Chrome browser in Headless mode through Selenium?
- unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed with ChromeDriver Selenium
- How to get attribute of element from Selenium?
- How to work with a specific version of ChromeDriver while Chrome Browser gets updated automatically through Python selenium
- selenium.common.exceptions.InvalidSelectorException with “span:contains(‘string’)”
- find_element_by_* commands are deprecated in selenium
- Unable to use Selenium to automate Chase site login
- Selenium Element not visible exception
- Scrape website with dynamic mouseover event
- How to disable CSS in Python selenium using ChromeOptions
- Dynamic dropdown doesn’t populate with auto suggestions on https://www.nseindia.com/ when values are passed using Selenium and Python
- ElementNotVisibleException : Selenium Python
- Python – Requests, Selenium – passing cookies while logging in
- Get value of an input box using Selenium (Python)
- ElementNotInteractableException: Message: element not interactable error while sending text to Email field on Quora using Selenium with Python
- How to get status code by using selenium.py (python code)
- How to change the User Agent using Selenium and Python
- SessionNotCreatedException: This version of ChromeDriver only supports Chrome version 84 using ChromeDriver and Chrome through Selenium and Python
- selenium grid listening on node port instead of hub port
- Python & Selenium: Difference between driver.implicitly_wait() and time.sleep()
- “selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element” while clicking a ‘Next’ button with Selenium
- Clear text from textarea with selenium
- PhantomJS with Selenium error: Message: ‘phantomjs’ executable needs to be in PATH
- How to get background-image from inline css using selenium
- How to rotate various user agents using selenium python on each request
- How to get the localStorage with Python and Selenium WebDriver
- Selenium Python – Finding Elements by Class Name With Spaces
- Send keys not working selenium webdriver python
- Webdriver Screenshot