none
Selenium with Edge Driver Windows 10 1809 RRS feed

  • Question

  • I'm having trouble getting Selenium working with EdgeDriver in Windows 10 1809.  Microsoft now delivers EdgeWebdriver with Windows in System32 dir.  I haven't seen any examples on how to use it.  This worked in 1803:

    using System;
    using OpenQA.Selenium;
    using OpenQA.Selenium.Edge;
    
    namespace Selenium
    {
        class Program
        {
            static void Main(string[] args)
            {
                IWebElement ele;
                IWebDriver drv = new EdgeDriver();
                drv.Url = "http://www.imdb.com/";
                ele = drv.FindElement(By.XPath("(//td[@class='TableNumBlack'])[14]"));
                Console.WriteLine(ele.Text);
                drv.Close();
                Environment.Exit(0);
            }
        }
    }


    Tuesday, January 22, 2019 11:49 PM

Answers

  • Finally got it to work.  I had a Windows update this week.  I completely rebuild my program from ground up and it worked.  I did this 2 weeks ago with no success.  Who knows.
    • Marked as answer by mogulman52 Friday, February 1, 2019 10:07 PM
    Friday, February 1, 2019 10:07 PM

All replies

  • Hi mogulman52,

    Thank you for posting here.

    For your question, please check the version of MicrosoftWebDriver.exe. Based on my test, the error caused by the .exe file is not corresponding for Windows 1809.

    The version of MicrosoftWebDriver.exe is depend on the OS Build in Start> Settings> System> About> OS Build. You could download the associated version in the link below.

    https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/#downloads

    For now, there is no corresponding version for MicrosoftWebDriver.exe with Windows 1809.

    Windows 1809 OS Build

    This is why the code does not work.

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Wednesday, January 23, 2019 5:49 AM
  • Thanks for reply Wendy.  I don't think you read my email.  Starting with Win 10 1809 delivers Edge webdriver with the Windows release.  You'll no longer see it on the download page.  See image below:

    I haven't seen any examples of how to use.  I need some direction.


    • Edited by mogulman52 Wednesday, January 23, 2019 12:54 PM
    Wednesday, January 23, 2019 12:51 PM
  • try 

    https://docs.microsoft.com/en-us/microsoft-edge/webdriver#using-webdriver

    https://gist.github.com/InstyleVII/baf25274c55e891076d5#file-webdriver-cs

    Wednesday, January 23, 2019 10:54 PM
  • Mel_W, thanks for reply but both these links are dated and don't address Windows 10 1809 release.
    Wednesday, January 23, 2019 11:45 PM
  • Hi mogulman52,

    Thank you for feedback.

    As what I said in my previous reply, Microsoft WebDriver do not provide the verion of .exe for Windows 1809. The latest version is for Windows 1803. When you use the .exe on it, it would thrown the exception.

    https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/#downloads

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, January 30, 2019 6:33 AM
  • Wendy, as I said earlier with Windows 10 1809 and onward Microsoft doesn't provide a stand-alone webdriver.  It is delivered with Windows.  If you don't believe me use the DSIM command:

    dism /Online /Get-Capabilities

    You should see this if you have Windows 10 1809.

    Wednesday, January 30, 2019 3:07 PM
  • Hi mogulman52,

    I tried on my side, the .exe file does not installed.

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, January 31, 2019 9:11 AM
  • This is really a question about Selenium. Selenium is a third party product. Please post questions related to getting Selenium to work with Edge in their forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Thursday, January 31, 2019 4:28 PM
  • Wendy,  would you mind telling about your version of Windows 10.  I checked on 2 computers and it was installed.
    Friday, February 1, 2019 5:32 PM
  • Finally got it to work.  I had a Windows update this week.  I completely rebuild my program from ground up and it worked.  I did this 2 weeks ago with no success.  Who knows.
    • Marked as answer by mogulman52 Friday, February 1, 2019 10:07 PM
    Friday, February 1, 2019 10:07 PM