Ask a Question

Right clicking on a specific row from the grid

mrkkhattak
New Contributor

Right clicking on a specific row from the grid

Hi,



I recently started automating testing using TestComplete. Currently it records the right click as the following:



Aliases["MyApp"]["ZoneSequence1"]["WindowContentTabbed1"]["TabControl"]["DataForm"]["toolStripContainer1"]["ToolStripContentPanel"]["GridView"]["ClickR"](242, 216);



When running the automated test, I would like to select a specific row and right click on that one e.g. following is my required row:



Aliases["MyApp"]["ZoneSequence1"]["WindowContentTabbed"]["TabControl"]["DataForm"]["toolStripContainer1"]["ToolStripContentPanel"]["GridView"]["Rows"]["Item"](1)["S_NO"]="25";



How could I right click on it as the current ClickR method in C# is expecting only x, y positions?



Thanks in advance.



-Meraj

2 REPLIES 2
mrkkhattak
New Contributor

Any help in this regard?



I would like to select a specific row and right click on that in MS data grid view?



Thanks.

Hi Meraj,


You can use the script provided in the following How To entry - just replace the left click action with a right click:

http://www.automatedqa.com/support/viewarticle.aspx?aid=8998



Best regards,
Alexey

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: