I want to check a message box (even such as control) whether appears. Except using "Wait" function, is there any other way to check a object exist just by vba code? It seems that WPFWindow("windows name").exist wrong
I like to use the combination of a ForNext loop along with the TestPartner statement with the 'tpAttachNoWait' parameter.
Dim loop2pause as integer
for loop2pause = 1 to 5
If Window("Application=IEXPLORE.EXE Caption='News - *'", tpAttachNoWait).Exists Then
Window("Application=IEXPLORE.EXE Caption='News - *'").Attach