这是启动phantomjs驱动程序的代码。但在第一线获得例外。帮助赞赏!!
driver=new PhantomJSDriver();
wait=new WebDriverWait(driver,30);
driver.get(url);
driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);
driver.manage().window().maximize();
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id=\"gwt-debug-submit_button\"]")));