This project is read-only.

Silverlight Child window automation????

Jun 29, 2010 at 6:03 AM


Can i access childwindow using white framework?

Can anybody provide code for that?

I tried the below but its not working

        public void ChildWindowSampleTest()

            browserWindow = InternetExplorer.Launch("http://localhost:2463/SampleApplicationTestPage.aspx", "SampleApplication - Windows Internet Explorer");
            SilverlightDocument document = browserWindow.SilverlightDocument;

            Button button = document.Get<Button>("btnShowCreateUserChildWindow");            

            List<Window> windows = browserWindow.ModalWindows();
            Window createUserWindow = browserWindow.ModalWindow("CreateUserWindow");
            TextBox txtUserName = createUserWindow.Get<TextBox>("txtUserName");
            TextBox txtPassword = createUserWindow.Get<TextBox>("txtPassword");

While calling List<Window> windows = browserWindow.ModalWindows();
I am getting error given below

Test method White_Test.WhiteSilverlightTest.ChildWindowSampleTest threw exception:  White.Core.Factory.UIItemSearchException: Silverlight is not supported yet..

Thanks in advance.


Jun 29, 2010 at 6:48 AM


can you try get Windows from Application element?





Jun 29, 2010 at 7:54 AM


Can you please provide the code for that....

Jun 29, 2010 at 8:19 AM

in WPF

Application app = Application.Attach(Process process) or Application.Launch(path);

List<Window> windows = app.GetWindows(); // no modal dialogs

if your dialog is modal, you should fall back to Automation Element since the feature is implemented

Jun 29, 2010 at 4:11 PM


WPF is a desktop application and silverlight is a browser application right.

So how can i use Application.Launch(path) in silverlight since the path is the path of the exe right?

Am i missing something?

Jun 30, 2010 at 6:44 AM

No :(

it seems this part is not available for Silverlight in the moment. Hope viveksingh can say something more.

Maybe you can try use Application.Attach(Process) and get the window over this. But I'm not sure.