Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selenium Internet Explorer 11 driver doesn't starting in private mode #5319

Closed
AndrewBystrov opened this issue Jan 10, 2018 · 0 comments
Closed

Comments

@AndrewBystrov
Copy link

Meta -

OS: Windows 7

Selenium Version: 3.8.1

Browser: Internet Explorer

Browser Version: 11.0.9600.18349 (64-bit)

Expected Behavior -

Starting IE on private mode ( via use create force api and command line switches)

Actual Behavior -

IE started not in private mode

Steps to reproduce -

InternetExplorerOptions ieOptions = new InternetExplorerOptions();
ieOptions.setCapability("ie.enableFullPageScreenshot", false);
ieOptions.setCapability(InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING, false);
ieOptions.setCapability(InternetExplorerDriver.LOG_FILE, "ieDriver.log"));
ieOptions.setCapability(InternetExplorerDriver.LOG_LEVEL, "DEBUG");
ieOptions.setCapability(InternetExplorerDriver.FORCE_CREATE_PROCESS, true);
ieOptions.setCapability(InternetExplorerDriver.IE_SWITCHES, Collections.singletonList("-private"));
InternetExplorerDriver driver = new InternetExplorerDriver(ieOptions);
driver.manage().window().maximize();

WebElement input = driver.findElement(By.id("input"));
driver.quit();

Capability InternetExplorerDriver.IE_SWITCHES requered value as list, but on the ieDriver.log I see the warn
CommandHandlers\NewSessionCommandHandler.cpp(105) Invalid capability setting: ie.browserCommandLineSwitches is type array instead of string. Default value will be used: "" and the IE doesn't start on the private mode.

Any ideas about it?

Thanks.

ieDriver.log

@lock lock bot locked and limited conversation to collaborators Aug 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants