Edge WebDriver Test with Selenium Python API

Q

How to use Edge WebDriver with Microsoft Edge Driver?

✍: FYIcenter.com

A

If you are using the Edge WebDriver with the Selenium Python API, you need to make 'MicrosoftWebDriver' executable available in PATH environment variable.

1. Include path name of the 'MicrosoftWebDriver' executable in PATH environment variable.

C:\fyicenter> dir \fyicenter\selenium\edgedriver
           149,176 MicrosoftWebDriver.exe

C:\fyicenter>set path=\fyicenter\selenium\edgedriver;%path%

2. Run the EdgeTest.py again.

C:\fyicenter> python EdgeTest.py 

You see that the Edge browser is started and stopped correctly with no errors.

 

Compatibility of WebDriver Python API for Edge

Edge WebDriver Script with Selenium Python API

Starting with Selenium WebDriver Client Python API

⇑⇑ Selenium Tutorials

2019-11-08, 1564🔥, 0💬