I have a table with header Task details and TaskTime. Task details column contain some text (Perform Operation roll no. 150) and onclick there is java script operation is performed and new page is displayed in same window.
I want to click on particular table cell say 2nd or 3rd or any cell using partial text roll no. by using findelementBy.cssselector.
Below is my code snippet for table which gets frequently updates and different roll no. gets added to table
<tr class="Pointer" onmouseover="this.style.cursor='hand'" title="Perform" style="">
<td onclick="javascript:__doPostBack">Perform Operation roll no. 150</td>
<td onclick="javascript:__doPostBack">07 Jul 2015 05:26 PM</td>
<tr class="Pointer" onmouseover="this.style.cursor='hand'" title="Perform" style="">
<td onclick="javascript:__doPostBack">Perform Operation roll no. 161</td>
<td onclick="javascript:__doPostBack">07 Jul 2015 05:18 PM</td>
<tr class="Pointer" onmouseover="this.style.cursor='hand'" title="Perform" style="">
<td onclick="javascript:__doPostBack">Perform Operation roll no. 155</td>
<td onclick="javascript:__doPostBack">07 Jul 2015 05:13 PM</td>
Note my xpath is not working properly and below table will frequently changes.