硒webdriver的代码是:Internet Explorer未启动我的硒的webdriver代码
File file = new File("D:\\Polycom_Space\\WebdriversIEDriverServer_x64_2.53.1\\IEDriverServer.exe");
System.setProperty("webdriver.ie.driver",file.getAbsolutePath());
capabilities = DesiredCapabilities.internetExplorer();
capabilities.setCapability(CapabilityType.BROWSER_NAME, "IE");
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
capabilities.setCapability("requireWindowFocus", true);
driver = new RemoteWebDriver(host, capabilities);
**//grid node configuration is---**
cd Polycom_Space\Java Libraries Server
java -jar selenium-server-standalone-2.53.1.jar -role webDriver -hub http://localhost:4242/grid/register -port 5557 -Dwebdriver.ie.driver=D:\Polycom_Space\Webdrivers
\IEDriverServer_x64_2.53.1\IEDriverServer.exe -browser browserName="internet explorer" -maxInstances=4 -maxSession 1
的例外是:
org.testng.internal.thread.ThreadExecutionException:组织.testng.internal.InvokeMethodRunnable $ TestNGRuntimeException:java.lang.RuntimeException:转发新会话时发生错误找不到:Capabilities [{ensureCleanSession = true,acceptSslC erts = true,requireWindowFocus = true,browserName = IE,version =,platform = WINDOWS}]
请帮助我运行网格上的Internet Explorer –