Get focused element

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
zhexian
Posts: 1
Joined: Tue Mar 25, 2014 6:04 pm

Get focused element

Post by zhexian » Tue Mar 25, 2014 6:09 pm

Hi, is it possible to get an focused element from my WPF application so that I could validate the text inside the element? Please tell me of you need more clarification.

Thanks.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Get focused element

Post by Support Team » Thu Mar 27, 2014 2:42 pm

Hi zhexian,

In order to retrieve a focused element from your application, please modify your RxPath somehow like this:
ModifiedRxPath.png
ModifiedRxPath.png (5.26 KiB) Viewed 1156 times
The element is just found if the focus is set on the element.

Regards,
Robert
.
Image