ash10
10 years agoOccasional Contributor
Solved
How to check if the window or object exsist
I have dialog1 appearing on my App sometime and if it appears then I have to click on Ok and sometime this dialog might not appear. if(Aliases["App"]["WinFormsObject"]("Dialog1")["Exists"]) Al...
- 10 years ago
Use WaitWinFormsObject for Dialog1:
var dlg = Aliases["App"]["WaitWinFormsObject"]("Dialog1", 1000); if (dlg.Exists) dlg["WinFormsObject"]("buttonClose")["Click"]();