I am looking for a way to control zoom in chrome with selenium.
I have tried
driver.ExecuteScript ("document.body.style.zoom='75%'")
This zoom in the actual page, NOT like ctrl & -
driver.ExecuteScript "chrome.settingsPrivate.setDefaultZoom(1.5)"
- This wont complie
I have no problems with eg. CTRL+a (for selecting evrything
driver.FindElementByTag("body").SendKeys Keys.Control, "a"
but it dosn’t work for SendKeys Keys.Control, Subtract