How to start with Edge webdriver with python 2.7 and Robot framework 2.9 How to start with Edge webdriver with python 2.7 and Robot framework 2.9 selenium selenium

How to start with Edge webdriver with python 2.7 and Robot framework 2.9


It looks like RobotFramework uses their own library called Selenium2Library. This library currently has a pull request to add Microsoft Edge support sitting in code review which can be found here:

https://github.com/robotframework/Selenium2Library/pull/568

Since it uses Selenium2Library the fact that selenium has support for Microsoft Edge doesn't matter. Here is where you can see supported browsers:

http://robotframework.org/Selenium2Library/doc/Selenium2Library.html#Open%20Browser


From the (current) Selenium2Library documentation it is clear that edge is supported.

The error provided seems to me that the executable Mircrosoftwebdriver.exe can not be found. The easiest way to check this is to open a command prompt (win key, type cmd, first option). In the command box type or copy-paste Mircrosoftwebdriver.exe and press enter. In case you get the following message, then the executable isn't in the path.

C:\Users\User>Mircrosoftwebdriver.exe'Mircrosoftwebdriver.exe' is not recognized as an internal or external command,operable program or batch file.

When you see the following response, then you know your path is set correctly for the Edge webdriver.

C:\Users\User>MicrosoftWebDriver.exe[21:40:44.531] - Listening on http://localhost:17556/


Not sure if this is still relevant, however I was having the same problems even though it was in my path correctly. What I noticed was when I unpacked the driver after downloading from MS the name was all in lowercase 'microsoftwebdriver.exe'. Changed name in path so it was the same as the error message 'MicrosoftWebDriver.exe' and low and behold it now works.