Skip to content

Commit 07588ef

Browse files
committed
make rendering eager
1 parent 14db3ba commit 07588ef

File tree

1 file changed

+3
-5
lines changed
  • sparkler-core/sparkler-plugins/fetcher-chrome/src/main/java/edu/usc/irds/sparkler/plugin

1 file changed

+3
-5
lines changed

sparkler-core/sparkler-plugins/fetcher-chrome/src/main/java/edu/usc/irds/sparkler/plugin/FetcherChrome.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
import org.json.simple.JSONObject;
3131
import org.json.simple.parser.JSONParser;
3232
import org.json.simple.parser.ParseException;
33-
import org.openqa.selenium.By;
34-
import org.openqa.selenium.WebDriver;
35-
import org.openqa.selenium.WebElement;
33+
import org.openqa.selenium.*;
34+
import org.openqa.selenium.Proxy;
3635
import org.openqa.selenium.chrome.ChromeDriver;
3736
import org.openqa.selenium.chrome.ChromeOptions;
3837
import org.openqa.selenium.remote.CapabilityType;
@@ -60,8 +59,6 @@
6059
import com.browserup.bup.util.HttpMessageInfo;
6160
import io.netty.handler.codec.http.HttpResponse;
6261

63-
import org.openqa.selenium.Proxy;
64-
6562
@Extension
6663
public class FetcherChrome extends FetcherDefault {
6764

@@ -146,6 +143,7 @@ public void filterResponse(HttpResponse response, HttpMessageContents contents,
146143
chromeOptions.addArguments("--disable-extensions");
147144
chromeOptions.addArguments("--ignore-certificate-errors");
148145
chromeOptions.addArguments("--incognito");
146+
chromeOptions.setPageLoadStrategy(PageLoadStrategy.EAGER);
149147
capabilities.setCapability(CapabilityType.PROXY, seleniumProxy);
150148
capabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);
151149

0 commit comments

Comments
 (0)