title: Using Selenium with Python to parse table data
body: <pre><code>&lt;table class="table table-striped"&gt;
      &lt;thead&gt;
      &lt;tr class="reactable-column-header"&gt;
          &lt;th class="reactable-th-status reactable-header-sortable " role="button" tabindex="0"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/th&gt;
          &lt;th class="reactable-th-question_id reactable-header-sortable reactable-header-sort-asc" role="button"
              tabindex="0"&gt;&lt;strong&gt;#&lt;/strong&gt;&lt;/th&gt;
          &lt;th class="reactable-th-question_title reactable-header-sortable " role="button" tabindex="0"&gt;
              &lt;strong&gt;Title&lt;/strong&gt;&lt;/th&gt;
          &lt;th class="reactable-th-editorial reactable-header-sortable " role="button" tabindex="0"&gt;
              &lt;strong&gt;Solution&lt;/strong&gt;&lt;/th&gt;
          &lt;th class="reactable-th-acceptance reactable-header-sortable " role="button" tabindex="0"&gt;
              &lt;strong&gt;Acceptance&lt;/strong&gt;&lt;/th&gt;
          &lt;th class="reactable-th-difficulty reactable-header-sortable " role="button" tabindex="0"&gt;
              &lt;strong&gt;Difficulty&lt;/strong&gt;&lt;/th&gt;
          &lt;th class="reactable-th-frequency reactable-header-sortable " role="button" tabindex="0"&gt;&lt;strong&gt;Frequency
              &amp;nbsp;&lt;span id="frequency-tooltip" class="fa fa-lock" data-toggle="tooltip" data-placement="top" title=""
                          data-original-title="Only premium members can see the frequency"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/th&gt;
      &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody class="reactable-data"&gt;
      &lt;tr&gt;
          &lt;td label="[object Object]"&gt;&lt;/td&gt;
          &lt;td label="[object Object]"&gt;1&lt;/td&gt;
          &lt;td value="Two Sum" label="[object Object]"&gt;
              &lt;div&gt;&lt;a href="/problems/two-sum"&gt;Two Sum&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
          &lt;/td&gt;
          &lt;td label="[object Object]"&gt;&lt;a href="/articles/two-sum"&gt;&lt;i class="fa fa-file-text"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/td&gt;
          &lt;td value="44.23248982536708" label="[object Object]"&gt;44.2%&lt;/td&gt;
          &lt;td value="[object Object]" label="[object Object]"&gt;&lt;span class="label label-success round"&gt;Easy&lt;/span&gt;&lt;/td&gt;
          &lt;td label="[object Object]"&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td label="[object Object]"&gt;&lt;/td&gt;
          &lt;td label="[object Object]"&gt;2&lt;/td&gt;
          &lt;td value="Add Two Numbers" label="[object Object]"&gt;
              &lt;div&gt;&lt;a href="/problems/add-two-numbers"&gt;Add Two Numbers&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
          &lt;/td&gt;
          &lt;td label="[object Object]"&gt;&lt;a href="/articles/add-two-numbers"&gt;&lt;i class="fa fa-file-text"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/td&gt;
          &lt;td value="31.20978757805531" label="[object Object]"&gt;31.2%&lt;/td&gt;
          &lt;td value="[object Object]" label="[object Object]"&gt;&lt;span class="label label-warning round"&gt;Medium&lt;/span&gt;&lt;/td&gt;
          &lt;td label="[object Object]"&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td label="[object Object]"&gt;&lt;/td&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Mlj9Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mlj9Q.png" alt="enter image description here"></a></p>
  
  <p>The HTML above represents the two rows shown in the image.
  I want to iterate through the table row and print out the Title (Two Sum and Add Two Numbers) using Selenium with Python.</p>
  
  <p>However, the table structure is too complicated and I am not sure how to make a generalized function that might work for a bigger table with more rows.</p>
  
  <p>Any help?</p>