Forum Discussion
2 Replies
Sort By
- Marsha_RModerator
Try using one of these Wait methods
- MulgraveTesterFrequent Contributor
I ended up using aqobject.issupported(myObj, "Exists") instead but thanks.
Hi,
Occasionally my code crashes when I test if sys.desktop.ActiveWindow.exists because "Cannot find the window with handle xxxxx".
The line immediately before the condition is sys.Refresh so I would have to be extremely unlucky for my object to be destroyed in the milliseconds since the refresh but it keeps happening.
Ho do I test this? Do I need to use isnull(sys.Desktop.ActiveWindow) instead?
I ended up using aqobject.issupported(myObj, "Exists") instead but thanks.
Try using one of these Wait methods
I ended up using aqobject.issupported(myObj, "Exists") instead but thanks.