This is a migrated thread and some comments may be shown as answers.

Finding the elements in SilverLight Application without XAML file

1 Answer 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vishal
Top achievements
Rank 1
Vishal asked on 25 Jul 2013, 05:47 AM
I want to automate the silverlight application. But how can i access the elements without XAML? What will be the code need to be written??

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 25 Jul 2013, 04:26 PM
Hello Vishal,

A XAML file is part of the source code of your Silverlight application. Visual Studio compiles it, along with the rest of your source code files, into object code that is sent to the browser in the form of a .XAP file. The browser running your Silverlight app doesn't even get the original XAML file.

Test Studio doesn't need it either to automate your application. What happens at run time is the Silverlight engine creates this thing called the Visual Tree. The XAML file is compiled into code that will add elements to this Visual Tree in the correct order and with the correct properties. It is this Visual Tree that Test Studio looks at and automates.

This video, while old and the UI of Test Studio has changed a bit, shows you how to get started automating your Silverlight application using Test Studio:
http://tv.telerik.com/watch/automated-testing-tools/webui-test-studio-q2-getting-started-with-silverlight

Does that answer your question?

Regards,
Cody
Telerik
We've released our first-ever public Test Studio BETA! Download the BETA, install it,
and send us your feedback! Expires mid-August!
Tags
General Discussions
Asked by
Vishal
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or