Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser control automation Options
st
Posted: Tuesday, November 7, 2017 3:27:35 AM
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




eo_support
Posted: Tuesday, November 7, 2017 9:53:55 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.