How to check if button has keyboard-focus? : Automation API

How to check if button has keyboard-focus?

Class library usage, coding and language questions.

How to check if button has keyboard-focus?

Postby AlexDozer » Fri Oct 28, 2011 8:07 pm

Hello,

I want to check if the buttons have the right keyboard-focus by default. I cannot find a Property
in Spy that gives me this information. It's a WPF-Application. How do I make this?

Regards Alex
AlexDozer
 
Posts: 33
Joined: Wed Sep 09, 2009 6:41 pm

Re: How to check if button has keyboard-focus?

Postby Support Team » Mon Oct 31, 2011 12:30 pm

Hi,

If the element has the focus you could use following method to check if the element has focus
http://www.ranorex.com/Documentation/Ra ... sFocus.htm

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests