Page 1 of 1

How to right click on any element using co-ordinates

Posted: Wed Jan 30, 2019 11:16 am
by premravi
Hi,

I got stuck at a point wherein I am not able to identify the element on which I have to right click

lease help me to understand how can I identify an element using coordinates and perform right click on it?

Regards
Ravindra

Re: How to right click on any element using co-ordinates

Posted: Wed Jan 30, 2019 12:21 pm
by odklizec
Hi,

Please upload a Ranorex snapshot (NOT screenshot) of the problematic app. Coordinate-based automation will not "identify" the element. Basically, the test simply performs desired action at defined position. There is no element identification performed at all. So if the element is not there (at defined position), Ranorex may perform the action on completely unrelated element, located under mouse.

BTW, have you tried the GDI Capture approach? It may help with element identification, using RAW texts, extracted from UI elements. And finally, image based automation may be helpful too. It's definitely better option, than coordinate-based automation ;)

Re: How to right click on any element using co-ordinates

Posted: Wed Jan 30, 2019 12:45 pm
by premravi
Hi,

I got the GDI capture settings in the Settings window

On opening it is asking for "Process Name" and "Window Class Name"

What values do I have to pass here ?

Please suggest

Re: How to right click on any element using co-ordinates

Posted: Wed Jan 30, 2019 1:25 pm
by odklizec
Hi,

Please check the GDI Capture Configuration section of User Guide. In Spy, you should right click nearest ancestor/parent container (from the element you would like to use) and select Add class name to GDI capture list. If there is no such context menu option available, you should go up in UI tree and check another ancestor element, if it contains such option.