Bug 942411 - Try to ensure that the test window has focus before running the test