I am new to RFT and Java coding and I was trying to automate a web based application using IBM-RFT tool with Java. I have to click on a link within my HTML table cell. While playback it was able to click on links for some cells but for some it wasn't and was clicking above or below the hyperlink in the cell. It is able to recognize the link object and print out its properties like ".text", ".href" but while clicking it clicks on blank space within the cell instead of clicking on the link and this happens for some cells only.:( Is there any better way to handle this? Appreciate anyone's help on this.
TestObject[] tablename = root.find(atDescendant(".class", "Html.TABLE", ".id", table_name), true);
GuiTestObject tablename_obj=(GuiTestObject)tablename[0];
TestObject cellObj = tablename_obj.find(atList(atChild(".class" , "Html.TBODY"),atChild(".class" , "Html.TR",".rowIndex", row),atChild(".class" , "Html.TD",".cellIndex",col)), false)[0];
TestObject cellObjClick = cellObj.find(atDescendant(".class","Html.A"))[0];
((GuiTestObject)cellObjClick).click();
Please help!