Can't find shadow DOM elements in Spy

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
boegvald
Posts: 62
Joined: Wed Mar 13, 2019 9:02 am

Can't find shadow DOM elements in Spy

Post by boegvald » Wed Apr 17, 2019 11:05 am

With 9.0 it should be possible to see shadow DOM in Ranorex Spy. I have had no luck with that.

HTML as viewed in Chrome:

<input name="firstname" type="text" size="32" disabled="true" class="form-control">
#shadow-root (user agent)
<div>Henning</div>
</input>

The <input> element is shown in Spy and is trackable. But I have not been able to see the shadow <div> in Spy.

Am I misunderstanding something? Any hints anyone?

Best regards
Bo
Best Regards

Bo

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

Re: Can't find shadow DOM elements in Spy

Post by odklizec » Wed Apr 17, 2019 11:45 am

Hi,

I see both input and div in Spy. Are you using 9.0.0 or 9.0.1? There were many bug fixes done in 9.0.1, so if you are on 9.0.0, please update it. Also, make sure the Ranorex plugin in Chrome shows version 1.2.6.
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