public class Worker extends EventEmitter
| 构造器和说明 |
|---|
Worker(CDPSession client,
String url,
ConsoleAPI consoleAPICalled,
Consumer<ExceptionDetails> exceptionThrown) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
evaluate(String pageFunction,
PageEvaluateType type,
Object... args) |
Object |
evaluateHandle(String pageFunction,
PageEvaluateType type,
Object... args) |
ExecutionContext |
executionContext() |
protected void |
executionContextCallback(ExecutionContext executionContext) |
JSHandle |
jsHandleFactory(RemoteObject remoteObject) |
void |
setContext(ExecutionContext context) |
String |
url() |
addListener, addListener, emit, getListenerCount, removeListenerpublic Worker(CDPSession client, String url, ConsoleAPI consoleAPICalled, Consumer<ExceptionDetails> exceptionThrown)
public JSHandle jsHandleFactory(RemoteObject remoteObject)
protected void executionContextCallback(ExecutionContext executionContext)
public void setContext(ExecutionContext context)
public String url()
public ExecutionContext executionContext() throws InterruptedException
public Object evaluate(String pageFunction, PageEvaluateType type, Object... args) throws InterruptedException
public Object evaluateHandle(String pageFunction, PageEvaluateType type, Object... args) throws InterruptedException
Copyright © 2020. All rights reserved.