- Jan 20, 2019
- admin
- 0
NoSuchWindowException
NoSuchWindowException is one of the most common exception in selenium…
Error: Unable to find element on closed window on IE11 with Selenium WebDriver
It is because WebDriver is not able to maintain connection with Internet Explorer. For this to keep working you need to add a onetime Registry key in your system. Here are the details below:
Open Windows + R. Enter Regedit and follow the path below:
For 64 bit Windows OS:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE.
For 32 bit Windows OS:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE
Under this location create a DWORD value named iexplore.exe with the value of 0.
Note: In some systems you may not find folder FEATURE_BFCACHE. In that case, you have create that manually
Go through Selenium Interview Questions