Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
590
Right click menu option status
posted

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

 

Parents
  • 53790
    posted

    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,166
    SwfWindow("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 If
    SwfWindow("Form1").Close

    Please take a look at the attached video file for more details. Let me know if you have any further questions.

    Regards

    video332.rar
Reply Children
No Data