public interface ChromeDevToolsService extends ChromeDevTools, AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
EventListener |
addEventListener(String domainName,
String eventName,
EventHandler eventHandler,
Class<?> eventType)
Adds an event listener on a given event name belonging to some domain.
|
void |
close()
Closes the dev tools service.
|
<T> T |
invoke(String returnProperty,
Class<T> clazz,
Class<?>[] returnTypeClasses,
MethodInvocation methodInvocation)
Invokes a dev tools method.
|
<T> T |
invoke(String returnProperty,
Class<T> clazz,
MethodInvocation methodInvocation)
Deprecated.
|
boolean |
isClosed()
Returns true if devtools is closed.
|
void |
removeEventListener(EventListener eventListener)
Removes an event listener.
|
void |
waitUntilClosed()
Waits until devtools is closed.
|
getAccessibility, getAnimation, getApplicationCache, getAudits, getBackgroundService, getBrowser, getCacheStorage, getCast, getConsole, getCSS, getDatabase, getDebugger, getDeviceOrientation, getDOM, getDOMDebugger, getDOMSnapshot, getDOMStorage, getEmulation, getFetch, getHeadlessExperimental, getHeapProfiler, getIndexedDB, getInput, getInspector, getIO, getLayerTree, getLog, getMedia, getMemory, getNetwork, getOverlay, getPage, getPerformance, getProfiler, getRuntime, getSchema, getSecurity, getServiceWorker, getStorage, getSystemInfo, getTarget, getTethering, getTracing, getWebAudio, getWebAuthn@Deprecated <T> T invoke(String returnProperty, Class<T> clazz, MethodInvocation methodInvocation)
invoke(String, Class, Class[], MethodInvocation)invoke(String, Class, Class[], MethodInvocation).
This method is deprecated and might be removed in future.
T - Type of a return class.returnProperty - Return property.clazz - Return class type.methodInvocation - Method invocation definition.ChromeDevToolsInvocationException - If invocation fails.<T> T invoke(String returnProperty, Class<T> clazz, Class<?>[] returnTypeClasses, MethodInvocation methodInvocation)
T - Type of a return class.returnProperty - Return property.clazz - Return class type.returnTypeClasses - List of class to which returnType is parametrized with.methodInvocation - Method invocation definition.ChromeDevToolsInvocationException - If invocation fails.void close()
close in interface AutoCloseableboolean isClosed()
void waitUntilClosed()
EventListener addEventListener(String domainName, String eventName, EventHandler eventHandler, Class<?> eventType)
domainName - Domain.eventName - Event.eventHandler - Event handler.eventType - Event type.void removeEventListener(EventListener eventListener)
eventListener - Event listener.Copyright © 2020. All rights reserved.