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!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
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.aspxHope this helps. Thanks!
|
Rank: Member Groups: Member
Joined: 12/2/2015 Posts: 25
|
Thanks for your prompt answer, this helps a lot!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
Glad to hear that! Please feel free to let us know if you have any more questions.
|