MicrosoftEdge / EdgeWebDriver

Feedback and discussions about WebDriver for Microsoft Edge
MIT License
59 stars 8 forks source link

"DevToolsActivePort file doesn't exist" 116.0.1938.69 #109

Closed MacAarburger closed 1 year ago

MacAarburger commented 1 year ago

hi, we can't seem to fix this exception:

Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: DevToolsActivePort file doesn't exist 
Host info: host: 'K62562', ip: '10.171.85.61'
Build info: version: '4.11.0', revision: '040bc5406b'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.5'
Driver info: org.openqa.selenium.edge.EdgeDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: MicrosoftEdge, ms:edgeOptions: {args: [--remote-allow-origins=*, --no-sandbox, --disable-dev-shm-usage, --remote-debugging-port=0, --headless], binary: C:\Program Files (x86)\Micr..., extensions: []}}]}]

none of the S/O suggested solutions worked --no-sandbox --disable-dev-shm-usage --remote-debugging-port=0 --headless

we're using:

i saw on other issues to execute this command:

"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --allow-pre-commit-input --disable-background-networking --disable-backgrounding-occluded-windows --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --enable-blink-features=ShadowDOMV0 --enable-logging --log-level=0 --no-first-run --no-service-autorun --password-store=basic --remote-debugging-port=0 --start-maximized --test-type=webdriver --use-mock-keychain --user-data-dir="C:\Users\ue62541\AppData\Local\Temp\scoped_dir21720_1765573058" data:,

which ran, opened edge, but did not create a DevToolsActivePort file in the temp folder.

here's my current code:

            System.setProperty("webdriver.edge.verboseLogging", "true");

            // WebDriverManager.edgedriver().setup();
            // final EdgeOptions edgeOptions = new EdgeOptions();
            // edgeOptions.addArguments("--no-sandbox");
            // edgeOptions.addArguments("--disable-dev-shm-usage");
            // edgeOptions.addArguments("--remote-debugging-port=0");
            // return new EdgeDriver(edgeOptions.merge(capabilities));

            EdgeDriverService service = new EdgeDriverService.Builder()
                    .withLoglevel(ChromiumDriverLogLevel.DEBUG)
                    .withLogOutput(System.out)
                    .withReadableTimestamp(true)
                    // .usingPort(32123)
                    .build();
            final EdgeOptions edgeOptions = new EdgeOptions();
            edgeOptions.addArguments("--no-sandbox"); // Bypass OS security model
            edgeOptions.addArguments("--disable-dev-shm-usage"); // overcome limited resource problems
            edgeOptions.addArguments("--remote-debugging-port=0");
            // edgeOptions.addArguments("--remote-debugging-port=32123");
            edgeOptions.addArguments("--headless"); // no browser window
            return new EdgeDriver(service, edgeOptions);

enabling the first commented block uses the old bongarcia WebDriverManager with the same result. enabling the ports in the lower portions leads to "Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: chrome not reachable"

here's the log:

Starting Microsoft Edge WebDriver 116.0.1938.62 (493f2197e519d4dde5309fdf4abf4f719089372d) on port 6878
To submit feedback, report a bug, or suggest new features, please visit https://github.com/MicrosoftEdge/EdgeWebDriver

Only local connections are allowed.
Please see https://aka.ms/WebDriverSecurity for suggestions on keeping Microsoft Edge WebDriver safe.

Microsoft Edge WebDriver was started successfully.
[1693388667.880][INFO]: [8bf1f61dd2328febc9c10702cf0de3e7] COMMAND InitSession {
   "capabilities": {
      "firstMatch": [ {
         "browserName": "MicrosoftEdge",
         "ms:edgeOptions": {
            "args": [ "--remote-allow-origins=*", "--no-sandbox", "--headless", "--disable-dev-shm-usage", "--remote-debugging-port=0" ],
            "binary": "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe",
            "extensions": [  ]
         }
      } ]
   }
}
[1693388667.881][INFO]: Populating Preferences file: {
   "alternate_error_pages": {
      "enabled": false
   },
   "autofill": {
      "enabled": false
   },
   "browser": {
      "check_default_browser": false
   },
   "distribution": {
      "import_bookmarks": false,
      "import_history": false,
      "import_search_engine": false,
      "make_chrome_default_for_user": false,
      "skip_first_run_ui": true
   },
   "dns_prefetching": {
      "enabled": false
   },
   "profile": {
      "content_settings": {
         "pattern_pairs": {
            "https://*,*": {
               "media-stream": {
                  "audio": "Default",
                  "video": "Default"
               }
            }
         }
      },
      "default_content_setting_values": {
         "geolocation": 1
      },
      "default_content_settings": {
         "geolocation": 1,
         "mouselock": 1,
         "notifications": 1,
         "popups": 1,
         "ppapi-broker": 1
      },
      "password_manager_enabled": false
   },
   "safebrowsing": {
      "enabled": false
   },
   "search": {
      "suggest_enabled": false
   },
   "translate": {
      "enabled": false
   }
}
[1693388667.883][INFO]: Populating Local State file: {
   "background_mode": {
      "enabled": false
   },
   "ssl": {
      "rev_checking": {
         "enabled": false
      }
   }
}
[1693388667.889][INFO]: Launching Microsoft Edge: "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --allow-pre-commit-input --disable-background-networking --disable-backgrounding-occluded-windows --disable-client-side-phishing-detection --disable-default-apps --disable-dev-shm-usage --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --enable-automation --enable-logging --headless --log-level=0 --no-first-run --no-sandbox --no-service-autorun --password-store=basic --remote-allow-origins=* --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir="C:\Users\ue62541\AppData\Local\Temp\scoped_dir13572_127664295" data:,
[1693388727.955][INFO]: Failed to connect to msedge. Attempting to kill it.
[1693388728.011][INFO]: [8bf1f61dd2328febc9c10702cf0de3e7] RESPONSE InitSession ERROR unknown error: DevToolsActivePort file doesn't exist
[1693388728.011][DEBUG]: Log type 'driver' lost 0 entries on destruction
[1693388728.012][DEBUG]: Log type 'browser' lost 0 entries on destruction

any help?

Ramuvelpula96 commented 1 year ago

I'm also facing this while deploying applications on Tomcat -for Edge

this is my code

