Change icon of element in repository?

Ask general questions here.
MJesper
Posts: 38
Joined: Fri Dec 28, 2018 2:16 pm

Change icon of element in repository?

Post by MJesper » Wed Jan 23, 2019 2:59 pm

Hi sorry for asking so quickly after my other question but how do I change the icon of an element in the repository?

I know that the elements take the icon from the live element, but some of my elements do not have a live element but I still want to give them an icon
Image

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

Re: Change icon of element in repository?

Post by odklizec » Wed Jan 23, 2019 3:27 pm

Hi,

I'm afraid, there is no publicly available way to change the repo item icon. Additionally, the reason why there is an icon in your example, it's because it's AUT root folder element. The other element (without icon) appears to be an element placed in root folder, which has assigned 'default' Ranorex icon for unknown elements. Elements of particular type (e.g. button, table, input, etc...), should have their own icon, based of the element type, obtained from last element in the xpath.
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

MJesper
Posts: 38
Joined: Fri Dec 28, 2018 2:16 pm

Re: Change icon of element in repository?

Post by MJesper » Wed Jan 23, 2019 3:43 pm

I found a workaround, if you take an element with an icon and change the xpath the icon will stay the same. So you can grab an icon with "Track" then just change the xpath to whatever you want. This is not optimal but it'll do :D