selenium启动IE报错:页面提示:This is the initial start page for the WebDriver server.

1. 换32位驱动;
2. 启动时,安全设置
  1.                 DesiredCapabilities capabilities = DesiredCapabilities
  2.                                 .internetExplorer();
  3.                 capabilities
  4.                                 .setCapability(
  5.                                                 InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,
  6.                                                 true);
  7.                 capabilities.setCapability("ignoreProtectedModeSettings", true);
  8.                 WebDriver driver = new InternetExplorerDriver(capabilities);
复制代码

你可能感兴趣的:(selenium启动IE报错:页面提示:This is the initial start page for the WebDriver server.)