WPF Application und RanoreXPath

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Posts: 36
Joined: Mon Sep 20, 2010 10:59 am

WPF Application und RanoreXPath

Post by andreas.tastler » Mon Sep 20, 2010 1:00 pm

Hi all

I am building an element repository for our new WPF client application an noticed, that the detection of RanoreXPath sometimes returns unwanted results.

For example, a standard Textbox in WPF returns something like that:
but I exptected this

Is there any way to set configuration, so that Textbox controls will be evaluated to the Textbox and not to the Container inside? In the Repository I can change this, but if I make another recording, a new element which points to the container will be created in the repository again.

Thank you in advance

You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: WPF Application und RanoreXPath

Post by Support Team » Mon Sep 20, 2010 1:40 pm


that's a technology based problem of WPF.
But of course you can access the attributes of the textbox directly via the textbox (not the container).
So you can use the path:

Code: Select all

to access e.g. the text of the text box.

Tracking the path of a textbox in a WPF application is a bit tricky.
If you move over the textbox the underlying container will be tracked.
But if you move to the border of the textbox, the path of the textbox itself will be tracked.

By the way, there went something wrong with your snapshot file.

Ranorex Team