Skip to content

Right click menu option status

New Discussion
vls vls
vls vls asked on Nov 3, 2015 12:31 PM

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

 

Sign In to post a reply

Replies

  • 0
    Georgi
    Georgi answered on May 10, 2013 2:56 PM

    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

    • 0
      Georgi
      Georgi answered on May 16, 2013 6:17 AM

      Hello VLS,

      Have you been able to resolve your issue ? If you still have any concerns or questions I will be glad to help.

      Regards

      • 0
        vls vls
        vls vls answered on Aug 6, 2013 4:20 PM

        Hi,

        We are currently facing issue with rightclick object.

        Application is built on Infragistics 2010 Vol3, and same version of TA license is used.

        Issue description:The right click object is identified SwfToolBar but at times it change to SwfObject, but once we clear the cookie and try again it identifies are SwfToolBar.

        Can you please suggests on this behaviour

      • 0
        Surya Prakash
        Surya Prakash answered on Nov 3, 2015 12:31 PM

        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

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
vls vls
Favorites
0
Replies
4
Created On
Nov 03, 2015
Last Post
10 years, 4 months ago

Suggested Discussions

Tags

No tags

Created by

Created on

Nov 3, 2015 12:31 PM

Last activity on

Nov 3, 2015 12:31 PM