Robot Framework + Selenium2Library + Microsoft Edge

2,743 views
Skip to first unread message

George Peng

unread,
Dec 17, 2015, 3:52:24 PM12/17/15
to robotframework-users
In the Selenium2Library the "Open Browser URL IE" works fine with IE, if I want to use Microsoft Edge browser instead, how to change the Open Browser URL ?? with the browser name? In other words, what is the name used in the Open Browser command for Edge browser?

Mukesh T

unread,
Dec 17, 2015, 5:11:43 PM12/17/15
to robotframework-users
I could not find the browserName to be passed as argument for Edge - both in selenium2library keyword documentation as well as the _browsermanagement.py (in which the 'Open Browser' definition resides I believe).

Looks like the implementation for Edge is still missing for Selenium2Library?

PS:
I tried to open Edge in webdriver python API as below:

"driver = webdriver.Edge()"

,and it seems to work (looking at the exception it throws : "The EdgeDriver executable needs to be available in the path.")
Best,
Mukesh

George Peng

unread,
Dec 17, 2015, 6:09:02 PM12/17/15
to robotframework-users
Here is update: Add an entry in BROWSER_NAMES in _browsermenagement.py and couple of places so it will start edge eventually, yes, there is a Edge driver installed by default in the /Selenium folder that make it happen.

However when I run command "Open Browser URL edge", it opens a edge with the startup page, not the URL given.

Tatu Aalto

unread,
Dec 18, 2015, 1:15:51 AM12/18/15
to hope...@gmail.com, robotframework-users

Ugh

Edge has support from selenium, but the Microsoft EdgeDriver has limited functionality [1] ready. But Microsoft says that they will build full support for webdriver in the future. This may explain why not all feature's work as expected, or there might be something more which needs to be adjusted in the Selenium2Library side. Hard to say for sure because you are first one to ask for Edge support in Selenium2Library.

But it seems that you are in good progress and if you get it working, even with limited functionality, would you be interested to make a pull request and share the code?

-Tatu
Send from my mobile
[1] https://dev.windows.com/en-us/microsoft-edge/platform/status/webdriver/details/

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Ernest Mueller

unread,
Feb 11, 2016, 1:30:28 PM2/11/16
to robotframework-users, hope...@gmail.com
In case anyone's counting, I would love Edge support as well...

Ernest
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

dm08

unread,
Feb 11, 2016, 1:35:54 PM2/11/16
to ernest....@gmail.com, robotframework-users, hope...@gmail.com
I added Edge in my pr https://github.com/robotframework/Selenium2Library/pull/552

P.S. if u want to use driver = webdriver.Edge() without passing path to edgedriver you can place it in C:/Windows/System32 


To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.

David

unread,
Feb 11, 2016, 6:49:12 PM2/11/16
to robotframework-users, ernest....@gmail.com, hope...@gmail.com
>> P.S. if u want to use driver = webdriver.Edge() without passing path to edgedriver you can place it in C:/Windows/System32

Another option for that would be to add EdgeDriver's directory path to the system path?

dm08

unread,
Feb 11, 2016, 6:50:26 PM2/11/16
to mang...@gmail.com, robotframework-users, ernest....@gmail.com, hope...@gmail.com
Yes, that will work as well

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages