Page 1 of 1

WPF popup in a WF ElementHost not recognized

Posted: Fri Nov 28, 2014 1:23 pm
by jlorenz
Hi,

I am using Ranorex for testing an Windows Forms application containing WPF UI elements (Ranorex 5.2.0, Windows 7 SP1, .NET 4.5). Ranorex Spy cannot recognize popups opened by WPF UI elements contained in a Windows Forms element host. I have created a minimal example showing the behavior (see attachment).

Reproduce steps:
- open Ranorex Spy
- open WindowsFormsApplication1.exe
- click button "Toggle"
- hover mouse pointer over popup button
- press Ctrl+Win
-> no button recognized :-(
- hover mouse pointer over toggle button
-> toggle button recognized :-)
- open WpfApplication1.exe
- click toggle button
- hover mouse pointer over popup button
- press Ctrl+Win
-> popup button is recognized :-)

The WPF code is almost the same. The only difference is that one time it is a Windows Forms application hosting the WPF UI and the second time its pure WPF.

Please kindly advice on how to fix this.

Thanks.
Jens

Re: WPF popup in a WF ElementHost not recognized

Posted: Mon Dec 01, 2014 3:44 pm
by Support Team
Hi Jens,

Thanks for sharing the sample app, this will help us to analyze the issue :)!
We will get back to you as soon as we now more why this cannot be identified.

Thanks,
Markus

Re: WPF popup in a WF ElementHost not recognized

Posted: Wed Dec 03, 2014 2:10 pm
by Support Team
Hi Jens,

We analyzed the issue and were able to reproduce it. I have good news, this should be fixed with our next bug fix release which would be 5.2.2.
Thanks for reporting this issue!

Regards,
Markus

Re: WPF popup in a WF ElementHost not recognized

Posted: Thu Dec 04, 2014 9:27 am
by jlorenz
Hi Markus,

This is good news. Any idea on the timeframe for version 5.2.2?

Regards,
Jens

Re: WPF popup in a WF ElementHost not recognized

Posted: Fri Dec 05, 2014 4:47 pm
by Support Team
Hi Jens,

I am afraid I cannot give you a timeframe yet.

Regards,
Markus