UnreachableBrowserException trying to launch in Selenium Webdriver using IEDriver

前端 未结 7 1845
生来不讨喜
生来不讨喜 2021-01-15 09:30

I have a set of automations that work fantastically in Firefox and Chrome, and I\'d like to launch an instance of IEDriver as well.

I\'ve set up IEDriver as per Sel

7条回答
  •  天命终不由人
    2021-01-15 09:45

    Selenium WebDriver with Chrome, issue:

    (org.openqa.selenium.remote.UnreachableBrowserException) solution
    Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
    Build info: version: '2.35.0', revision: '8df0c6b', time: '2013-08-12 15:43:19'
    System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_40'
    Driver info: driver.version: ChromeDriver
    

    If you are getting above problem, go to the chromedriver.exe location and try to execute the exe. If you are able to execute the exe then below code will work. Otherwise it will be a permission issue to the chromedriver folder. Change the folder location or provide the permission to the folder and double click on chromedriver.exe.

    Solution:

      System.setProperty("webdriver.chrome.driver", "C:/Driver/chromedriver.exe");
      System.out.println(System.getProperty("webdriver.chrome.driver"));
    
      WebDriver driver3 = new ChromeDriver();
    

提交回复
热议问题