ChromeDriver does not exist in Selenium WebDriver C# test script

前端 未结 10 648
南旧
南旧 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:52

    Old question, new answer (for what it's worth): just install the Nuget package Selenium.WebDriver.ChromeDriver. Chromedriver.exe will be in the directory bin/debug on the next build.

    3rd party edit 2017-09

    On this github page jsakamoto/nupkg-selenium-webdriver-chromedriver/ that after running Install-Package Selenium.WebDriver -Version 3.5.2 the chromedriver(.exe) lies below this folder

    " {solution folder} /packages/Selenium.WebDriver.ChromeDriver. {ver} /driver/ {platform}"

提交回复
热议问题