public abstract class BrowserLauncher extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
cacheDir |
protected String |
executablePath |
protected static org.slf4j.Logger |
LOGGER |
protected Product |
product |
| 构造器和说明 |
|---|
BrowserLauncher(String cacheDir,
Product product) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
computeExecutablePath(String preferredExecutablePath,
String preferredRevision)
解析可执行的chrome路径
|
Browser |
connect(ConnectOptions options) |
protected Browser |
createBrowser(LaunchOptions options,
List<String> chromeArguments,
String temporaryUserDataDir,
boolean usePipe,
List<String> defaultArgs,
String customizedUserDataDir) |
abstract List<String> |
defaultArgs(LaunchOptions options) |
String |
executablePath() |
abstract Browser |
launch(LaunchOptions options) |
protected static final org.slf4j.Logger LOGGER
protected Product product
protected String cacheDir
protected String executablePath
public abstract Browser launch(LaunchOptions options) throws IOException
IOExceptionpublic abstract List<String> defaultArgs(LaunchOptions options)
public String computeExecutablePath(String preferredExecutablePath, String preferredRevision) throws IOException
preferredExecutablePath - 指定的可执行路径IOExceptionprotected Browser createBrowser(LaunchOptions options, List<String> chromeArguments, String temporaryUserDataDir, boolean usePipe, List<String> defaultArgs, String customizedUserDataDir)
public String executablePath()
public Browser connect(ConnectOptions options) throws Exception
ExceptionCopyright © 2020–2025. All rights reserved.