My application doesn't work in the Edge browser. but works fine in the Edge Browser(Version 105) with IE Compatibility Mode. Am using Selenium 4 with below code to launch the Edge Browser in IE Mode
Note: IE 11 is not installed in the machine.
After launching the browser in the IE mode getting this error message ""Internet Explorer cant be found. You need to re-install or re-enable Internet Explorer" Attached the image

System.setProperty("webdriver.ie.driver", GlobalSettings.IE_DRIVER_PATH);
InternetExplorerOptions IEOptionsEdge = setInternetExlopererForEdge();
driver = new InternetExplorerDriver(IEOptionsEdge);
driver.get("https://www.bbc.co.uk/");
driver.manage().window().maximize();
private static InternetExplorerOptions setInternetExlopererForEdge()
{
InternetExplorerOptions IEOptions = new InternetExplorerOptions();
IEOptions.attachToEdgeChrome();
IEOptions.ignoreZoomSettings();
IEOptions.withEdgeExecutablePath("C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe");
return IEOptions;
}
Note: I dont IE 11 listed in the Windows feature to turn on. am Using the WIndows 2016 Oracle VM
Error message in console
Jun 15, 2023 10:03:42 AM org.openqa.selenium.remote.service.DriverService$Builder getLogOutput
INFO: Driver logs no longer sent to console by default; https://www.selenium.dev/documentation/webdriver/drivers/service/#setting-log-output
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Host info: host: 'XYZ', ip: '123'
Build info: version: '4.10.0', revision: 'c14d967899'
System info: os.name: 'Windows Server 2016', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_144'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: internet explorer, se:ieOptions: {ie.edgechromium: true, ie.edgepath: C:\Program Files (x86)\Micr..., ignoreZoomSetting: true}}]}]
Capabilities {}