Rank: Newbie Groups: Member
Joined: 11/7/2017 Posts: 1
|
Hi,
We have a desktop application developed using WPF.
Recently there is a change where a login screen developed using WPF controls is replaced by eo.webbrowser control.
UI Automation framework is not recognizing this control and the elements present inside it.
Can you please provide some insights or any other info which help us to automate using UI Automation
Are there any existing frameworks which can recognize this control apart from UI Automation
Regards, st
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi,
The core of EO.WebBrowser is platform neutral (WPF or Windows Forms) so it does not support WPF UI Automation natively. The native "automation" interface of EO.WebBrowser is JavaScript, which you can use through EO.WebView.EvalScript method.
In order to perform WPF UI Automation, you can do something like this:
1. Create your own custom UIElement type that supports UI automation (by overriding its OnCreateAutomationPeer method); 2. Inside your own AutomationPeer implementation, you can call WebView.EvalScript to perform any automation task you wish to support;
This way your test application will find and interact with your own automation peer. Your own automation peer would then interact with EO.WebBrowser through WebView.EvalScript.
Hope this helps. Please feel free to let us know if you still have any questions.
Thanks!
|