org.openqa.selenium.devtools.v123.preload.Preload Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenium-devtools-v123 Show documentation
Show all versions of selenium-devtools-v123 Show documentation
Selenium automates browsers. That's it! What you do with that power is entirely up to you.
package org.openqa.selenium.devtools.v123.preload;
import org.openqa.selenium.Beta;
import org.openqa.selenium.devtools.Command;
import org.openqa.selenium.devtools.Event;
import org.openqa.selenium.devtools.ConverterFunctions;
import java.util.Map;
import java.util.LinkedHashMap;
import org.openqa.selenium.json.JsonInput;
@Beta()
public class Preload {
public static Command enable() {
LinkedHashMap params = new LinkedHashMap<>();
return new Command<>("Preload.enable", Map.copyOf(params));
}
public static Command disable() {
LinkedHashMap params = new LinkedHashMap<>();
return new Command<>("Preload.disable", Map.copyOf(params));
}
public static Event ruleSetUpdated() {
return new Event<>("Preload.ruleSetUpdated", ConverterFunctions.map("ruleSet", org.openqa.selenium.devtools.v123.preload.model.RuleSet.class));
}
public static Event ruleSetRemoved() {
return new Event<>("Preload.ruleSetRemoved", ConverterFunctions.map("id", org.openqa.selenium.devtools.v123.preload.model.RuleSetId.class));
}
public static Event preloadEnabledStateUpdated() {
return new Event<>("Preload.preloadEnabledStateUpdated", input -> input.read(org.openqa.selenium.devtools.v123.preload.model.PreloadEnabledStateUpdated.class));
}
public static Event prefetchStatusUpdated() {
return new Event<>("Preload.prefetchStatusUpdated", input -> input.read(org.openqa.selenium.devtools.v123.preload.model.PrefetchStatusUpdated.class));
}
public static Event prerenderStatusUpdated() {
return new Event<>("Preload.prerenderStatusUpdated", input -> input.read(org.openqa.selenium.devtools.v123.preload.model.PrerenderStatusUpdated.class));
}
public static Event preloadingAttemptSourcesUpdated() {
return new Event<>("Preload.preloadingAttemptSourcesUpdated", input -> input.read(org.openqa.selenium.devtools.v123.preload.model.PreloadingAttemptSourcesUpdated.class));
}
}