Page 1 of 1

Silverlight Object detection

Posted: Thu Apr 13, 2017 10:41 am
by toboavado
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?

Re: Silverlight Object detection

Posted: Thu Apr 13, 2017 12:58 pm
by odklizec
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.

Re: Silverlight Object detection

Posted: Thu Apr 13, 2017 4:06 pm
by toboavado
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