| 程序包 | 说明 |
|---|---|
| com.ruiyun.jvppeteer.core.browser | |
| com.ruiyun.jvppeteer.transport |
| 限定符和类型 | 方法和说明 |
|---|---|
Connection |
BrowserRunner.getConnection() |
Connection |
BrowserContext.getConnection() |
protected Connection |
Browser.getConnection() |
Connection |
BrowserRunner.setUpConnection(boolean usePipe,
int timeout,
int slowMo,
boolean dumpio)
连接上浏览器
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Browser |
Browser.create(Connection connection,
List<String> contextIds,
boolean ignoreHTTPSErrors,
Viewport viewport,
Process process,
Function<Object,Object> closeCallback)
创建一个浏览器
|
void |
BrowserContext.setConnection(Connection connection) |
| 构造器和说明 |
|---|
Browser(Connection connection,
List<String> contextIds,
boolean ignoreHTTPSErrors,
Viewport defaultViewport,
Process process,
Function<Object,Object> closeCallback) |
BrowserContext(Connection connection,
Browser browser,
String contextId) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Connection |
Connection.fromSession(CDPSession client)
从
CDPSession中拿到对应的Connection |
Connection |
CDPSession.getConnection() |
| 构造器和说明 |
|---|
CDPSession(Connection connection,
String targetType,
String sessionId) |
Copyright © 2020. All rights reserved.