title: Selenium webdriver zoom with Ruby for Chrome
body: <p>I am executing automated tests with cucumber and the selenium webdriver connected to Google Chrome and I need to change the zoom at the browser to avoid errors at some automated tests.</p>
  
  <p>The zoom can be changed by pressing the keys <em>Control + '-'</em> or <em>Control + '-'</em>. </p>
  
  <p>In order to simulate the pressing of theese keys I have added a Hook with this code:</p>
  
  <pre><code>Before ('@ChangeBrowserZoom') do
        page = Capybara::page
        page.find("html").send_keys(:control , '+')
        page.find("body").native.send_keys(:control , '+')
  end
  </code></pre>
  
  <p>The hook is been called but it is not working.</p>