if (windowMonitor.getAllWindows().size() > 0 || runMainFailure != null)
break;
}
if (runMainFailure != null) {
runMainFailure.printStackTrace();
throw new ApplicationLaunchException("Could not execute main class: " + runMainFailure.getClass().getName() + " ("
+ runMainFailure.getMessage() + ")");
}
if (windowMonitor.getAllWindows().size() <= 0)
throw new ApplicationLaunchException("AUT Mainwindow not opened\n"
+ "You can increase the timeout by setting marathon.application.launchtime property in project file");
}
return;
}