Page 1 of 1

Domain name problem

Posted: Mon Mar 25, 2019 9:25 am
by csolanki
Hi,

I am facing a trouble after Ranorex 9 update, regarding domain name in ranorex path. Previously, it used to be “Dom[@domain=‘citizen net.com’]” but after version has got updated. I am finding couple of domain names for same element multiple time. For example, for same previous element, now it is showing :
- Dom [@dom=‘1’]
- Dom[@caption =‘citizennet.com']

What could be the possible reason for it and How I can fix it ?

Ranorex version 9.0
windows 10

Re: Domain name problem

Posted: Mon Mar 25, 2019 1:28 pm
by odklizec
Hi,

At first, have you tried to set new option Enable JS-based RanorXpath evaluation to False (Ranorex Settings >> Plugins tab >> Web section)? There are some problems with this new 9.0option, which is by default ON.

Additionally, add and @visible='True' at the end of domain xpath. This should assure that only visible DOMs are found. With 9.0, there was enabled support for shadow DOM elements, which are by default invisible, but still shown in the Spy tree. And this may eventually compromise the list of returned elements. So if you don't care about shadow DOM elements, simply limit the domain xpath to just visible DOMs. Hope this helps?

Re: Domain name problem

Posted: Thu Mar 28, 2019 12:13 pm
by csolanki
Yes, it helped. Thank you.