Not able to open two different sites on two different browsers(Chrome, Edge) | Selenium Forum
Ankit Jain Posted on 08/08/2021

I tried to open two diferent sites on two different browsers (Chrome, Edge). Only Chrome browser opens and site gets loaded on chrome browser. I set the path of driver exe in environment variables.

Have a look at below screenshot of eclipse and let me know what is the issue.


Error message : java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.edge.driver system property; for more information, see The latest version can be downloaded from


In day 2 of training you said that we dont have to use System.setProperty() everytime if set the path of browser exe in environment variables.

Ashish Thakur Replied on 11/08/2021

I think yu do not have the correct msedgedriver.exe at the requeired path

Ankit Jain Replied on 11/08/2021

msedgedriver.exe is correct. there is no issue in that. Same issue has been faced by others as well.

Below is the issue faced by Harshad which is same as I am facing.

Harshad W Posted on 12/09/2020



I am not able to launch the Edge browser using the Environment variables. The error says,

"The path to the driver executable must be set by the webdriver.edge.driver system property" Chrome and FF don't throw any errors. 

However, if I launch it using,


it gets launched without any issues. What is the reason behind this? I am using the following versions of Edge and EdgeDriver:

Edge Version 85.0.564.51

Edge driver x64 Version: 85.0.564.51 

I am using Win 8.1 x 64 bit machine. 


Ashish Thakur Replied on 16/08/2021

Hope its only at a single path location

I had seen once someone had 2 different versions of exe at different paths and both the paths were in evn variables

Related Posts