Open mVermaat opened 5 years ago
Yes got the same problem, i guess it's the way the new package try to find the chromedriver extension. I tried to solve it but nothing works so far so I did downgraded to 9.1.0.5230. @tylerd for you information :)
I got a similar issue:
The file C:\Users\rs\AppData\Local\Temp\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html
Is anyone looking into this problem, which makes the latest version completely useless and persists for almost two months?
Ok, found a workaround: one needs to set the DriversPath in the options object:
var options = new BrowserOptions
{
BrowserType = BrowserType.Chrome,
UCITestMode = true,
DriversPath = GetDriverPath()
};
var webClient = new WebClient(options);
crm = new XrmApp(webClient);
I still think this behaviour should be fixed, because it worked without an explicit path before the mentioned updated. Moreover the default selenium webdriver does not require an explicit path, so why does EasyRepro?
Luckily in my case the driver is in the same location as the executing assembly:
protected static string GetDriverPath()
{
var assemblyPath = Assembly.GetExecutingAssembly().Location;
Logger.Debug($"Assembly Path: {assemblyPath}");
var indexFileName = assemblyPath.LastIndexOf('\\');
return assemblyPath.Substring(0, indexFileName);
}
Bug Report
Issues should only be created for items related to covered functionality.
Not covered functionality, feature requests, and questions should use the Feature Request or Question templates.
EasyRepro Version
UCI or Classic Web
Online or On Premise
Browser
Describe the bug
I updated the NuGet package from 9.1.0.5230 to 9.1.0.6210. When i try to login (which starts the browser) I now get an error message that the ChromeDriver cannot be found. For some reason it searches in the TestResults folder.
Error Message
OpenQA.Selenium.DriverServiceNotFoundException: The file C:\Github\mVermaat\Crm.Specflow\TestResults\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html
StackTrace: