All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openqa.selenium.devtools.v123.preload.Preload Maven / Gradle / Ivy

Go to download

Selenium automates browsers. That's it! What you do with that power is entirely up to you.

There is a newer version: 4.21.0
Show newest version
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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy