selenium vba code to zoom out webpage to 60%

To zoom out the webpage to 60% you can use either of the following line of code :

driver.ExecuteScript "document.body.style.transform='scale(0.6)';"

or

driver.ExecuteScript "document.body.style.zoom='60%';"

Leave a Comment