private EmbeddedBrowser newPhantomJSDriver(ImmutableSortedSet<String> filterAttributes,
long crawlWaitReload, long crawlWaitEvent) {
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("takesScreenshot", true);
PhantomJSDriver phantomJsDriver = new PhantomJSDriver(caps);
return WebDriverBackedEmbeddedBrowser.withDriver(phantomJsDriver, filterAttributes,
crawlWaitEvent, crawlWaitReload);
}