System.setProperty("webdriver.chrome.driver", chromeDriverPath); System.setProperty("webdriver.edge.driver", edgeDriverPath);

    // Added this code to make it work for latest version of chrome and pass this
    // as param to the ChromeDriver.

    ChromeOptions chromeOptions = new ChromeOptions();
    chromeOptions.addArguments("--remote-allow-origins=*");

    EdgeOptions edgeOptions = new EdgeOptions();
    edgeOptions.addArguments("--remote-allow-origins=*");

    if (gridUrl.isBlank()) {
        switch (browser.toUpperCase()) {

        case "CHROME":
            webDriver = new ChromeDriver(chromeOptions);
            break;
        case "EDGE":
            webDriver = new EdgeDriver(edgeOptions);
            break;

        default:
            webDriver = new ChromeDriver(chromeOptions);

        }
    } else {
        switch (browser.toUpperCase()) {
        case "CHROME":
            chromeOptions.setPageLoadStrategy(PageLoadStrategy.NORMAL);
            try {
                webDriver = new RemoteWebDriver(new URL(gridUrl), chromeOptions);
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
            break;
        case "EDGE":    

            edgeOptions.setPageLoadStrategy(PageLoadStrategy.NORMAL);
            try {
                webDriver = new RemoteWebDriver(new URL(gridUrl), edgeOptions);
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
            break;
        default:                                               
            webDriver = new ChromeDriver(chromeOptions);
        }
    }
    webDriver.manage().deleteAllCookies();
    webDriver.manage().window().maximize();
    webDriver.get(environmenturl);

}

Im getting this error

ould not start a new session. Response code 500. Message: unknown error: msedge failed to start: crashed. (unknown error: DevToolsActivePort file doesn't exist) (The process started from msedge location C:\Program Files\Microsoft\Edge\Application\msedge.exe is no longer running, so msedgedriver is assuming that msedge has crashed.) Build info: version: '4.1.4', revision: '535d840ee2' System info: host: 'MAZDA', ip: '10.0.0.127', os.name: 'Windows Server 2019', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.6' Driver info: org.openqa.selenium.edge.EdgeDriver Command: [null, newSession {capabilities=[Capabilities {browserName: MicrosoftEdge, ms:edgeOptions: {args: [--remote-allow-origins=], extensions: []}}], desiredCapabilities=Capabilities {browserName: MicrosoftEdge, ms:edgeOptions: {args: [--remote-allow-origins=], extensions: []}}}] org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: msedge failed to start: crashed. (unknown error: DevToolsActivePort file doesn't exist) (The process started from msedge location C:\Program Files\Microsoft\Edge\Application\msedge.exe is no longer running, so msedgedriver is assuming that msedge has crashed.) Build info: version: '4.1.4', revision: '535d840ee2' System info: host: 'MAZDA', ip: '10.0.0.127', os.name: 'Windows Server 2019', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.6' Driver info: org.openqa.selenium.edge.EdgeDriver Command: [null, newSession {capabilities=[Capabilities {browserName: MicrosoftEdge, ms:edgeOptions: {args: [--remote-allow-origins=], extensions: []}}], desiredCapabilities=Capabilities {browserName: MicrosoftEdge, ms:edgeOptions: {args: [--remote-allow-origins=], extensions: []}}}] at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:84) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:62) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:156) at org.openqa.selenium.remote.service.DriverCommandExecutor.invokeExecute(DriverCommandExecutor.java:167) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:142) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:567) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:248) at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:164) at org.openqa.selenium.chromium.ChromiumDriver.(ChromiumDriver.java:108) at org.openqa.selenium.edge.EdgeDriver.(EdgeDriver.java:52) at org.openqa.selenium.edge.EdgeDriver.(EdgeDriver.java:44) at com.pmfic.qa.automation.ap.tests.BaseTest.setupApplication(BaseTest.java:73) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139) at org.testng.internal.invokers.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:69) at org.testng.internal.invokers.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:361) at org.testng.internal.invokers.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:296) at org.testng.internal.invokers.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:180) at org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:122) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at org.testng.TestRunner.privateRun(TestRunner.java:806) at org.testng.TestRunner.run(TestRunner.java:601) at org.testng.SuiteRunner.runTest(SuiteRunner.java:433) at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:471) at org.testng.internal.thread.ThreadUtil.lambda$execute$0(ThreadUtil.java:58) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833)

MacAarburger commented 1 year ago

today it looks a little different. i remembered that i did not include the .log file, just the console output. in trying to attach the log, i cleaned out the temp folder (those files and folders that let me delete them) to see the scoped_dir* folder better.

now i noticed that a single test run creates 2 folders image and after the exception is thrown, both folders are automatically deleted.

MacAarburger commented 1 year ago

we just got 116.0.1938.69 still the same issue

Ramuvelpula96 commented 1 year ago

Are You Running the test cases on a Virtual machine or On a Local? For Me. when I'm running test cases using the Tomcat server it works fine for both browsers But while deploying the application on Tomcat only I'm getting this issue.

MacAarburger commented 1 year ago

we only have it local and on grid. on openshift we start a RemoteWebDriver for browserstack which works. return new RemoteWebDriver(new URL(SELENIUM_SERVER_URL), capabilities);

MacAarburger commented 1 year ago

ok, new selenium version 4.12.1, here are the logs:

