Unable to Create New session with Microsoft Edge with desired capabilities

1.2k views Asked by At

I am trying to create a Java test using Edge Webdriver and Edge version 86 (available to download).

I am using EdgeOptions as suggested on many threads here

System.setProperty("webdriver.edge.driver", "C:\\edgedriver\\msedgedriver.exe"); 
EdgeOptions edgeOptions = new EdgeOptions();
WebDriver driver = new EdgeDriver(edgeOptions); 
driver.get("https://bing.com");

I get the below error when i execute the script

Error:

Starting MSEdgeDriver 86.0.622.43 (aecc56815110f44c6552813fdd27a416872192c8) on port 35032 Only local connections are allowed.

Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping MSEdgeDriver safe.

MSEdgeDriver was started successfully.

org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}], required capabilities = Capabilities [{}]

Build info: version: 'unknown', revision: '5234b32', time: '2017-03-10 09:00:17 -0800'

System info: host: 'XXXXXXXXXX', ip: 'XXXXXXX', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_191'

Driver info: driver.version: EdgeDriver

0

There are 0 answers