Selenium WebDriver - Could not find Chrome binary

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

    Download "chromedriver_win_22_0_1203_0b.zip" extract it and set the path as below: (I have set my path)

    options.BinaryLocation = @"F:\\Software Download_Ripon\\WebDriver\\chromedriver_win_22_0_1203_0b\\chromedriver.exe";
    

    The above should work well

提交回复
热议问题