![]() It could be that the click point calculated does not actually click on any part of the link in the UI. It could be that somthing about the extent of the object (the rectangle surrounding the object that is used to calculate points within the object) is somehow incorrect coming from the DOM. href property and it is correct, then you know you have the link you want to click on. click() method calculates the center of the object as the click point. TestObject cellObjClick = cellObj.find(atDescendant(".class","Html.A")) TestObject cellObj = tablename_obj.find(atList(atChild(".class", "Html.TBODY"),atChild(".class", "Html.TR",".rowIndex", row),atChild(".class", "Html.TD",".cellIndex",col)), false) GuiTestObject tablename_obj=(GuiTestObject)tablename TestObject tablename = root.find(atDescendant(".class", "Html.TABLE", ".id", table_name), true) Is there any better way to handle this? Appreciate anyone's help on this. 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.:( 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. I have to click on a link within my HTML table cell. I am new to RFT and Java coding and I was trying to automate a web based application using IBM-RFT tool with Java.
0 Comments
Leave a Reply. |