lucieneven
13 years agoContributor
problem on invoke submenu when recording the tested applet uses a non-standard menu control
Hello,
I have a problem on recording the tested applet uses a non-standard menu control. I ever had a posted namely "VBScript runtime error: Object required: 'commandMenuBar.SwingPopupMenu'", http://smartbear.com/forums/forum/post/?mode=singleThread&thread=5bb61f6a-55f3-4584-a2e5-d0dad67ec618, over there, i saw problem of playbacking recorded script.
However, now i even can't record the script normally. As can be seen from snapshot 2011-11-29 4-34-11 PM.png, I wanted to click the menu of Project and then invoke the submenu. Actually, in the recording mode, there's no response when i clicked the Project menu.
So the script is like below:
Call commandMenuBar.SwingMenu.Click("Project")
Call commandMenuBar.SwingMenu.Click("Project")
Call commandMenuBar.SwingMenu.Click("Project")
Call commandMenuBar.SwingMenu.Click("Project")
...
Before, based on the suggestion from above mentioned post, i tried to associate this menu control with a standard Swing menu. But it doesn't help.
Please advise what we can do here.
btw, my test is to test Java Applet in the web browser. Indeed, i tried both application type, generic Windows Application and Web. It's the same.
Thanks for your concerning here!
Lucien
I have a problem on recording the tested applet uses a non-standard menu control. I ever had a posted namely "VBScript runtime error: Object required: 'commandMenuBar.SwingPopupMenu'", http://smartbear.com/forums/forum/post/?mode=singleThread&thread=5bb61f6a-55f3-4584-a2e5-d0dad67ec618, over there, i saw problem of playbacking recorded script.
However, now i even can't record the script normally. As can be seen from snapshot 2011-11-29 4-34-11 PM.png, I wanted to click the menu of Project and then invoke the submenu. Actually, in the recording mode, there's no response when i clicked the Project menu.
So the script is like below:
Call commandMenuBar.SwingMenu.Click("Project")
Call commandMenuBar.SwingMenu.Click("Project")
Call commandMenuBar.SwingMenu.Click("Project")
Call commandMenuBar.SwingMenu.Click("Project")
...
Before, based on the suggestion from above mentioned post, i tried to associate this menu control with a standard Swing menu. But it doesn't help.
Please advise what we can do here.
btw, my test is to test Java Applet in the web browser. Indeed, i tried both application type, generic Windows Application and Web. It's the same.
Thanks for your concerning here!
Lucien