sindhu10
7 years agoContributor
How to give a delay or wait to winformsobject for 5 mins for the window to get popped up
Hi,
Tried the below code :
1.clicking the text box :
var textbox = Sys.Process().WinFormsObject("").WinFormsObject("").WinFormsObject("TextBoxMaskBox", "");
textbox.Click();
2. var MI = Sys.Process("").WaitWinFormsObject("GenericSelect", 25000);
if(MI.Exists)
{
do the action
}
else
{
Log.Message(Window not popping up );
}
The window takes exactly 5 mins to get popped up in the screen after the click , desktop application automatically closes after the delay or wait don't know why
Pls help me in the above code how can i give wait or delay for the same.
Thanks,