Just got it working. My setup is a little different from yours because I’m using a grid, but it should be fairly similar.
For me, when requesting a driver from the grid I use the chrome capabilities:
m_capability = DesiredCapabilities.chrome();
m_capability.setCapability( "browserName", "chrome" );
So in your case I guess you’ll want this instead:
driver = new ChromeDriver();
When launching a node I specify the chrome driver to point to the edge driver (I have it on the PATH, so no need for absolute path)
java -Dwebdriver.chrome.driver=msedgedriver.exe ...
So in your case you’ll want this instead:
System.setProperty("webdriver.chrome.driver",
"C:\\Users\\boni\\Downloads\\msedgedriver.exe");
Another thing to remember is to have the location of Edge executable (see below) on your PATH
For Edge Dev you’ll want to add:
C:\Program Files (x86)\Microsoft\Edge Dev\Application\
Or if you’re using Canary, it’s probably:
C:\Users\boni\AppData\Local\Microsoft\Edge SxS\Application\