Not able indentify control on Windows 10

Ranorex Studio, Spy, Recorder, and Driver.
Posts: 8
Joined: Fri Jul 10, 2015 6:39 am

Not able indentify control on Windows 10

Post by ujjainkarh » Thu Jan 21, 2016 6:04 am

Hi All,

For our desktop application, we are not able to identify button control on windows 10 machine but same control is identified on windows 7 machine by Ranorex Spy.

Ranorex version - 5.3.1
Xpath of control - /form[1]/button[@text='&Yes']

Is there any way to use same control on both OS ?

Thanks in advance.


User avatar
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Not able indentify control on Windows 10

Post by odklizec » Thu Jan 21, 2016 6:56 am


Could you please post a Ranorex snapshot of the control, both from win 7 and 10? Without snapshot, it's almost impossible to tell what's wrong or how to create a universal path for win7 and 10. My guess is that the problem is caused by the form index [1]. You should always try to replace hardcoded indexes with something else.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Not able indentify control on Windows 10

Post by krstcs » Thu Jan 21, 2016 2:38 pm

In addition to what Pavel said, you should update Ranorex to a supported version (currently 5.4.4) since 5.3.1 is no longer supported and there have been many changes in support of Windows 10 in 5.4.X versions of Ranorex.
Shortcuts usually aren't...