Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser - Testautomation with leanFT Options
Andreas
Posted: Monday, August 7, 2017 9:02:04 AM
Rank: Member
Groups: Member

Joined: 12/2/2015
Posts: 25
Dear Support Team!

We use your EO.WebBrowser-control in one of our WPF-based applications. We spent the last few days trying to automate tests for this application but we struggle to access the content displayed in the WebBrowser-control.

The WebBrowser-control itself gets identified as "chrome legacy window", the controls inside the WebBrowser-control (buttons, web edit fields, ...) are not accessible at all.

Is there any way to automate the content displayed in the control? Is there e.g. any setting to expose the browser controls content to other applications?

Thank you very much in advance!
eo_support
Posted: Monday, August 7, 2017 9:46:51 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
Hi,

There are primarily two ways to automate testing with EO.WebBrowser.

One way is with JavaScript. You basically do whatever testing you want to do with JavaScript and then call WebView.EvalScript to run the script code and return the result. This is easy to implement but may be limited to what JavaScript can do.

Another way is to use Chromimum's remote debug interface. This method is more powerful but is more difficult to setup. See this post for more details about this method:

https://www.essentialobjects.com/forum/postst10333_Automated-testing-tools-to-test-browing-apps.aspx

Hope this helps.

Thanks!
Andreas
Posted: Thursday, August 10, 2017 12:19:30 AM
Rank: Member
Groups: Member

Joined: 12/2/2015
Posts: 25
Thanks for your prompt answer, this helps a lot!
eo_support
Posted: Thursday, August 10, 2017 3:15:07 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
Glad to hear that! Please feel free to let us know if you have any more questions.


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.