Hello,
I have been working with TestAdvantage for HP QuickTest Proffessional. The Version of Testadvantage is 2006 Volume 1 CLR 2.0 and Netadvantage is also on the same version.
In my application i try to select a object from a tree and then right click on it. The right clicked context menu appears as a swftoolbar and when i click on to select a option it throws a error as
"Cannot Access a disposed object. Object Name:PopupMenuControlTrusted" .
I have attached the screenshot for reference.
Can you please let me how to work with this issue ???
Looking forward for a solution.
Warm Regards,
Robert
Hello kkshireesh1,
Are you getting an error "Cannot access a dispossed object" or another issue. If you are getting the Cannot access a dispossed object, please provide me with the line of script that fails as well as a few lines before it and a description of what the actions are supposed to do in your application.
Alan
can you give the full example sridhar
Hi Robert,
Use .Net Windows Forms Spy insted of using normal spy. Located in QTP--> Tools-->.Net Windows Forms Spy
Click on normal toolbar after that spy learns all toolbars data and displays.
After that expand the following items in .Net Windows forms Spy
ToolbarsManager.Tools .Item()...
or
ToolbarsManager.Toolbars...
You will get the data for particular Popup menu tool. and wrie the script as per flow of the spy Ex: (XX).Object.ToolbarManager.Tools.Item(3).Select etc...
Record the script. Execute, it will work.
Thanks
Sridhar