Hi,
I'm working on an infragistics application. My functionality is to test
1) right click on the grid --> working
2) right click menu has different option like "create","edit","remove" etc
3) I need to check if the edit and remove option is disabled in the menu
Please let me know how do i get the disabled property in a menu.
VLS
Hello VLS,
Your question is not related with Infragistics and our TestAdvantage, because we have not ContextMenu control. Maybe you are using Microsoft`s ContextMenuStrip control in our UltraGrid. If so, then you could use the default functionality in the QTP and check if the Item from context menu is enable or not.
You could use the code below:
SwfWindow("Form1").Move 359,166SwfWindow("Form1").SwfTreeView("ultraTree1").ActivateNode "\Node13"SwfWindow("Form1").SwfTreeView("ultraTree1").Select "\Node13"SwfWindow("Form1").SwfTreeView("ultraTree1").RightClick ""SwfWindow("Form1").SwfToolbar("SwfToolbar").Select "AAAAAAA"SwfWindow("Form1").SwfTreeView("ultraTree1").RightClick ""If SwfWindow("Form1").SwfToolbar("SwfToolbar").IsItemEnabled("AAAAAAA") Then msgbox("Yes") Else msgbox("No") End IfSwfWindow("Form1").Close
Please take a look at the attached video file for more details. Let me know if you have any further questions.
Regards
Have you been able to resolve your issue ? If you still have any concerns or questions I will be glad to help.
Hi Georgi,
Thanks for your suggetions and help in the technology.
I have a issue that UFT 12.02 is not recognizing the WPF child objects.
Will please suggest me in this.
Thanks,
Surya