2
votes

I'm building UI automation tests using selenium, and I want to test our product with internet explorer browser. I'm trying to create InternetExplorerDriver using selenium 3.4.

But when I set the options to run in private mode, the IE browser doesn't launch. The options I set are:

ForceCreateProcessApi = true,

BrowserCommandLineArguments = "-private".

private IWebDriver CreateInternetExplorerDriver()
    {
        InternetExplorerOptions options = new InternetExplorerOptions()
        {
            IntroduceInstabilityByIgnoringProtectedModeSettings = true,
            IgnoreZoomLevel = true,
            InitialBrowserUrl = "about:InPrivate",
            EnsureCleanSession = true,
            BrowserCommandLineArguments = "-private",
            ForceCreateProcessApi = true
        };

        // Create a webdriver instance to automate the browser.
        return new InternetExplorerDriver(_webDriverDirectory, options, TimeSpan.FromSeconds(DriverCommandTimeout * 3));
    }

The code run in VS 2017, windows 10 ,64-bit, and try to run Internet explorer driver 32-bit.

1
I tried the options that suggested in the answer but it doesn't work. maybe the version has changed since then - Dolev Cohen
Ah, ok makes sense - Thomas Cook
What version of the IE driver is it? - Liam
IEDriverServer_Win32_3.9.0 - Dolev Cohen

1 Answers

1
votes

Solved by using IEDriverServer_x64_3.8.0. probably bug in the 3.9 and the 32 bit versions