I am working on automating a windows application using Teststack white, the current issues that I have is that after logging in the main application, white doesn't seems to find the new window.
var pathAp = appPath(path);
Application application = Application.Launch(pathAp);
Window window = application.GetWindow("login");
TextBox userName = window.Get<TextBox>("userName");
TextBox pass = window.Get<TextBox>("pass");
userName.Enter("user1");
pass.Enter("pass");
Button login = window.Get<Button>("login");
login.Click();
//now the program will wait and the main window will show up
Window mainWindow = application.GetWindow("main");
for some reason the program throws an error message saying that it can't find the window. any ideas guys thanks