Selenium with Edge Driver Windows 10 1809

  • Thread starter Thread starter mogulman52
  • Start date Start date
M

mogulman52

Guest
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 = "IMDb - Movies, TV and Celebrities - IMDb";
ele = drv.FindElement(By.XPath("(//td[@class='TableNumBlack'])[14]"));
Console.WriteLine(ele.Text);
drv.Close();
Environment.Exit(0);
}
}
}

Continue reading...
 
Back
Top