Unable to create new Chrome remote session

前端 未结 3 1895
自闭症患者
自闭症患者 2021-01-22 03:19

I\'m trying to launch a new Chrome browser using Selenium Grid but ending up with the below error

Unable to create new remote session. desired capabilities = Capabilitie

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-22 03:50

    make sure your code is able to find the chromedriver in your system. You can set the path programatically, you can even download and keep your driver from the below link

    System.setProperty("webdriver.chrome.driver","/path to/chromedriver.exe");
    cap = DesiredCapabilities.chrome();
    cap.setPlatform(org.openqa.selenium.Platform.WINDOWS);
    browser = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"),cap);
    

提交回复
热议问题