Forum Discussion
artigas
12 years agoOccasional Contributor
Greetings -
The answers posted here led me to a solution in jScript.
function Box_Favorites_02_Add_Script()
{
Aliases.p3main707.wndClaWin_PPP_Frame.MainMenu.Click("[1]|[1]");
Delay(5000, "Box Favorites Browse");
Project.Variables.BoxFavorites_Add_xls.Reset();
for(; !Project.Variables.BoxFavorites_Add_xls.IsEOF();)
{
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites.ClaChildClient.ClaButton_Add.Click(17, 11);
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites_Add.ClaChildClient.ClaEdit_Barcode.Keys(Project.Variables.BoxFavorites_Add_xls.Value("Barcode"));
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites_Add.ClaChildClient.ClaEdit_Description.Keys(Project.Variables.BoxFavorites_Add_xls.Value("Description"));
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites_Add.ClaChildClient.ClaEdit_Length.Keys(Project.Variables.BoxFavorites_Add_xls.Value("Length"));
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites_Add.ClaChildClient.ClaEdit_Width.Keys(Project.Variables.BoxFavorites_Add_xls.Value("Width"));
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites_Add.ClaChildClient.ClaEdit_Height.Keys(Project.Variables.BoxFavorites_Add_xls.Value("Height"));
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites_Add.ClaChildClient.ClaButton_OK.Click(28, 10);
Project.Variables.BoxFavorites_Add_xls.Next();
}
Project.Variables.BoxFavorites_Add_xls.Disconnect();
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites.ClaChildClient.ClaButton_Close.Click(16, 8);
}
The key line that was missing after converting the Keyword Test to script was the *.Disconnect();
The answers posted here led me to a solution in jScript.
function Box_Favorites_02_Add_Script()
{
Aliases.p3main707.wndClaWin_PPP_Frame.MainMenu.Click("[1]|[1]");
Delay(5000, "Box Favorites Browse");
Project.Variables.BoxFavorites_Add_xls.Reset();
for(; !Project.Variables.BoxFavorites_Add_xls.IsEOF();)
{
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites.ClaChildClient.ClaButton_Add.Click(17, 11);
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites_Add.ClaChildClient.ClaEdit_Barcode.Keys(Project.Variables.BoxFavorites_Add_xls.Value("Barcode"));
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites_Add.ClaChildClient.ClaEdit_Description.Keys(Project.Variables.BoxFavorites_Add_xls.Value("Description"));
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites_Add.ClaChildClient.ClaEdit_Length.Keys(Project.Variables.BoxFavorites_Add_xls.Value("Length"));
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites_Add.ClaChildClient.ClaEdit_Width.Keys(Project.Variables.BoxFavorites_Add_xls.Value("Width"));
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites_Add.ClaChildClient.ClaEdit_Height.Keys(Project.Variables.BoxFavorites_Add_xls.Value("Height"));
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites_Add.ClaChildClient.ClaButton_OK.Click(28, 10);
Project.Variables.BoxFavorites_Add_xls.Next();
}
Project.Variables.BoxFavorites_Add_xls.Disconnect();
Aliases.p3main707.wndClaWin_PPP_Frame.MDIClient.wndClaWin_BoxFavorites.ClaChildClient.ClaButton_Close.Click(16, 8);
}
The key line that was missing after converting the Keyword Test to script was the *.Disconnect();