title: Get distance between two web elements in Python?
body: <p>Say I have</p>
  
  <pre><code>&lt;body&gt;
      &lt;div id="container1"&gt;&lt;div&gt;
      &lt;div id="container2"&gt;&lt;div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Is there a way to get the distance between <code>container1</code> and <code>container2</code> after it has rendered in the browser? With distance I mean the actual distance as the user sees it between the two elements, either in pixels, inches or whatever.</p>