Forum Discussion

mspatel's avatar
mspatel
Contributor
11 years ago

Exists wont work

Why following Exists Check fails when there is no Pop up ? 

 

It works when Authetication window pop up, but script fails when there is no pop up. It will wait until default time out and then Script errors. 

 

 

 IF Aliases.browser.Window("DialogClass", "Authentication Required", 1).Exists Then  

 

bla 

bla 

 

End If 

1 Reply

  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor

    You want to use the WaitWindow method to check the Exists property without logging an error.

     

     

    IF Aliases.browser.WaitWindow("DialogClass", "Authentication Required", 1, 0).Exists Then  

    bla

    bla 

    End If