I have automated tests running on IE9 on Windows 7 64 bit. The application under test is a simple webform with a 'Next' button on each page. When i run the automated tests on Firefox 12 they run in the background while i can keep working on other stuff in a different browser.
However, when i start the test suite from IE9, and let it run in the background,the test gets stuck at the 'Next' button. Webdriver seems to find it and click on it but does not navigate to the next page. Obviously there are a lot of failed tests due to TimeoutExceptions.
To avoid these errors, I ran my test suite at night, with no other applications running and changing my PC's power settings so it didn't shut off or go in sleep mode etc. However i still saw a lot of TimeoutExceptions. (Did not occur with Firefox12)
Is there a setting with IE 9 which needs to be set to change this behavior? Did anybody have a similar experience?
Thanks!
Edit: This is the response i received from Jim Evans on the Webdriver mailing list.
This is a long-known, and well-documented problem with the IE driver as it's currently architected[1]. The reasons why the architectural decisions have been made, and why they're a challenge in IE have been discussed at length too[2]. We're working on implementing synthetic events in the IE driver[3], which have their own set of problems, even though they would solve this particular one, but they're not quite ready for consumption yet.
--Jim
[1] http://code.google.com/p/selenium/wiki/InternetExplorerDriver Note the section titled "Window Focus"
Since this is a known issue, does anybody have a tried and tested workaround?