Selenium - NoSuchWindowException in IE 11

后端 未结 10 1909
粉色の甜心
粉色の甜心 2020-12-05 07:54

I am trying to automate a webpage using selenium in IE11. I have set the protected mode settings to same level and zoom level is 100%. While running the test it opens the we

10条回答
  •  遥遥无期
    2020-12-05 08:12

    Below solution also works if from current page you navigate on next page on some action/event and selenium driver doesnt recognise window :-

    For 64-bit Windows installations, the key is:

     HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet explorer\Main\FeatureControl\FEATURE_BFCACHE
    

    Inside this create a DWORD value named iexplore.exe with the value of 0.

提交回复
热议问题