-
Notifications
You must be signed in to change notification settings - Fork 11
Edge driver -inprivate option doesn't work in application mode (--app==http*) #192
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
Comments
I did some analysis and it turns out that Below command works on ms edge 133 and 134 (no --app) It looks that in ms edge 134 there was an issue introduced that prevent to have both -inprivate and --app defined |
The mini dump generated shows it is a memory access violation. Unhandled exception at 0x00007FFAACA86B20 (msedge.dll) in 49182983-68ab-4935-8c9e-423db2d69161.dmp: 0xC0000005: Access violation reading location 0x0000000000000010. Can't see more as don't have access to the symbols files |
This issue has been fixed and deployed in Edge Canary (136.0.3195.0 or after). The fix will be ported to Edge 134 and 135 in next two weeks. |
Thanks for the feedback! |
What happened?
In edge v 133 I was able to start Edge in private mode and application mode at the same time. In version 134 it is not possible.
Please check below screen to see how it works. (script in section how to reproduce)
How can we reproduce the issue?
var edgeDriverService = EdgeDriverService.CreateDefaultService(driverFolder);
var edgeOptions = new EdgeOptions();
var input = "";
while (true)
{
input = Console.ReadLine();
if (string.IsNullOrEmpty(input) || input.Equals("q"))
{
break;
}
edgeOptions.AddArgument(input);
}
Relevant log output
Unhandled Exception: System.InvalidOperationException: session not created: Microsoft Edge failed to start: crashed.
(chrome not reachable)
(The process started from msedge location C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe is no longer running, so msedgedriver is assuming that msedge has crashed.) (SessionNotCreated)
at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)
at OpenQA.Selenium.WebDriver.d__63.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.WebDriver.StartSession(ICapabilities capabilities)
at OpenQA.Selenium.WebDriver..ctor(ICommandExecutor executor, ICapabilities capabilities)
at OpenQA.Selenium.Chromium.ChromiumDriver..ctor(ChromiumDriverService service, ChromiumOptions options, TimeSpan commandTimeout)
at OpenQA.Selenium.Edge.EdgeDriver..ctor(EdgeDriverService service, EdgeOptions options)
at EdgeCurrentSelenium.Program.Main(String[] args) in C:\Dev\Sandbox\EdgeCurrentSelenium\EdgeCurrentSelenium\Program.cs:line 48
Unhandled Exception: System.InvalidOperationException: session not created: Microsoft Edge failed to start: crashed.
(session not created: DevToolsActivePort file doesn't exist)
(The process started from msedge location C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe is no longer running, so msedgedriver is assuming that msedge has crashed.) (SessionNotCreated)
at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)
at OpenQA.Selenium.WebDriver.d__63.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.WebDriver.StartSession(ICapabilities capabilities)
at OpenQA.Selenium.WebDriver..ctor(ICommandExecutor executor, ICapabilities capabilities)
at OpenQA.Selenium.Chromium.ChromiumDriver..ctor(ChromiumDriverService service, ChromiumOptions options, TimeSpan commandTimeout)
at OpenQA.Selenium.Edge.EdgeDriver..ctor(EdgeDriverService service, EdgeOptions options)
at EdgeCurrentSelenium.Program.Main(String[] args) in C:\Dev\Sandbox\EdgeCurrentSelenium\EdgeCurrentSelenium\Program.cs:line 67
Operating System
win 2019
Selenium version
c# Selenium.WebDriver" version="4.29.0
What are the browser(s) and version(s) where you see this issue?
Edge 134,
What are the browser driver(s) and version(s) where you see this issue?
Edge WebDriver 134.0.3124.51
The text was updated successfully, but these errors were encountered: