int webRootPathIndex = getThisClassFileURL().getPath().indexOf("/WEB-INF"); String webRootPath = getThisClassFileURL().getPath().substring(0, webRootPathIndex); File temp = new File(webRootPath + "/" + getTemperaryDumpHtmlFileName()); FileOutputStream out = null; try out.write(tester.getServletResponse().getDocument().getBytes(getHtmlEncoding())); out.flush(); throw convertoUnexpect(e); throw convertoUnexpect(e); throw convertoUnexpect(e); if (!new File(getBrowserPath()).exists()) throw new IllegalStateException("No browser found at " + getBrowserPath());
int webRootPathIndex = getThisClassFileURL().getPath().indexOf("/WEB-INF"); String webRootPath = getThisClassFileURL().getPath().substring(0, webRootPathIndex); File temp = new File(webRootPath + "/" + getTemperaryDumpHtmlFileName()); FileOutputStream out = null; try out.write(tester.getServletResponse().getDocument().getBytes(getHtmlEncoding())); out.flush(); throw convertoUnexpect(e); throw convertoUnexpect(e); throw convertoUnexpect(e); if (!new File(getBrowserPath()).exists()) throw new IllegalStateException("No browser found at " + getBrowserPath());