Use Selenium with Chromium Browser

前端 未结 6 1331
不知归路
不知归路 2020-12-05 10:50

In the Selenium options (on Firefox) I can find Custom browser.

Is it possible to use this option to run a Selenium test in Chromiu

6条回答
  •  不知归路
    2020-12-05 11:34

    It's probably too easy, and I'm going to figure out what I did that is horribly wrong, but...

        ChromeOptions options = new ChromeOptions();
    
        options.BinaryLocation = "C:\Program Files (x86)\Chromium\Application\chrome.exe");
    
        using (var chrome = new ChromeDriver(options))
    

    appears to work...

提交回复
热议问题