Hi guys,
I have an automated test suite that only uses IE (based on what our users use). I need to switch it to use InPrivate mode for running tests because a normal session basically doesn't log you out of our app(it's complicated and dumb). I tried the following options for the driver to see if that would allow for launching IE as InPrivate.
var options = new InternetExplorerOptions
{
IgnoreZoomLevel = true,
ForceCreateProcessApi = true,
BrowserCommandLineArguments = "-private"
};
The result is that I get this: “Unexpected error launching Internet Explorer. Unable to use CreateProcess() API. To use CreateProcess() with Internet Explorer 8 or higher, the value of registry setting in HEKY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\TabProcGrowth must be '0’.”
I tried adding and setting that registrykey to 0, but that results in IE not loading (for reasons unbeknownst to me).
I tried switching to use the 64bit IE driver, but it runs at a very slow rate on my machine.
Does anyone know WHY this error is being thrown exactly? I'm running out of ideas on how to make it launch InPrivate mode.
Does anyone have any suggestions on how to fix this issue? I'm using IE11.
Thanks!