SeleniumLibrary icon indicating copy to clipboard operation
SeleniumLibrary copied to clipboard

Headless edge option

Open Kim-Hietikko opened this issue 3 years ago • 2 comments

Headless edge option with msedge selenium tools.

pip install msedge-selenium-tools selenium==3.141 needs to be installed in order it to run.

Kim-Hietikko avatar Mar 24 '21 15:03 Kim-Hietikko

Few things to consider:

  1. This cannot be merged as-is because it depends on the 3rd party tooling that is not fetched as part of installation and depending on msedge (for now) doesn't sound good approach because ->
  2. Even if no import/dependency errors, i'd check first what sort of support upstream selenium provides for handling edge chromium options. However, this would probably only land with Selenium 4.

However, support for new chrome based Edge is definitely something that should be available for in SeleniumLibrary.

There are approaches that could be done to support this with SeleniumLibrary plugin interface. Backporting the support for current Selenium/SeleniumLibrary could be done first via plugin, that will inherit original WebDriverCreator class of SeleniumLibrary and override/modify those parts that are needed and then in the plugin's constructor, overwrite _webdriver_creator property but I'll get back into this a bit later ..

As parting words, one of the features i'd like to see in SeleniumLibrary is the ability to modify/inject code into how and what gets instantiated so the issue is close to my aims ..

rasjani avatar Mar 25 '21 14:03 rasjani

Thanks for sharing

jyogesh27 avatar Apr 21 '21 04:04 jyogesh27

With the current state of Selenium and the SeleniumLibrary, Chromium based Edge, and the End-Of-Life for Microsoft Edge Legacy for which MicrosoftWebDriver.exe is paired with, this pull request is no longer valid. In addition one can get an Headless (Chromium-based) Edge with a Open Browser keyword like

Open Browser  https://robotframework.org/  Edge  options=add_argument("headless")

This doesn't mean having a headlessedge like we have a headlessfirefox and headlesschrome might be helpful but that will need to be in a different pull request.

emanlove avatar Oct 09 '22 02:10 emanlove