[09-05-2023 15:00:33.105][INFO]: Starting Microsoft Edge WebDriver 116.0.1938.69 (62ef76ea75c44d490d3c9ecfe141c16f8d79df48) on port 32123
[09-05-2023 15:00:33.106][INFO]: Please see https://aka.ms/WebDriverSecurity for suggestions on keeping Microsoft Edge WebDriver safe.
[09-05-2023 15:00:34.289][INFO]: [3396717d0bd6f00ceff873c3262b29c4] COMMAND InitSession {
   "capabilities": {
      "firstMatch": [ {
         "browserName": "MicrosoftEdge",
         "ms:edgeOptions": {
            "args": [ "--remote-allow-origins=*", "--no-sandbox", "--headless", "--disable-dev-shm-usage", "--remote-debugging-port=0" ],
            "binary": "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe",
            "extensions": [  ]
         }
      } ]
   }
}
[09-05-2023 15:00:34.291][INFO]: Populating Preferences file: {
   "alternate_error_pages": {
      "enabled": false
   },
   "autofill": {
      "enabled": false
   },
   "browser": {
      "check_default_browser": false
   },
   "distribution": {
      "import_bookmarks": false,
      "import_history": false,
      "import_search_engine": false,
      "make_chrome_default_for_user": false,
      "skip_first_run_ui": true
   },
   "dns_prefetching": {
      "enabled": false
   },
   "profile": {
      "content_settings": {
         "pattern_pairs": {
            "https://*,*": {
               "media-stream": {
                  "audio": "Default",
                  "video": "Default"
               }
            }
         }
      },
      "default_content_setting_values": {
         "geolocation": 1
      },
      "default_content_settings": {
         "geolocation": 1,
         "mouselock": 1,
         "notifications": 1,
         "popups": 1,
         "ppapi-broker": 1
      },
      "password_manager_enabled": false
   },
   "safebrowsing": {
      "enabled": false
   },
   "search": {
      "suggest_enabled": false
   },
   "translate": {
      "enabled": false
   }
}
[09-05-2023 15:00:34.293][INFO]: Populating Local State file: {
   "background_mode": {
      "enabled": false
   },
   "ssl": {
      "rev_checking": {
         "enabled": false
      }
   }
}
[09-05-2023 15:00:34.301][INFO]: Launching Microsoft Edge: "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --allow-pre-commit-input --disable-background-networking --disable-backgrounding-occluded-windows --disable-client-side-phishing-detection --disable-default-apps --disable-dev-shm-usage --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --enable-automation --enable-logging --headless --log-level=0 --no-first-run --no-sandbox --no-service-autorun --password-store=basic --remote-allow-origins=* --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir="C:\Users\ue62541\AppData\Local\Temp\scoped_dir16020_1359599471" data:,
[09-05-2023 15:01:34.384][INFO]: Failed to connect to msedge. Attempting to kill it.
[09-05-2023 15:01:34.492][INFO]: [3396717d0bd6f00ceff873c3262b29c4] RESPONSE InitSession ERROR unknown error: DevToolsActivePort file doesn't exist
[09-05-2023 15:01:34.492][DEBUG]: Log type 'driver' lost 0 entries on destruction
[09-05-2023 15:01:34.492][DEBUG]: Log type 'browser' lost 0 entries on destruction

now all logs go to the logfile, no more messages in sysout, other than the exception

Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: DevToolsActivePort file doesn't exist 
Host info: host: 'K62562', ip: '10.171.85.61'
Build info: version: '4.12.1', revision: '8e34639b11'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.5'
Driver info: org.openqa.selenium.edge.EdgeDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: MicrosoftEdge, ms:edgeOptions: {args: [--remote-allow-origins=*, --no-sandbox, --headless, --disable-dev-shm-usage, --remote-debugging-port=0], binary: C:\Program Files (x86)\Micr..., extensions: []}}]}]
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:140)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:96)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:68)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:163)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.invokeExecute(DriverCommandExecutor.java:196)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:171)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:163)
    at org.openqa.selenium.chromium.ChromiumDriver.<init>(ChromiumDriver.java:108)
    at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:60)
    at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:56)
    at ch.sbb.zvs.testhub.test.extension.selenium.WebDriverFactory.getLocalDriver(WebDriverFactory.java:144)
    at ch.sbb.zvs.testhub.test.extension.selenium.WebDriverFactory.createDriver(WebDriverFactory.java:55)
    at ch.sbb.zvs.testhub.test.extension.selenium.SeleniumSupport.beforeEach(SeleniumSupport.java:74)
rrodriguez25 commented 1 year ago

Also having same issue when running on Jenkins It works fine if I try running locally

