title: Zoom out selenium chrome driver
body: <p>I have a big table and I want the get all columns. The columns start from left and finish to right and when I zoom out more are displayed.</p>
  <p>The only way that I was able to make zoom is with:</p>
  <pre><code>JavascriptExecutor executor = (JavascriptExecutor) RunEnvironment.getWebDriver();
  executor.executeScript(&quot;document.body.style.zoom = '30%'&quot;);
  </code></pre>
  <p>The problem with this approach scales the entire page and the elements does not resize.</p>
  <p>Eg with stackoverflow with a scale of 0.5:
  <a href="https://i.stack.imgur.com/JTTKU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JTTKU.png" alt="enter image description here" /></a></p>
  <p>While If i zooming using mouse wheel I get:
  <a href="https://i.stack.imgur.com/rnflU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rnflU.png" alt="enter image description here" /></a></p>
  <p>All the elements inside page are resized. Is there a way to get the same output with selenium?</p>
  <p>I tried also something like:</p>
  <pre><code>WebElement body = RunEnvironment.getWebDriver().findElement(By.tagName(&quot;body&quot;));
  body.sendKeys(Keys.chord(Keys.CONTROL,&quot;-&quot;));
  
  //or
  
  body.sendKeys(Keys.chord(Keys.CONTROL, Keys.SUBTRACT));
  </code></pre>
  <p>But doesn't work. The application is created with Angular 8.</p>