ChromeDriver does not exist in Selenium WebDriver C# test script

前端 未结 10 642
南旧
南旧 2021-02-01 02:24

I have come across a few people with the same issue that seemed to have solved the problem with System.addProperty(\"webdriver.chrome.driver\", \".../chromedriver.exe\");<

10条回答
  •  鱼传尺愫
    2021-02-01 02:44

    Install Selenium.WebDriver.ChromeDriver from NuGet and then you can do the following:

    IWebDriver driver = new ChromeDriver(Environment.CurrentDirectory);
    

提交回复
热议问题