Differences in recording JScripts
Hello,
When I record a script, it gives me variables for new dialogs and other objects. When a coworker records the same script, he is getting explict references to the same objects.
Is there a configuration setting that we have missed?
Thanks,
Dave
My script looks like this:
function Test1()
{
var sensorWorks;
var dlgNew;
var manageJob;
sensorWorks = Aliases["SensorWorks"];
sensorWorks["SensorWorksMain"]["MainMenu"]["Click"]("Project|New");
dlgNew = sensorWorks["dlgNew"];
dlgNew["ComboBoxEx32"]["SetText"]("test2");
dlgNew["btnOpen"]["ClickButton"]();
manageJob = sensorWorks["ManageJob"];
manageJob["textBoxJobNumber"]["SetText"]("123456");
manageJob["buttonOk"]["ClickButton"]();
}
His script looks like this:
function Test1()
{
var sensorWorks;
sensorWorks = Aliases.SensorWorks;
sensorWorks.SensorWorksMain.MainMenu.Click("Project|Open");
sensorWorks.dlgOpen.OpenFile("\\\\fs1\\Engineering\\MikeRakhunov\\200123_add_file_040716.proj");
sensorWorks.ManageJob.buttonOk.ClickButton();
}
Hi Helen,
Thanks for the reply but I'm still having problems. I tried changing the script engine on both systems and it does not seem to make any difference. I have installed another license on my primary laptop running Win8 and I'm getting the same results as my co-worker running Win10: the dot notation.
Dave