How to recognise XBAP window?

Sep 3, 2008 at 3:59 PM

I have a simple XBAP application with one page and one command button.

I'm trying to get White to recognise the window but keep getting the error shown below:

[failure] WpfBrowserCrashCourseTests.ApplicationLaunch_NoArgs_Form1Displayed
failed: Couldn't find window with title White Hello World - Microsoft Internet Explorer provided by XXXXXX in process 2820, after waiting for 5000 ms
Name: White Hello World - Microsoft Internet Explorer provided by XXXXXX,  Bounds: 1116,0,768,558 ProcessId: 6060

Core.UIItems.UIActionException
Message: Couldn't find window with title White Hello World - Microsoft Internet Explorer provided by XXXXXX in process 2820, after waiting for 5000 ms
Name: White Hello World - Microsoft Internet Explorer provided by XXXXXX,  Bounds: 1116,0,768,558 ProcessId: 6060

I've tried various combinations of the following:

Application application = Application.Launch(path);
Window window = application.GetWindow("White Hello World - Microsoft Internet Explorer provided by XXXXXX", InitializeOption.NoCache);

The application launches but the test fails. What am I missing or not understanding?

Thanks

btordxc

Coordinator
Sep 7, 2008 at 8:29 PM
Have you matched the title and processId of the IE when you do this.
You can also try Desktop.Windows() method to check what is going wrong.
Sep 10, 2008 at 3:41 PM
You were correct. This works fine now and I'm sucessfully seeing the XBAP page and elements on that page.
 
Thanks btordxc