title: Python Selenium get cell value based on coordinates
body: <p><strong>I want to find a specific cell in a table based on coordinates.</strong></p>
  <p>HTML</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="model" class="mobile handsontable htRowHeaders htColumnHeaders" style="height: 100%; overflow: hidden;" data-originalstyle="height: 100%; overflow: hidden;"&gt;
    &lt;div class="ht_master handsontable"&gt;&lt;div class="wtHolder" style="position: relative; height: 380px; width: 1468px;"&gt;
    &lt;div class="wtHider" style="width: 2550px; height: 2109px;"&gt;
      &lt;div class="wtSpreader" style="position: relative; top: 0px; left: 0px;"&gt;
        &lt;table class="htCore"&gt;
          &lt;colgroup&gt;
            &lt;col class="rowHeader" style="width: 50px;"&gt;
            &lt;col style="width: 400px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
            &lt;col style="width: 70px;"&gt;
          &lt;/colgroup&gt;
          &lt;thead&gt;
            &lt;tr&gt;
              &lt;th class=""&gt;
                &lt;div class="relative"&gt;
                  &lt;span class="colHeader cornerHeader"&gt;&amp;nbsp;&lt;/span&gt;
                &lt;/div&gt;
              &lt;/th&gt;
              &lt;th class=""&gt; 
                &lt;div class="relative"&gt;
                  &lt;span class="colHeader"&gt;Division, Base Alternative&lt;/span&gt;
                &lt;/div&gt;
               &lt;/th&gt;
              &lt;th class=""&gt;
                &lt;div class="relative"&gt;
                  &lt;span class="colHeader"&gt;2015 (M)&lt;/span&gt;
                &lt;/div&gt;
               &lt;/th&gt;
              &lt;th class=""&gt;
                &lt;div class="relative"&gt;
                  &lt;span class="colHeader"&gt;2016 (N)&lt;/span&gt;
                &lt;/div&gt;
               &lt;/th&gt;
              &lt;th class=""&gt;
                &lt;div class="relative"&gt;
                  &lt;span class="colHeader"&gt;2017 (O)&lt;/span&gt;
                &lt;/div&gt;
               &lt;/th&gt;
              &lt;th class=""&gt;
                &lt;div class="relative"&gt;
                  &lt;span class="colHeader"&gt;2018 (P)&lt;/span&gt;
                &lt;/div&gt;
               &lt;/th&gt;
              &lt;th class=""&gt;
                &lt;div class="relative"&gt;
                  &lt;span class="colHeader"&gt;2019 (Q)&lt;/span&gt;
                &lt;/div&gt;
              &lt;/th&gt;
             &lt;/tr&gt;
            &lt;thead&gt;
              &lt;tr&gt;                                                                                                     &lt;th class="" style="height: 17px;"&gt;
                  &lt;div class="relative"&gt;
                    &lt;span class="rowHeader"&gt;1&lt;/span&gt;
                  &lt;/div&gt;
                  &lt;/th&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="afterHiddenColumn htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap"&gt;&lt;/td&gt;
              &lt;tr&gt;
                &lt;th class="" style="height: 17px;"&gt;
                  &lt;div class="relative"&gt;
                    &lt;span class="rowHeader"&gt;2&lt;/span&gt;
                  &lt;/div&gt;
                 &lt;/th&gt;
                &lt;td class="htDimmed htNoWrap" title="" style="background-color: rgb(194, 218, 254); font-size: 10pt; color: rgb(0, 0, 0); text-align: left;"&gt;&lt;/td&gt;
                &lt;td class="afterHiddenColumn htDimmed htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;&lt;/td&gt;
                &lt;td class="htDimmed htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;&lt;/td&gt;
              &lt;/tr&gt;
             &lt;tr&gt;
              &lt;th class="" style="height: 17px;"&gt;
                &lt;div class="relative"&gt;
                  &lt;span class="rowHeader"&gt;3&lt;/span&gt;
                &lt;/div&gt;
               &lt;/th&gt;
              &lt;td class="htNoWrap" title="" style="background-color: rgb(194, 218, 254); font-size: 10pt; color: rgb(0, 0, 0); text-align: left;"&gt;Model period&lt;/td&gt;
              &lt;td class="afterHiddenColumn htRight htNumeric htNoWrap" title="" style="background-color: rgb(255, 255, 128); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
              &lt;td class="htRight htNumeric htNoWrap" title="" style="background-color: rgb(255, 255, 128); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
              &lt;td class="htRight htNumeric htNoWrap" title="" style="background-color: rgb(255, 255, 128); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
              &lt;td class="htRight htNumeric htNoWrap" title="" style="background-color: rgb(255, 255, 128); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
              &lt;td class="htRight htNumeric htNoWrap" title="" style="background-color: rgb(255, 255, 128); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
              &lt;td class="htRight htNumeric htNoWrap" title="" style="background-color: rgb(255, 255, 128); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
              &lt;td class="htRight htNumeric htNoWrap" title="" style="background-color: rgb(255, 255, 128); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
              &lt;td class="htRight htNumeric htNoWrap" title="" style="background-color: rgb(255, 255, 128); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
            &lt;/tr&gt;         
          &lt;tr&gt;
            &lt;th class="" style="height: 17px;"&gt;
              &lt;div class="relative"&gt;
                &lt;span class="rowHeader"&gt;7&lt;/span&gt;
              &lt;/div&gt;
             &lt;/th&gt;
            &lt;td class="htNoWrap" title="" style="background-color: rgb(194, 218, 254); font-size: 10pt; color: rgb(0, 0, 0); text-align: left;"&gt;Pulp sales, pulp mill, MUSD&lt;/td&gt;
            &lt;td class="afterHiddenColumn htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
            &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
            &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;597&lt;/td&gt;
            &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;572&lt;/td&gt;
            &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;648&lt;/td&gt;
            &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;35&lt;/td&gt;
            &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;326&lt;/td&gt;
            &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;326&lt;/td&gt;
          &lt;/tr&gt;
         &lt;tr&gt;
          &lt;th class="" style="height: 17px;"&gt;
            &lt;div class="relative"&gt;
              &lt;span class="rowHeader"&gt;8&lt;/span&gt;
            &lt;/div&gt;
           &lt;/th&gt;
          &lt;td class="htNoWrap" title="" style="background-color: rgb(194, 218, 254); font-size: 10pt; color: rgb(0, 0, 0); text-align: left;"&gt;Pulp sales, paper mill, MUSD&lt;/td&gt;
          &lt;td class="afterHiddenColumn htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
          &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
          &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
          &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
          &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
          &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
          &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
          &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
          &lt;td class="htNoWrap" title="" style="background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(0, 0, 0); text-align: center;"&gt;0&lt;/td&gt;
         &lt;/tr&gt;
        &lt;/thead&gt;</code></pre>
  </div>
  </div>
  </p>
  <blockquote>
  <p>Picture of the original grid table<br />
  <a href="https://i.stack.imgur.com/8khSY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8khSY.png" alt="enter image description here" /></a></p>
  </blockquote>
  <blockquote>
  <p>I have tried a bunch of different methods, but I can't understand how to do it.</p>
  </blockquote>
  <blockquote>
  <p>I want to find a cell, based on <code>line 7</code> &amp; column name <code>2017 (O)</code> for example, and get
  its value</p>
  </blockquote>
  <blockquote>
  <p>The only example I find, is to find a cell by its index or by its value, that's not what I want to accomplish.</p>
  </blockquote>
  <p><em>Thanks in advance!</em></p>
  <p><em>EDIT</em><br />
  I have provided more HTML code.</p>