Unable to launch edge web-driver with extension v17763

Duplicate Issue #21069465 • See Issue #19950242


Ashok M.
Apr 3, 2019
This issue is public.
Found in
  • Microsoft Edge
See progress on Bug #19950242
Found in build #
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

I’m trying to launch Edge (MicrosoftWebdriver v17763) with extension installed in it to perform some automated tests.
I’ve been using the below code in v17134 using python selenium. It is working in v17134, but the same does not hold good for latest versions (Edge version after 17763)

from selenium import webdriver
capabilities = webdriver.DesiredCapabilities.EDGE.copy()
capabilities[‘extensionPaths’] = [“C:\Users\automation\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\LocalState\Extensions\IDSafe”]
Tried with this path too “C:\Users\automation\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\LocalState\IDSafe”
edge = webdriver.Edge(executable_path="C:\Users\automation\Documents\ashok_mb_mac_zen\Automation\Frameworks\Selenium\MicrosoftWebDriver.exe", capabilities=capabilities)

Please help. Thanks!


Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Zachariah L.”

  • Hi Ashok!

    Thanks for contacting us about this issue! To automate the most recent version of Microsoft Edge, you need to be using the Windows Feature on Demand version of MicrosoftWebDriver. To install this version of the MicrosoftWebDriver run the following command in an elevated command prompt: 

    DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~

    Once downloaded, you need to pass the location to your script manually. The default installation location is: 


    I hope that helps!

  • Hi Zachariah. I’ve downloaded the MicrosoftWebDriver using the above mentioned command only. I’ve placed the driver in my convenient location (Is this an issue ?)

    To confirm the webdriver version, please refer the screenshot that I’ve attached already.

  • Hi Ashok!

    I don’t think that moving it is an issue as long as you are passing the location to your code. Did this resolve the issue?



  • Nope. I’ve been using the right driver and it’s path if you can see the code snippet above and attached screenshots.
    I’m still not able to launch the driver with extension.

    Please help!

  • Hi Ashok!

    Just for clarification, are you trying to load an extention via selenium? Could you provide me with a script that reproduces the issue?



  • Hey Zach, I’ve already added the code snippet in the “Steps to reproduce” section. Please have a look.

  • Attaching the sample script file used.

  • Hi Ashok!

    Thank you for the clarification! I was confused if your issue was with the extension loading or just starting Edge. As far as starting Edge is concerned, your code runs without issue but in regards to sideloading an extension, this has been reported before as a bug. 

    For now, I will resolve this issue as "Duplicate".  To view the current status of this problem, please visit the parent issue. There has been some talk on the parent issue about current workarounds, perhaps those will work for you. If you need any additional help then please feel free to reopen this issue.



  • Microsoft Edge Team

    Changed Status to “Duplicate”

  • Hey Zach,
    I’m fine that the issue is duplicate of the parent you have mentioned. But still please be informed that the EdgeOptions for Python Selenium does not provide the “AddExtension” convenience method even in its latest version (3.141.0) as like in ChromeOptions (add_extension). Just FYI that I don’t find a work around to load the extension in latest versions.

You need to sign in to your Microsoft account to add a comment.

Sign in