Hi, I apologize.
Actually, it seems that I cannot find the window of the application.
So, here is my code:
application = Application.Launch(@"C:\test\TicTacToe\bin\Debug\TicTacToe.xbap");
After this code the browser (IE 7) opens and shows the content of the xbap file.
Now I need to access the window of the application object.
window = application.GetWindow("Page1",
But it says it could not find any window with that name.
Then I tried:
wnd = application.GetWindows();
but the error was:
Could not find any windows for this application.
Is this the correct way to start testing an XBAP application?
Please point me to the right direction.