public class BrowserRunner extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
BrowserRunner.RuntimeShutdownHookRegistry
Runtime based shutdown hook.
|
static interface |
BrowserRunner.ShutdownHookRegistry
注册钩子
|
| 构造器和说明 |
|---|
BrowserRunner(String executablePath,
List<String> processArguments,
String tempDirectory,
Product product,
Protocol protocol,
String customizedUserDataDir) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
closeAllBrowser() |
void |
closeBrowser()
关闭浏览器
|
void |
destroy()
kill 掉浏览器进程
|
void |
destroyProcess(Process process) |
Process |
getProcess() |
String |
getTempDirectory() |
boolean |
isClosed() |
void |
setConnection(Connection connection) |
void |
setPid(String pid) |
void |
start()
启动浏览器进程
Start your browser
|
public void start()
throws IOException
IOException - io异常public void destroy()
public void destroyProcess(Process process)
public Process getProcess()
public void closeAllBrowser()
public void closeBrowser()
public void setPid(String pid)
public boolean isClosed()
public String getTempDirectory()
public void setConnection(Connection connection)
Copyright © 2020–2025. All rights reserved.