问答详情
源自:6-1 常见浏览器的启动

出现的问题,就是网址没有出现

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.
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_67'
Driver info: driver.version: InternetExplorerDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:467)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:155)
    at org.openqa.selenium.ie.InternetExplorerDriver.setup(InternetExplorerDriver.java:114)
    at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:54)
    at sandy.util.selenium.main(selenium.java:28)
Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_67'
Driver info: driver.version: InternetExplorerDriver
    at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:179)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:62)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:446)
    ... 4 more
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:36588/status] to be available after 20002 ms
    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:104)
    at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:177)
    ... 6 more
Caused by: com.google.common.util.concurrent.UncheckedTimeoutException: java.util.concurrent.TimeoutException
    at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:143)
    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:79)
    ... 7 more
Caused by: java.util.concurrent.TimeoutException
    at java.util.concurrent.FutureTask.get(FutureTask.java:201)
    at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:130)
    ... 8 more


提问者:qq_马溪若玖号_0 2017-02-08 16:45

个回答

  • snail_88
    2017-02-17 14:50:29

    启动Ie浏览器的时候设置下安全性能

    DesiredCapabilities capability=DesiredCapabilities.internetExplorer();
    capability.setCapability(
                 InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_
    IGNORING_SECURITY_DOMAINS, true);
    WebDriver webdriver = new InternetExplorerDriver(capability);