Forum Discussion
Looking at your code, I see this:
TWAPanel = Aliases.MOP1998.frmMain.pnlMeterID.ClickR();
This, I think, is the root of your problem. ClickR is an action that does not return any result (see https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/onscreen/clickr-action-onscreen-object.html). So, assigning TWAPanel to the result of ClickR will basically, assign nothing to TWAPanel. This is where I would start. I'm actually surprised you're not getting some sort of error trying to call
TWAPanel.TWAPanelImage.ClickR(39, 40);
Thanks for having a look, unfortunately this didn't work either. The scripts I have that worked in version 12.10
function Adjust_Appointments_Open()
{
var mop1998;
var TWAPanel;
mop1998 = Aliases.MOP1998;
TWAPanel = Aliases.MOP1998.frmMain.pnlMeterID;
TWAPanel.TWAPanelImage.ClickR();
TWAPanel.PopupMenu.Click("Actions|Adjust Appointments");
aqObject.CheckProperty(Aliases.MOP1998.frmAdjustAppts, "Caption", cmpEqual, "System - Adjust Appointments");
Aliases.MOP1998.frmAdjustAppts.Focused;
}
This fails in version 12.30. I have raised this issue with support as I think the issue is where TC is unable to get to the popupmenu which is stated in the Logfile.
Related Content
- 6 months agosohailalam2696
- 5 years agorancan
- 7 years agoBBMI
Recent Discussions
- 2 hours agoSubhraDas
- 16 hours agoJacobjacob44