TikiHardBop :
Hi,
> When you hover over the table cell, an icon becomes visible in that cell and you click that icon to do a delete.
I would recommend to either investigate this area of your tested application using Object Browser or to talk to developers and ask them how this functionality has been implemented.
It is difficult to suggest something without seen the actual application (or, at least, a screenshot and corresponding markup), but I may imagine the following scenario:
-- Some script is executed when mouse hovers over the cell and the icon is displayed;
-- This icon might be not actual <img> tag or the like, but be implemented via CSS and thus be not detected by TestComplete.
If my guess is correct, then this can be handled this way:
-- Hover mouse over the cell;
-- Do some delay (say, 0.5 sec) to guarantee that the icon is displayed;
-- Assuming the icon is displayed at the right border of the cell, click the cell, say, 5 pixels from its right border. Something like this: cell.Click(cell.Left + cell.Width - 5, cell.Top - cell.Height / 2);
If the icon is a real object (say, img element), then you should wait until it appears. Like this:
cell.HoverMouse();
var oIcon = cell.FindChildEx("ObjectType", "IMG", 5, true, 5000);
if (oIcon.Exists)
oIcon.Click();
else
Log.Error("Icon was not found");