This project is read-only.

activating MainWindow without invoking the app

Sep 14, 2010 at 9:06 AM


I wanted to know if i can just activate the main window without invoking the app. For instance, I manually invoke the application and just want to activate the main window. Is there a way to do that, can someone please help. I have tried :

White.Core.UIItems.WindowItems.Window = App.GetMainWindow("MyApp", initializeoption.Nocache) without the below code

OmahaApp = White.Core.

Application .Launch(path);

but i get the visual studio exception. Can someone please help? Thanks in advance.


Sep 14, 2010 at 10:39 AM



what do you mean with invoke?


can you describe step by step what you want to do?



Sep 14, 2010 at 2:12 PM

I want to get the Main window without launching the test app. Can I do that?


I want to launch the test app manually.

I want to start the automation by getting (activating ) the main window.

Sep 14, 2010 at 3:22 PM




Apllication.Attach(Process process);



Sep 14, 2010 at 4:01 PM

Thanks, one ore question, do i need any reference dll or any libraray to support this. Because when i use MyApp. -- Attach option is not available. Can you please give me an example as to how to use it? Thanks again.

Sep 14, 2010 at 4:23 PM

Sorry, I got it now. Thanks