title: element not interactable: element has zero size- Java Selenium
body: <p>I'm writing code to test the facebook website login feature. My chrome browser successfully launches and can enter user and password but I'm unable to select the 'Accept All' button when the test first goes on the website for the cookies.</p>
  <p>My code goes onto Facebook.com then tries to find the accept all button. But I can get exception</p>
  <pre><code>element not interactable: element has zero size 
  </code></pre>
  <ul>
  <li></li>
  </ul>
  <pre><code>WebDriver driver = new ChromeDriver();
          driver.get(&quot;http://www.facebook.com&quot;);
  
          driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
          driver.findElement(By.xpath(&quot;//*[@id=\&quot;facebook\&quot;]/body&quot;)).click();
  </code></pre>
  <p>Below is the output of inspect</p>
  <pre><code>&lt;button value=&quot;1&quot; class=&quot;_42ft _4jy0 _9o-t _4jy3 _4jy1 selected _51sy&quot; data-cookiebanner=&quot;accept_button&quot; data-testid=&quot;cookie-policy-banner-accept&quot; title=&quot;Accept All&quot; type=&quot;submit&quot; id=&quot;u_0_j_wR&quot;&gt;Accept All&lt;/button&gt;
  </code></pre>