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

来源:6-1 常见浏览器的启动

qq_马溪若玖号_0

2017-02-08 16:45

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


写回答 关注

1回答

  • 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);

自动化测试之selenium工具使用

web自动化测试selenium从0基础开始。

51929 学习 · 192 问题

查看课程

相似问题