In this video we take a look at a simple solution using a few key functions provided by TestComplete’s runtime including Sys.Desktop, FocusedWindow and WaitProperty to solve a frequently encountered problem in test automation of waiting for a window to change/lose focus.