Selenium WebDriver - Could not find Chrome binary

后端 未结 7 1193
轮回少年
轮回少年 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:22

    you should have installed chrome in your machine

    and your chromedriver.exe version should accordingly to chrome download form

    https://chromedriver.chromium.org/downloads

    and given new chromedriver.exe path to your script..

    This works well for me

提交回复
热议问题