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

org.openqa.selenium.devtools.v116.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.14.1
Show newest version
package org.openqa.selenium.devtools.v116.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.v116.preload.model.RuleSet.class));
    }

    public static Event ruleSetRemoved() {
        return new Event<>("Preload.ruleSetRemoved", ConverterFunctions.map("id", org.openqa.selenium.devtools.v116.preload.model.RuleSetId.class));
    }

    public static Event prerenderAttemptCompleted() {
        return new Event<>("Preload.prerenderAttemptCompleted", input -> input.read(org.openqa.selenium.devtools.v116.preload.model.PrerenderAttemptCompleted.class));
    }

    public static Event preloadEnabledStateUpdated() {
        return new Event<>("Preload.preloadEnabledStateUpdated", input -> input.read(org.openqa.selenium.devtools.v116.preload.model.PreloadEnabledStateUpdated.class));
    }

    public static Event prefetchStatusUpdated() {
        return new Event<>("Preload.prefetchStatusUpdated", input -> input.read(org.openqa.selenium.devtools.v116.preload.model.PrefetchStatusUpdated.class));
    }

    public static Event prerenderStatusUpdated() {
        return new Event<>("Preload.prerenderStatusUpdated", input -> input.read(org.openqa.selenium.devtools.v116.preload.model.PrerenderStatusUpdated.class));
    }

    public static Event preloadingAttemptSourcesUpdated() {
        return new Event<>("Preload.preloadingAttemptSourcesUpdated", input -> input.read(org.openqa.selenium.devtools.v116.preload.model.PreloadingAttemptSourcesUpdated.class));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy