WPF Application und RanoreXPath
Posted: 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:
/form[@name='Window1']/text/container[@automationid='PART_ContentHost']
but I exptected this
/form[@name='Window1']/text[@automationid='textBox1']
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
Andreas
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:
/form[@name='Window1']/text/container[@automationid='PART_ContentHost']
but I exptected this
/form[@name='Window1']/text[@automationid='textBox1']
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
Andreas