QTP - Issue with selecting the item from XPMenus.MenuGrid

I have a dynamic XP menu item which appears when a button is clicked. From this menu, a menu item ( with heirarchy) needs to be selected using QTP.While recording it is getting recorded as a different window and I am able to record the selection. But while playback, QTP is selecting the first item of the menu by default.

Example:

Code to select menu item (c;apply)
While recording , the code recorded is >>
''----------------------------------------------------------------------------
SwfWindow("wndw").SwfButton("btn").Click ""
SwfWindow("SwfWindow").SwfObject("SwfObject").Select "c"
SwfWindow("SwfWindow_2").SwfObject("SwfObject").Select "apply"
''----------------------------------------------------------------------------

When I try replaying the same code it selects (a;apply)
i.e; it selects the first ''apply'' item by default irrespective of the parent menu item specified

The type of the object is ''Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid''

Can anyone let me know how if this issue can be resolved.

1 Reply

NR Nirmal Raja Syncfusion Team August 6, 2009 08:30 PM UTC

Hi,

Thank you for your interest in Syncfusion products.

I have tried to reproduce this issue on menus with the sample that we shipped along with the QTP addon, but unable to reproduce the issue. Selecting the menu item does not cause any misbehavior, please try with our sample and if you still face the issue, then send us a minimal sample which shows the issue.

Let me know if you have any queries.

Regards,
Nirmal

Loader.
Up arrow icon