Selenium webdriver with Python on chrome - Scroll to the exact middle of an element
<p>I'm trying to click on an element solely by getting it with XPATH. I get an exception that the element is un-clickable in the given location.</p>

<p>I know for sure that the center of the element is clickable, so how do i get the exact middle (x,y) of the element and click it with Selenium using Python?</p>

<p>EDIT:</p>

<p>I've found the solution for this issue:</p>

<pre><code>driver.execute_script("arguments[0].scrollIntoView(true);", element)
time.sleep(0.5)
element.click()
</code></pre>

<p>The time.sleep was the missing link.</p>