ThreadSleep for IE
Wait method