public class IsolatedWorld extends Realm
taskManager, timeoutSettings| 构造器和说明 |
|---|
IsolatedWorld(CdpFrame frame,
CdpWebWorker webWorker,
TimeoutSettings timeoutSettings) |
| 限定符和类型 | 方法和说明 |
|---|---|
JSHandle |
adoptBackendNode(int backendNodeId) |
<T extends JSHandle> |
adoptHandle(T handle) |
CDPSession |
client() |
ExecutionContext |
context() |
JSHandle |
createJSHandle(RemoteObject remoteObject) |
void |
dispose() |
IsolatedWorldEmitter |
emitter() |
ChromeEnvironment |
environment() |
Object |
evaluate(String pptrFunction,
EvaluateType type,
List<Object> args) |
JSHandle |
evaluateHandle(String pptrFunction) |
JSHandle |
evaluateHandle(String pptrFunction,
List<Object> args) |
CdpFrame |
getFrame() |
boolean |
hasContext() |
void |
setContext(ExecutionContext context) |
IsolatedWorld |
toIsolatedWorld() |
<T extends JSHandle> |
transferHandle(T handle) |
createHandle, disposed, evaluate, evaluate, waitForFunctionpublic IsolatedWorld(CdpFrame frame, CdpWebWorker webWorker, TimeoutSettings timeoutSettings)
public ChromeEnvironment environment()
environment 在类中 Realmpublic CDPSession client()
public IsolatedWorldEmitter emitter()
public IsolatedWorld toIsolatedWorld()
toIsolatedWorld 在类中 Realmpublic void setContext(ExecutionContext context)
public boolean hasContext()
public ExecutionContext context()
public JSHandle evaluateHandle(String pptrFunction) throws com.fasterxml.jackson.core.JsonProcessingException, EvaluateException
com.fasterxml.jackson.core.JsonProcessingExceptionEvaluateExceptionpublic JSHandle evaluateHandle(String pptrFunction, List<Object> args) throws com.fasterxml.jackson.core.JsonProcessingException
evaluateHandle 在类中 Realmcom.fasterxml.jackson.core.JsonProcessingExceptionpublic Object evaluate(String pptrFunction, EvaluateType type, List<Object> args) throws com.fasterxml.jackson.core.JsonProcessingException
public JSHandle adoptBackendNode(int backendNodeId) throws com.fasterxml.jackson.core.JsonProcessingException
adoptBackendNode 在类中 Realmcom.fasterxml.jackson.core.JsonProcessingExceptionpublic <T extends JSHandle> T adoptHandle(T handle) throws com.fasterxml.jackson.core.JsonProcessingException
adoptHandle 在类中 Realmcom.fasterxml.jackson.core.JsonProcessingExceptionpublic <T extends JSHandle> T transferHandle(T handle) throws com.fasterxml.jackson.core.JsonProcessingException
transferHandle 在类中 Realmcom.fasterxml.jackson.core.JsonProcessingExceptionpublic JSHandle createJSHandle(RemoteObject remoteObject)
public CdpFrame getFrame()
Copyright © 2020–2025. All rights reserved.