Selenium - NoSuchWindowException in IE 11

后端 未结 10 1920
粉色の甜心
粉色の甜心 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 07:56

    I am using IE 11 - 64 bit windows machine. This point worked for me.

    For IE 11 only, you will need to set a registry entry on the target computer so that the driver can maintain a connection to the instance of Internet Explorer it creates.

    For 32-bit Windows installations, the key you must examine in the registry editor is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE.

    For 64-bit Windows installations, the key is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE.

    Please note that the FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present.

    Important: Inside this key, create a DWORD value named iexplore.exe with the value of 0.

提交回复
热议问题