How to run Selenium tests on the Brave web browser?

后端 未结 4 2246
天命终不由人
天命终不由人 2020-12-29 10:25

I am trying to run some Selenium tests on the Brave web browser. I am able to start the Brave web browser through Selenium by using the ChromeDriver. However, nothing else w

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-29 11:06

    for windows user path must be relative in your case

    System.setProperty("webdriver.chrome.driver","E:\\WEBDRIVER PLUGINS\\chromedriver_win32\\chromedriver.exe");
    ChromeOptions options = new ChromeOptions().setBinary("C:\\Program Files (x86)\\BraveSoftware\\Brave-Browser\\Application\\brave.exe");
    WebDriver driver = new ChromeDriver(options);
    

提交回复
热议问题