org.openqa.selenium.devtools.v130.console.Console Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenium-devtools-v130 Show documentation
Show all versions of selenium-devtools-v130 Show documentation
Selenium automates browsers. That's it! What you do with that power is entirely up to you.
The newest version!
package org.openqa.selenium.devtools.v130.console;
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;
/**
* This domain is deprecated - use Runtime or Log instead.
*/
@Deprecated()
public class Console {
/**
* Does nothing.
*/
public static Command clearMessages() {
LinkedHashMap params = new LinkedHashMap<>();
return new Command<>("Console.clearMessages", Map.copyOf(params));
}
/**
* Disables console domain, prevents further console messages from being reported to the client.
*/
public static Command disable() {
LinkedHashMap params = new LinkedHashMap<>();
return new Command<>("Console.disable", Map.copyOf(params));
}
/**
* Enables console domain, sends the messages collected so far to the client by means of the
* `messageAdded` notification.
*/
public static Command enable() {
LinkedHashMap params = new LinkedHashMap<>();
return new Command<>("Console.enable", Map.copyOf(params));
}
public static Event messageAdded() {
return new Event<>("Console.messageAdded", ConverterFunctions.map("message", org.openqa.selenium.devtools.v130.console.model.ConsoleMessage.class));
}
}