Webdriver 3.14 IE11: session lost when click link/button that opens a window/popup

爷,独闯天下 提交于 2019-12-08 08:37:18

I suppose the issue is related to the EnsureCleanSession property. When set this property to true, it will clears the system cache for all instances of Internet Explorer, even those already running when the driven instance is launched.

The problem is due at command line –noframemerging used to launch IE.

In fact, this parameter sets IE session between several processes. When I click on the button that opens the popup a new process has been created.

If I use IE in the same manual test, I take only two processes.

I tried to set up

ForceCreateProcessApi = true,
BrowserCommandLineArguments = "-framemerging"

but it doesn't work. For Prevents Internet Explorer from merging new frame processes into new system processes, a workaround is to set this option via registry key:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main\FrameMerging\(DWORD)00000000

The feature is enabled when the value is set to (DWORD) 00000001 and disabled when the value is (DWORD) 00000000. By default, it is enabled.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!