jane_morris
8 years agoOccasional Contributor
Type Error - Cannot read perperty 'Click' of undefined
We have a script that is attempting to right click on an icon and then trying to select an item from a menu list. The error that occurs is
JavaScript runtime error.
TypeError
Cannot read property 'Click' of undefined
It is a Delphi application that we are testing.
The script is simple
function Test1()
{
var TWAPanel;
TWAPanel = Aliases.MOP1998.frmMain.pnlMeterID.ClickR();
TWAPanel.TWAPanelImage.ClickR(39, 40);
TWAPanel.PopupMenu.Click("History");
}
It seems to be not recognising the Click from the PoipMenu.
We are using TestComplete v12.30.
Does anyone have any suggestions?
Thanks
Jane