0

I have a IWebdriver pointing to a IE browser.

Every now and then, I cannot do anything, the driver seems to have lost connection and I get the message

OpenQA.Selenium.NoSuchWindowException

when nothing abnormal was done. This behavior occurs often, what might cause it?

Cher
  • 2,789
  • 10
  • 37
  • 64
  • Does it help? http://stackoverflow.com/questions/24746777/selenium-nosuchwindowexception-in-ie-11 – Yu Zhang Jun 17 '16 at 21:29
  • I've seen this happen when Selenium is being driven too hard. For example a loop that keeps sending requests in rapid fire succession. Selenium is a entire eco-system of it's own, its mostly bullet proof but it can be "hammered senseless". – JWP Jun 18 '16 at 00:34
  • @YuZhang Thanks, I added the registry thing. It now only happens on startup where it times out. Is there a reason? – Cher Jun 20 '16 at 17:52
  • @JohnPeters thanks!! However is there a way to solve this? – Cher Jun 20 '16 at 17:52
  • Try this, slow down your requests to Selenium. Just to see if this works, then if that's the problem you should look into splitting the work across multiple instances of your driver. But also you may want to show us the code where this issue happens to give us a better idea of what's happening. Or perhaps the stack trace too. – JWP Jun 20 '16 at 18:50
  • @JohnPeters thanks!! I forgot to mention that now it only happen when opening the driver, after adding the registry key in the link provided by Yu Zhang – Cher Jun 20 '16 at 18:55

0 Answers0