Error log Error Message: 12:15:37 System.Collections.Generic.KeyNotFoundException : The given key 'WebDriver' was not present in the dictionary. 12:15:37 TearDown : System.Collections.Generic.KeyNotFoundException : The given key 'WebDriver' was not present in the dictionary. 12:15:37 Stack Trace: 12:15:37 at System.Collections.Generic.Dictionary2.get_Item(TKey key) 12:15:37 at TechTalk.SpecFlow.SpecFlowContext.Get[T](String key) 12:15:37 at Gen5UIProject.Hook.ExtentReport.GetScreenshot(String name) in C:\soft\Gen5Test\Gen5Project\ExtentReport\ExtentReport.cs:line 91 12:15:37 at Gen5UIProject.Hook.ExtentReport.Create_ReportingSteps() in C:\soft\Gen5Test\Gen5Project\ExtentReport\ExtentReport.cs:line 74 12:15:37 at Gen5UIProject.Hook.TestInitialize.InsertReportingSteps() in C:\soft\Gen5Test\Gen5Project\Hook\TestInitialize.cs:line 49 12:15:37 at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.FireEvents(HookType hookType) 12:15:37 at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.FireScenarioEvents(HookType bindingEvent) 12:15:37 at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.OnStepEnd() 12:15:37 at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.ExecuteStep(IContextManager contextManager, StepInstance stepInstance) 12:15:37 at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.Step(StepDefinitionKeyword stepDefinitionKeyword, String keyword, String text, String multilineTextArg, Table tableArg) 12:15:37 at TechTalk.SpecFlow.TestRunner.Given(String text, String multilineTextArg, Table tableArg, String keyword) 12:15:37 at Gen5UIProject.Features.ESI_AA_LoginFeature.TestLoginFunctionalityOfESIWeb(String browsers, String[] exampleTags) in C:\soft\Gen5Test\Gen5Project\Features\ESI_AA_Login.feature:line 7 12:15:37 --TearDown 12:15:37 at System.Collections.Generic.Dictionary2.get_Item(TKey key) 12:15:37 at TechTalk.SpecFlow.SpecFlowContext.Get[T](String key) 12:15:37 at Gen5UIProject.Hook.TestInitialize.KillDriver() in C:\soft\Gen5Test\Gen5Project\Hook\TestInitialize.cs:line 69 12:15:37 at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.FireEvents(HookType hookType) 12:15:37 at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.FireScenarioEvents(HookType bindingEvent) 12:15:37 at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.OnScenarioEnd() 12:15:37 at TechTalk.SpecFlow.TestRunner.OnScenarioEnd() 12:15:37 at Gen5UIProject.Features.ESI_AA_LoginFeature.TestTearDown() 12:15:37 Standard Output Messages: 12:15:37 Starting Test login functionality of ESI Web 12:15:37 Given I navigate to ESI Web on edge 12:15:37 -> error: unknown error: Microsoft Edge failed to start: crashed. 12:15:37 (unknown error: DevToolsActivePort file doesn't exist) 12:15:37 (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.)

ghost commented 1 year ago

Hopefully this helps, if not, please disregard.

Note I am using a different tech-stack than those mentioned here, but this temporary fix may still help.

Relevant tech-stack:

Resolution:

Explanation: The POST request to the edgedriver that initiates the session was getting hung before eventually timing out with the error mentioned here. I found that I did have the DevToolsActivePort file located in the default "user-data-dir", which I found to be in my %Temp% folder. Moving this file up one level from it's original location in the EBWebView folder resolved the issue for me.

As a temporary workaround, I modified the request being sent to the edge driver to explicitly set the "user-data-dir", which I did under "ms:edgeOptions"->"webviewOptions"->"userDataFolder", to a location that I had control of. In doing so, before the request times-out, I have a script that will move this file up one level for me, thus resolving the issue (temporarily until a true fix is implemented).

MacAarburger commented 1 year ago

we found out, that this may have been disabled by a security change in our organization. normally you could check these settings in edge by opening a new tab and navigating to edge://flags but here we also get a security block saying "Diese Seite wurde von Ihrem Administrator blockiert" which translates to 'this page was blocked by your administrator'. we are currently looking into generating an exception for our dev machines. i will report back if this resolves our issue.

i hope this can help others with the same issue

MacAarburger commented 1 year ago

SOLUTION: the security policy change was the culprid.

after 1) gaining local admin rights 2) setting this flag in the registry: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\ RemoteDebuggingAllowed = 1 (hex) 3) opening edge browser, navigating to edge://policy, and refreshing the policy (as a result on the lower half remote debugging allowed will be shown as TRUE) 4) now debugging is possible as before.