Selenium WebDriver - Could not find Chrome binary

后端 未结 7 1195
轮回少年
轮回少年 2021-02-14 09:45

I\'m trying to get Selenium tests running with Chrome. I\'m using C#.

var options = new OpenQA.Selenium.Chrome.ChromeOptions();
options.BinaryLocation = @\"C:\\U         


        
7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-14 10:21

    Isn't the problem that you're missing the chrome.exe at the end of the path?

    In other words, the path should include the executable, rather than just being the folder in which the executable is located.

提交回复
热议问题