Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I have downloaded and installed edge webdriver from Microsoft website. I see the Edge driver folder in the "C:\Python27\Lib\site-packages\selenium-2.48.0-py2.7.egg\selenium\webdriver\edge".

Whenever I try to execute the below Robot Test case:

*** Settings ***
Documentation       Test Edge Browser

*** Test Case ***
Test Edge browser
    open browser    http://www.google.in    Edge

Though I have set the environment path for "Mircrosoftwebdriver.exe". I see the "WebDriverException: Message: The EdgeDriver executable needs to be available in the path. Please download from http://go.microsoft.com/fwlink/?LinkId=619687"

Please let me know if anyone has the same issue and resolved.

like image 936
louis Avatar asked Jan 23 '16 14:01

louis


1 Answers

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

like image 173
Clayton Martin Avatar answered Sep 28 '22 07:09

Clayton Martin