While the previous test worked, I bumped into another issue which may or may not be related to name mapping.
In Object Browser, the main menuitem name is MenuItem('Action') while the submenus under it are listed as menuitem(0), menuitem(1) and so on. The OnScreen name of the main menu is 'Action' and menuitem(0) is 'Refresh' & menuitem(1) is 'Change Adviser'
I had renamed the Alias menuitem(1) to Change_Adviser however, now, when I run my test I would expect a Click on main menu Action followed by sub menu Change Adviser but while executing the test I get a pop up message from TC "Unable to find the object that matches the "Change_Adviser" item, and then it gives me 2 options ie: Point to 'Change_Adviser' on screen & Edit the identification properties of 'Change_Adviser'. If I select first option of pointing on screen, the test fails with following reason ..... There was attempt to perform a action on a zero sized wondow........"The window size is (0, 0); the screen rectangle: the left top corner is (0, 0), the right bottom corner is (0, 0). Tested object: A. Editing the property too has no success.
I am not sure what's wrong here, would you be able to suggest anything ? Screenshot attached for more details. Thanks