org.openqa.selenium.devtools.v88.inspector.Inspector Maven / Gradle / Ivy
package org.openqa.selenium.devtools.v88.inspector;
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 Inspector {
/**
* Disables inspector domain notifications.
*/
public static Command disable() {
ImmutableMap.Builder params = ImmutableMap.builder();
return new Command<>("Inspector.disable", params.build());
}
/**
* Enables inspector domain notifications.
*/
public static Command enable() {
ImmutableMap.Builder params = ImmutableMap.builder();
return new Command<>("Inspector.enable", params.build());
}
public static Event detached() {
return new Event<>("Inspector.detached", ConverterFunctions.map("reason", java.lang.String.class));
}
public static Event targetCrashed() {
return new Event<>("Inspector.targetCrashed", input -> null);
}
public static Event targetReloadedAfterCrash() {
return new Event<>("Inspector.targetReloadedAfterCrash", input -> null);
}
}