Finding the elements in SilverLight Application without XAML file

2 posts, 0 answers
  1. Vishal
    Vishal avatar
    5 posts
    Member since:
    Jun 2013

    Posted 25 Jul 2013 Link to this post

    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??
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 25 Jul 2013 Link to this post

    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!
Back to Top