码迷,mamicode.com
首页 > Windows程序 > 详细

Unable to find element on closed window (WARNING: The server did not provide any stacktrace information)

时间:2017-03-31 13:07:46      阅读:278      评论:0      收藏:0      [点我收藏+]

标签:node   not   tac   name   note   control   close   min   creates   

当你的selenium WebDriver 启动IE11报这个错时:Unable to find element on closed window (WARNING: The server did not provide any stacktrace information),通过Google解决了:
Required Configuration:
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 isHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. For 64-bit Windows installations, the key isHKEY_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.

Unable to find element on closed window (WARNING: The server did not provide any stacktrace information)

标签:node   not   tac   name   note   control   close   min   creates   

原文地址:http://www.cnblogs.com/jmmchina/p/6650674.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!