The SeleniumDownloader should call the setRawText

pull/52/head
d0ngw 11 years ago
parent 5d9fda0614
commit a5a9b141b3

3
.gitignore vendored

@ -1,4 +1,5 @@
target/*
target
*.iml
out/
.idea

@ -84,6 +84,7 @@ public class SeleniumDownloader implements Downloader, Closeable {
WebElement webElement = webDriver.findElement(By.xpath("/html"));
String content = webElement.getAttribute("outerHTML");
Page page = new Page();
page.setRawText(content);
page.setHtml(new Html(UrlUtils.fixAllRelativeHrefs(content, request.getUrl())));
page.setUrl(new PlainText(request.getUrl()));
page.setRequest(request);

Loading…
Cancel
Save