Silverlight Object detection

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
toboavado
Posts: 3
Joined: Thu Apr 13, 2017 10:02 am

Silverlight Object detection

Post by toboavado » Thu Apr 13, 2017 10:41 am

Hello,

I'm new to Ranorex and have the following problem with the object detection of Silverlight controls.

I have made a simple recording with editing text in a textbox.
If I play the recording the text is written in another textbox.
I check it and I see with highlighting that the textbox from recording now is the other textbox.
So it seems that creating the elements differs every run.
If I let the silverlight window open and edit the recording in Ranorex to the correct textbox I can do a "run from here" and all works fine.

What can I do to fix this?

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

Re: Silverlight Object detection

Post by odklizec » Thu Apr 13, 2017 12:58 pm

Hi,

Please upload a Ranorex snapshot of the problematic element along with the repo xpath that fails. Without these, there is not much anyone here can do for you. You see, we need to see how the recorded xpath looks like and how it looks in snapshot.
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

toboavado
Posts: 3
Joined: Thu Apr 13, 2017 10:02 am

Re: Silverlight Object detection

Post by toboavado » Thu Apr 13, 2017 4:06 pm

Hello, here are the infos.

The problematic element at the test was the "Text 'Sachbearbeiterin'" you see in snapshot.

XPath:
/dom[@domain='srv-hst-sf3test']//object[#'slcontrol']/form[@name='Silverlight Control']/?/?/form[@automationid='root']/progressbar[@name='bitte warten...']/?/?/text[@name='Sachbearbeiterin']

In the Screenshot of Ranorex Studio you see that the recorded "ContentElement2" targets the field "Vorname", if I use highlight function this field will be highlighted.

Ranorex V 7.0.0
Windows 10.0.15063

Hardware: Intel Core i5-3470 3,20 GHz, 8 GB RAM, Intel-HD-Graphics
Attachments
TestSilverlightRecord.PNG
TestSilverlightRecord.PNG (127.07 KiB) Viewed 758 times
TestUserEdit.rxsnp
(244.5 KiB) Downloaded 36 times