Error when play the script
We have create a Function as below.
function OpenWorkbook(WB)
{
//Moves the mouse cursor to the specified item and then simulates a single click.
Aliases.QBIS.MainMirandaConsole.rbnBarMain.ClickItem("ApplicationButton|Open");
//Enters text in the text editor.
Aliases.QBIS.dlgOpen.ComboBoxEx32.SetText(WB);
//Aliases.QBIS.dlgOpen.DUIViewWndClassName.DirectUIHWND.FloatNotifySink.ComboBox.Edit.SetText(WB);
//Simulates a left-button single click in a window or control as specified (relative position, shift keys).
Aliases.QBIS.dlgOpen.btnOpen.ClickButton();
When Played the script it displayed following error.
An error occurred while calling the "ClickItem" method or property of the "rbnBarMain" object.
The object or one of its parent objects does not exist.
Tested Object
Alias: | Aliases.QBIS.MainMirandaConsole.rbnBarMain |
Mapping item: | NameMapping.Sys.QBIS.MainMirandaConsole.rbnBarMain |
Missing Object
Alias: | Aliases.QBIS.MainMirandaConsole |
Mapping item: | NameMapping.Sys.QBIS.MainMirandaConsole |
Please find the screen shot of the Maped Object, Aliases, and Object browser. Everything seems ok, still getting above error.