title: Is there a way to zoom out in chrome using c# and selenium other than CSS zoom?
body: <p>I access a web page (angular) using selenium. If I zoom out the page manually in chrome then the menu appears and it is easier to navigate. I want to do the same with selenium and c#. A lot of post ask similar question but not exactly the same. Let me explain:</p>
  
  <ol>
  <li><p>css zoom</p>
  
  <pre><code>((IJavaScriptExecutor)driver).ExecuteScript("document.body.style.zoom = '70%'");
  </code></pre>
  
  <p>The page is zoomed out but the angular webpage does not detect it, the hidden menu is not displayed, so it is not good for me.</p></li>
  <li><p>zoom with keys:</p>
  
  <pre><code>new Actions(driver).SendKeys(Keys.Control).SendKeys(Keys.Subtract).Perform();
  </code></pre>
  
  <p>It does not change the zoom level for me. There is no exception, it just does nothing. I tried other SendKeys method without success.</p></li>
  <li><p>zoom with chrome settings</p>
  
  <pre><code>driver.Url = "chrome://settings";
  ((IJavaScriptExecutor)driver).ExecuteScript("chrome.settingsPrivate.setDefaultZoom(0.66);");
  </code></pre>
  
  <p>This changes the zoom level but after the first line there will an error message: "Failed to load pepper module from internal-not-yet-present".
  After that the webdriver works improperly. For example, the code which clicked a button which worked before does not work anymore.</p></li>
  </ol>
  
  <p>Any new idea?</p>