Forum Discussion
vibe
14 years agoOccasional Contributor
The solution is following:
for (var i=0; i<RFx_table.RowCount; i++ ) // loop through column in table
{
var str = aqString.Trim(RFx_table.Cell(i,1).innerText, aqString.stTrailing) // read the text in the cell using innerText property. Use Trim method to remove space at the end of text, innerText property adds space for some reason
if (str == "test5")
RFx_table.Cell(i,1).Link(0).Click();
}
for (var i=0; i<RFx_table.RowCount; i++ ) // loop through column in table
{
var str = aqString.Trim(RFx_table.Cell(i,1).innerText, aqString.stTrailing) // read the text in the cell using innerText property. Use Trim method to remove space at the end of text, innerText property adds space for some reason
if (str == "test5")
RFx_table.Cell(i,1).Link(0).Click();
}