I am using selenium in asp core 3.1, in local it's working, but in server windows 2012 there's an error:
WebDriverException: unknown error: no chrome binary
I set binary and driver:
var chromeOptions = new ChromeOptions();
chromeOptions.BinaryLocation = @"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe";
_driver = new ChromeDriver(Path.Combine(hostingEnvironment.WebRootPath), chromeOptions);
but not work