Mpho_Mogapi
12 years agoOccasional Contributor
Running test scripts on different monitors
I have a problem with Test complete object spy naming one object different names according to which screen you run your tests on .
On one monitor the flex object's name is graphic, however when I run the same script on a different monitor same pc it fails, when I try object spy i see that the object name has changed to graphic24 how is that possible ?
Here is my sample script :
On one monitor the flex object's name is graphic, however when I run the same script on a different monitor same pc it fails, when I try object spy i see that the object name has changed to graphic24 how is that possible ?
Here is my sample script :
var
browser;
var panel;
var vobject;
var edit;
var graphic;
var edit2;
var graphic2;
var edit3;
Browsers["Item"](btIExplorer)["Run"]("file:///D:/Test Complete CIT Demo Script/ITR14/debug.html");
browser =
Aliases["browser"];
browser["BrowserWindow"]["FrameNotificationBar"]["DirectUIHWND"]["Click"](790, 24);
panel = browser["pageDebug1"]["panelMain"];
panel["panelColumn1"]["submitbuttonSendbutton"]["Click"]();
vobject = panel["panelColumn2"]["objectMainapplication"];
vobject["Graphic"]["Click"](11, 12);