org.openqa.selenium.devtools.v122.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-v122 Show documentation
Show all versions of selenium-devtools-v122 Show documentation
Selenium automates browsers. That's it! What you do with that power is entirely up to you.
package org.openqa.selenium.devtools.v122.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.v122.preload.model.RuleSet.class));
}
public static Event ruleSetRemoved() {
return new Event<>("Preload.ruleSetRemoved", ConverterFunctions.map("id", org.openqa.selenium.devtools.v122.preload.model.RuleSetId.class));
}
public static Event preloadEnabledStateUpdated() {
return new Event<>("Preload.preloadEnabledStateUpdated", input -> input.read(org.openqa.selenium.devtools.v122.preload.model.PreloadEnabledStateUpdated.class));
}
public static Event prefetchStatusUpdated() {
return new Event<>("Preload.prefetchStatusUpdated", input -> input.read(org.openqa.selenium.devtools.v122.preload.model.PrefetchStatusUpdated.class));
}
public static Event prerenderStatusUpdated() {
return new Event<>("Preload.prerenderStatusUpdated", input -> input.read(org.openqa.selenium.devtools.v122.preload.model.PrerenderStatusUpdated.class));
}
public static Event preloadingAttemptSourcesUpdated() {
return new Event<>("Preload.preloadingAttemptSourcesUpdated", input -> input.read(org.openqa.selenium.devtools.v122.preload.model.PreloadingAttemptSourcesUpdated.class));
}
}