How can I access xaml silverlight applications from a browser?

I am trying to automate tests for a silverlight application in a browser and I need to get the XAML content in a silverlight application while it works in a browser.

How can i achieve this?

Let me start over.

I am a QA, and I have the task of writing Black-Box UI Automation scripts for my Silverlight application. Tests will enter values ​​in text fields, click buttons and read output. The problem that I currently have is that I cannot access the elements in the Silverlight application.

+4
source share
2 answers

If you're looking for UI module testing, check out this Scott Guthrie blog post.

Automated user interface testing will be part of Silverlight 5 , but at the same time, Telerik offers automated testing of the Silverlight interface in its Web-based user interface testing studio .

If you just after you can test and capture XAML, then Silverlight Spy does just that.

+3
source

If I understand you correctly, you mean the following. Your SL application is MyApp.xaml and you need the url: http://www.mydomain.com/MyApp.xaml ?

Application.Current.Host.Source.AbsoluteUri

For more details see http://msdn.microsoft.com/en-us/library/system.windows.application.host%28v=vs.95%29.aspx

0
source

Source: https://habr.com/ru/post/1348075/


All Articles