activating MainWindow without invoking the app

Sep 14, 2010 at 8:06 AM

Hello,

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 9:39 AM

 

Hi

what do you mean with invoke?

 

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

 

Throndorrin

Sep 14, 2010 at 1:12 PM

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

Steps:

I want to launch the test app manually.

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

Sep 14, 2010 at 2:22 PM

 

Hi

 

Apllication.Attach(Process process);

 

Throndorin

Sep 14, 2010 at 3: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 3:23 PM

Sorry, I got it now. Thanks