Forum Discussion
Hi,
a) I do not see anything in your code that supposed to open popup menu indeed (right-click, or pressing the menu key, or ...);
b) To exclude the dynamic part of window class name (Afx:...) you may substitute it with asterisk (e.g.: Afx:00007FF6A9B70000:0 => Afx:00007FF6A9B70000*).
However, considering the text of the error message, first point seems to be the real reason to me. If it were the second point, I would expect something like 'Window ... was not found'.
Hi AlexKaras,
There is an action in keyword test of right click on AfxWnd90u to open the popup menu, then I add the script and get some message to verify is the script really can check the menu state or not.
After I applied the asterisk and these are what shown in test log.
The menu item 'Light' was clicked. (add. info show the tested object is the PopupMenu)
Cannot obtain the popup menu. (add. info show the tested object is Image View 1)
Is it means that actually the script is testing the wrong object? Maybe due to this code?
w.PopupMenu.Items(8)
- TanyaYatskovska5 years agoSmartBear Alumni (Retired)
Hi Josh_147,
Could you please explain a bit more about possible states of the menu item? That would be great if you can prepare a sample application with this control - in this case, the community can play with it and find a solution.
- Josh_1475 years agoContributor
Hi TanyaYatskovska ,
I had tried to change the index number and there is no more issue. Thanks a lot!
- TanyaYatskovska5 years agoSmartBear Alumni (Retired)
Happy to hear this, Josh_147 :)
Related Content
- 4 years ago
- 2 years ago
- 9 years ago
- 10 years ago
Recent Discussions
- 21 hours ago