Loosing focus on IE-watir webdriver

Greetings,

I started running my test-script using IE webdriver and watir webdriver.
It gets stuck at a point. Now if I click the window in execution, where
the script became idea. I see it resumes. Anybody has similar experiance
or any knowledge of what may be the reason?

IE needs to be in focus because of the way it handles events. There are
several possible workarounds for this (mine is avoid IE like the
plague), but you’ll probably have to do a little experimentation to find
something that works for you.