Selenium WebDriver.ChromeDriver Nuget package installed, but not working for MSTest

后端 未结 7 508
予麋鹿
予麋鹿 2020-12-17 16:06

I have added the WebDriver.ChromeDriver nuget package to my solution, which contains the ChromeDriver.exe file, required for Selenium WebDriver to run automated tests using

7条回答
  •  再見小時候
    2020-12-17 16:22

    The Nuget package will place the driver.exe file in {buildconfiguration}/ To tell it to look in the root of the application, pass a "." when creating a new instance of the driver.

    IWebDriver driver = new ChromeDriver(".");
    

提交回复
热议问题