ChromeOptions to set browser zoom to 80%
To to set the zoom level to 80%
you can use Javascriptexecutor
with either of the following options :
((IJavaScriptExecutor)driver).executeScript("document.body.style.transform='scale(0.8)';");
or
((IJavaScriptExecutor)driver).executeScript("document.body.style.zoom='80%';");
Note : Deviating from the standard default zoom value of
100%
may impact the functioning of theWeb Browsers