org.openqa.selenium.devtools.v118.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-v118 Show documentation
Show all versions of selenium-devtools-v118 Show documentation
Selenium automates browsers. That's it! What you do with that power is entirely up to you.
package org.openqa.selenium.devtools.v118.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 com.google.common.collect.ImmutableMap;
import org.openqa.selenium.json.JsonInput;
@Beta()
public class Preload {
public static Command enable() {
ImmutableMap.Builder params = ImmutableMap.builder();
return new Command<>("Preload.enable", params.build());
}
public static Command disable() {
ImmutableMap.Builder params = ImmutableMap.builder();
return new Command<>("Preload.disable", params.build());
}
public static Event ruleSetUpdated() {
return new Event<>("Preload.ruleSetUpdated", ConverterFunctions.map("ruleSet", org.openqa.selenium.devtools.v118.preload.model.RuleSet.class));
}
public static Event ruleSetRemoved() {
return new Event<>("Preload.ruleSetRemoved", ConverterFunctions.map("id", org.openqa.selenium.devtools.v118.preload.model.RuleSetId.class));
}
public static Event prerenderAttemptCompleted() {
return new Event<>("Preload.prerenderAttemptCompleted", input -> input.read(org.openqa.selenium.devtools.v118.preload.model.PrerenderAttemptCompleted.class));
}
public static Event preloadEnabledStateUpdated() {
return new Event<>("Preload.preloadEnabledStateUpdated", input -> input.read(org.openqa.selenium.devtools.v118.preload.model.PreloadEnabledStateUpdated.class));
}
public static Event prefetchStatusUpdated() {
return new Event<>("Preload.prefetchStatusUpdated", input -> input.read(org.openqa.selenium.devtools.v118.preload.model.PrefetchStatusUpdated.class));
}
public static Event prerenderStatusUpdated() {
return new Event<>("Preload.prerenderStatusUpdated", input -> input.read(org.openqa.selenium.devtools.v118.preload.model.PrerenderStatusUpdated.class));
}
public static Event preloadingAttemptSourcesUpdated() {
return new Event<>("Preload.preloadingAttemptSourcesUpdated", input -> input.read(org.openqa.selenium.devtools.v118.preload.model.PreloadingAttemptSourcesUpdated.class));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy