selenium: [πŸ› Bug]: org.openqa.selenium.SessionNotCreatedException when launching the Edge Browser in IE Mode

What happened?

Am trying to Launch the Edge browser in the IE Mode and below is the code used. Am using Windows 16 64 Bit machine. Edge Browser 114 Version installed and IE 11 also installed

Getting the below error after a while. Also its launching both IE 11 and Edge Browser in IE Mode together. Howvere i wanted only EDGE Browser in IE Mode alone But not navigating to the Website i mentioned IEMODE_IE IEMODE_EDGE

Error Message: 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.

How can we reproduce the issue?

public static void main(String[] args) {
	System.setProperty("webdriver.ie.driver", "C:\\Automation\\Workspace\\TESTNG_TOWER_LAYER\\drivers\\IEDriverServer.exe");
	InternetExplorerOptions IEOptionsEdge = setInternetExlopererForEdge();
	WebDriver driver = new InternetExplorerDriver(IEOptionsEdge);
	driver.get("https://www.google.com/");
	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;
}

Relevant log output

Started InternetExplorerDriver server (64-bit)
4.8.1.0
Listening on port 63976
Only local connections are allowed
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.
Build info: version: '4.1.1', revision: 'e8fcc2cecf'
System info: host: '-----------', ip: '--------', 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}}], desiredCapabilities=Capabilities {browserName: internet explorer, ie.edgechromium: true, ie.edgepath: C:\Program Files (x86)\Micr..., ignoreZoomSetting: true, se:ieOptions: {ie.edgechromium: true, ie.edgepath: C:\Program Files (x86)\Micr..., ignoreZoomSetting: true}}}]
Capabilities {}

Operating System

Windows 16

Selenium version

Selenium 4

What are the browser(s) and version(s) where you see this issue?

Edge 114

What are the browser driver(s) and version(s) where you see this issue?

IEDRIVERSERVER 64 BIT

Are you using Selenium Grid?

NA

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 27 (15 by maintainers)

Most upvoted comments

hmm, Selenium Manager is not picking up that proxy and it should be. Let me look at the code for it again.

It is caused when connecting to the mirror metadata, and the response should be quick, so I don’t think a timeout causes this. I believe this is caused by some network device (maybe a proxy or firewall).

Sure . I will update this and will let you know. I have raised a request in the internal organization to add Selenium 4.10.0 on maven remote repo