Is it possible to verify that a browser page was opened from a WPF desktop application automation?
We don't need to perform testing on the browser page, just the fact that the correct page was opened. May have to supply username/password during the process.
Thank you.
1 Answer, 1 is accepted
0
Elena
Telerik team
answered on 27 Jun 2025, 10:16 AM
Hello Garry,
Test Studio tests target a specific application - in the case of Desktop and WPF tests you configure it, and for web tests you target a browser and use a URL to navigate to. Each type of test is scoped to the target application and cannot interact with any other embedded components - for example an embedded browser in a desktop/ WPF app, or any WinForms component implemented in a WPF app.
Luckily we have the developed our Desktop Framework which allows you to setup more complex scenarios using all elements visible on the desktop. This framework can be used to tailor up these tests in code. Please, take the time to explore a demo of the Desktop capabilities in this article along with some examples to help in getting familiar with the topic in overall.
I hope this approach can fit your needs for validation. Thank you for your time in advance!
I was able to record a test using the Desktop framework, which worked for the WPF, but when it comes to the Web Browser, the desktop framework no longer works. Our WPF application opens the browser, so it's not an embedded browser or WebView.
I also tried to record a simple Desktop Framework test opening either Edge or Chrome, both would open the browser, but then the recorder would not launch: "Unable to launch recorder..."