Forum Discussion

sindhu10's avatar
sindhu10
Contributor
7 years ago
Solved

How to check WinformsObject Exists or not

Hi,

i am trying to check WinformsObject exists or not but the  below code is not working 

if(Sys.Process.WaitWinFormsObject("DisplayScheduleMessage").Exists)

{

   Sys.Process.WinFormsObject("DisplayScheduleMessage").Close();

}

else

{

   Log.Message("Window doesnt exists continue next step");

}

 

Please advise.

 

 

Thanks,