Micro Focus QTP (UFT) Forums
Getting 424 Object Not found error when closing a window - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Getting 424 Object Not found error when closing a window (/Thread-Getting-424-Object-Not-found-error-when-closing-a-window)



Getting 424 Object Not found error when closing a window - ruslan1234 - 03-10-2011

I am closing a java window ass follows and that generates error 424 - Object not found. The script find and closes the window just fine but I am puzzled as to why the error gets generated. Any ideas?

Code:
JavaWindow("Order Ticket").Close()
                        If err.number <> 0 Then res = FinishErrorHandling(JavaWindow("Order Ticket"),action, curAction) End If

Thanlk you for any help with this.