org.openqa.selenium.devtools.v112.eventbreakpoints.EventBreakpoints Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenium-devtools-v112 Show documentation
Show all versions of selenium-devtools-v112 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.v112.eventbreakpoints;
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;
/**
* EventBreakpoints permits setting breakpoints on particular operations and
* events in targets that run JavaScript but do not have a DOM.
* JavaScript execution will stop on these operations as if there was a regular
* breakpoint set.
*/
@Beta()
public class EventBreakpoints {
/**
* Sets breakpoint on particular native event.
*/
public static Command setInstrumentationBreakpoint(java.lang.String eventName) {
java.util.Objects.requireNonNull(eventName, "eventName is required");
ImmutableMap.Builder params = ImmutableMap.builder();
params.put("eventName", eventName);
return new Command<>("EventBreakpoints.setInstrumentationBreakpoint", params.build());
}
/**
* Removes breakpoint on particular native event.
*/
public static Command removeInstrumentationBreakpoint(java.lang.String eventName) {
java.util.Objects.requireNonNull(eventName, "eventName is required");
ImmutableMap.Builder params = ImmutableMap.builder();
params.put("eventName", eventName);
return new Command<>("EventBreakpoints.removeInstrumentationBreakpoint", params.build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy