title: Get table row text python selenium
body: <p>This is the html</p>
  
  <pre><code>&lt;table id="dataLstSubCat" cellspacing="0" style="border-collapse:collapse;"&gt;
      &lt;tbody&gt;&lt;tr&gt;
          &lt;td style="font-weight:normal;font-style:normal;text-decoration:none;white-space:nowrap;"&gt;
                          &lt;a onclick="ShowHideProduct();" id="dataLstSubCat_LnkBtnSubCat_0" href="javascript:__doPostBack('dataLstSubCat$ctl00$LnkBtnSubCat','')"&gt;Primers&lt;/a&gt;
                        &lt;/td&gt;&lt;td style="font-weight:normal;font-style:normal;text-decoration:none;white-space:nowrap;"&gt;
                          &lt;a onclick="ShowHideProduct();" id="dataLstSubCat_LnkBtnSubCat_1" href="javascript:__doPostBack('dataLstSubCat$ctl01$LnkBtnSubCat','')"&gt;Intermediates&lt;/a&gt;
                        &lt;/td&gt;&lt;td style="font-weight:normal;font-style:normal;text-decoration:none;white-space:nowrap;"&gt;
                          &lt;a onclick="ShowHideProduct();" id="dataLstSubCat_LnkBtnSubCat_2" href="javascript:__doPostBack('dataLstSubCat$ctl02$LnkBtnSubCat','')"&gt;Finishes&lt;/a&gt;
                        &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;&lt;/table&gt;
  </code></pre>
  
  <p>Now I want to extract the table data(td) text 
  like I want to extract the text</p>
  
  <p><strong>[Primers,Intermediates,Finishes]</strong></p>
  
  <p>This is what I have tried</p>
  
  <pre><code>new_text=driver.find_element_by_xpath(("//table[@id='dataLstSubCat']/tbody/tr"))
  new_text.text
  </code></pre>
  
  <p>which gives o/p in string and not in list</p>
  
  <pre><code>Primers Intermediates Finishes
  </code></pre>
  
  <p>Is there any way by which it can be done.</p>