QTP 9.5, .Net Windows App.
I'm attempting to right-click on a specific row or sell in a .SwfTable object in a .Net Windows form. It's a native microsoft control. Right-clicking brings up a pop-up context menu specific to each row in the table. I need to get that context menu to pop up in order to perform the next function in the workflow.
I have searched the forum and found other users with similar issues, but no soultion.
Has anyone ever successfully done this for specific rows in a SwfTable object?
The most reliable solution is as follows:
1. select the object you have to right click(in this case use select cell to select the particular cell)
2. Then use sendkeys to simulate the right click of a mouse. The shortcut is 'Shift+F10'
This way the script will always work no matter what resolution is set as there will be no dependency on the x,y co-ordinates.
SwfWindow("windowname").SwfTable("abc_grid").SetVi ew ""
SwfWindow("windowname").SwfTable("abc_grid").Selec tCell iRowNum, "Column_Name"
'here toolbar is the menu displayed after you right click on table
SwfWindow("windowname").SwfToolbar("swfname:= toolbarMenu").Select "option1"