Selenium - NoSuchWindowException in IE 11

后端 未结 10 1933
粉色の甜心
粉色の甜心 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

    The solution suggested by @David Kemp is not working for the ie 11 of windows 10 - 64 bit . I have added the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet explorer\Main\FeatureControl\FEATURE_BFCACHE according to the steps mentioned For IE 11 only following https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver#required-configuration but after opening the https certificate page (url https://my-page:9443) it is unable to execute driver.navigate().to("javascript:document.getElementById('overridelink').click()"); throwing NoSuchWindowException

    However same works fine for ie 11 of windows 7-64 bit and able to execute the scripts .

    The work around to make ie 11 work for win 10 is by setting initialBrowserUrl capabilities to https://my-page:9443 like below

    capabilities.setCapability("initialBrowserUrl", "https://my-page:9443");
    

    but I am still confused why for ie11 / windows 10 it's different ?

提交回复
热议问题