How to find desktop applications icon in Xpath?

Ask general questions here.
huongtranbong
Posts: 1
Joined: Tue Jan 08, 2019 3:19 am

How to find desktop applications icon in Xpath?

Post by huongtranbong » Tue Jan 08, 2019 3:21 am

i am working on a windows application, and due to versioning issue we need to change version of the application every time, so i need to find icon by x path, which will ignore the x,y co-ordinates recorded. Can you please find me solution?

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

Re: How to find desktop applications icon in Xpath?

Post by odklizec » Tue Jan 08, 2019 9:10 am

Hi,

Could you please post a Ranorex snapshot (NOT screenshot!) of the problematic application icon/shortcut?

If the version number is defined in shortcut's name, there should be no problem obtaining such number via xpath. If the version number is only defined in shortcut's icon (image), you are in trouble, because there is no way (other than OCR) to extract the version number from image.
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