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?
Silverlight Object detection
Re: Silverlight Object detection
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.
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 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
Re: Silverlight Object detection
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
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
You do not have the required permissions to view the files attached to this post.