Creates a Microsoft Edge session and returns the session id.


Use the EDGEDRIVER_EXE directive to specify the path to MSEdgeDriver or MicrosoftWebDriver. Optionally set the port number with EDGEDRIVER_PORT.




The Edge functions require Microsoft's MSEdgeDriver or MicrosoftWebDriver to be installed, depending on which version of Edge you have. For details and download links see:



Newer versions of Edge require MSEdgeDriver.  Legacy versions require MicrosoftWebDriver.


To find out which version of Edge you are using click on the three dots at the top right of Edge (...) and then Settings or Settings and More. If you are running the newer version you will then see an "About Microsoft Edge" option. The version number will be there. If running a legacy version scroll down to the bottom of Settings to see the version number.


If running the legacy version (18, or 19) you can install MicrosoftWebDriver by running the following command from an elevated (run as admin) command prompt:


DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~


If using a newer version of Edge (80+) be sure to install the correct version of MSEdgeDriver for your version of Windows (x86 or x64).


See also: Edge Functions






//start a Edge session



//navigate to google.com