ChromeDriver does not exist in Selenium WebDriver C# test script

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

    If you're using Atata and .Net Core, see this page: https://atata.io/getting-started/#dot-net-core-configuration

     AtataContext.Configure()
                    .UseChrome()
                    .WithFixOfCommandExecutionDelay()
                    .WithLocalDriverPath()
                    .UseCulture("en-us")
                    .Build();
    

    these are the lines you want to make sure you have:

    .UseChrome()
    .WithFixOfCommandExecutionDelay()
    .WithLocalDriverPath()
    

提交回复
热议问题