I am trying to close a modal error dialog window emanating in the remote machine with the following code. The Dialog window closes only when I navigate to that remote machine. The agent runs into a indefinite hang when close() is issued and comes to halt only when you navigate to the remote machine.

[-] spawn
[-] if ("{sClient}" != "{sServer}")
[ ] Connect(gClients[1].host)
[-] if Disc_Error.Exists(10)
[ ] //Disc_Error.Maximize()-//- maximize is working perfectly but not close

I have used SetActive(),SetFocus() - nothing is of use.

Are there any methods of closing modal dialog on remote machine in Silktest.