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