-
public class WebDriverSettings extends BrowserSettingsA general chrome option set: Capabilities { acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: { chromedriverVersion: 2.44.609551 (5d576e9a44fe4c..., userDataDir: /tmp/.org.chromium.Chromium... }, cssSelectorsEnabled: true, databaseEnabled: false, goog:chromeOptions: {debuggerAddress: localhost:43001}, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: none, platform: LINUX, platformName: LINUX, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: ignore, unhandledPromptBehavior: ignore, version: 69.0.3497.100, webStorageEnabled: true }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classWebDriverSettings.Companion
-
Field Summary
Fields Modifier and Type Field Description private final DurationfetchTaskTimeoutprivate final DurationpollingDriverTimeoutprivate StringclientJsVersionprivate final ImmutableConfigconfprivate final DisplayModedisplayModeprivate final BooleanenableUrlBlockingprivate final BooleanforceNoSandboxprivate final BooleanisGUIprivate final BooleanisHeadlessprivate final BooleanisSPAprivate final BooleanisSupervisedprivate StringjsDirectoryprivate final BooleanjsInvadingEnabledprivate final BooleannoSandboxprivate StringpageLoadStrategyprivate final Array<String>propertyNamesprivate final StringscriptNameManglingCipherprivate final StringsupervisorProcessprivate final Collection<String>supervisorProcessArgs
-
Constructor Summary
Constructors Constructor Description WebDriverSettings(ImmutableConfig config)WebDriverSettings(Map<String, Object> parameters, String jsDirectory, ImmutableConfig conf)
-
Method Summary
Modifier and Type Method Description final DurationgetFetchTaskTimeout()final DurationgetPollingDriverTimeout()final StringgetClientJsVersion()final UnitsetClientJsVersion(String clientJsVersion)final ImmutableConfiggetConf()final DisplayModegetDisplayMode()final BooleangetEnableUrlBlocking()final BooleangetForceNoSandbox()final BooleangetIsGUI()final BooleangetIsHeadless()final BooleangetIsSPA()final BooleangetIsSupervised()final StringgetJsDirectory()final UnitsetJsDirectory(String jsDirectory)final BooleangetJsInvadingEnabled()final BooleangetNoSandbox()final StringgetPageLoadStrategy()final UnitsetPageLoadStrategy(String pageLoadStrategy)final Array<String>getPropertyNames()final StringgetScriptNameManglingCipher()final StringgetSupervisorProcess()final Collection<String>getSupervisorProcessArgs()final Map<String, Object>createGeneralOptions()final ChromeOptionscreateChromeOptions(Map<String, Object> generalOptions)-
Methods inherited from class ai.platon.pulsar.protocol.browser.driver.WebDriverSettings
formatViewPort, generatePredefinedJsConfig, generatePreloadJs, loadDefaultResource, nameMangling -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getFetchTaskTimeout
final Duration getFetchTaskTimeout()
-
getPollingDriverTimeout
final Duration getPollingDriverTimeout()
-
getClientJsVersion
final String getClientJsVersion()
-
setClientJsVersion
final Unit setClientJsVersion(String clientJsVersion)
-
getConf
final ImmutableConfig getConf()
-
getDisplayMode
final DisplayMode getDisplayMode()
-
getEnableUrlBlocking
final Boolean getEnableUrlBlocking()
-
getForceNoSandbox
final Boolean getForceNoSandbox()
-
getIsHeadless
final Boolean getIsHeadless()
-
getIsSupervised
final Boolean getIsSupervised()
-
getJsDirectory
final String getJsDirectory()
-
setJsDirectory
final Unit setJsDirectory(String jsDirectory)
-
getJsInvadingEnabled
final Boolean getJsInvadingEnabled()
-
getNoSandbox
final Boolean getNoSandbox()
-
getPageLoadStrategy
final String getPageLoadStrategy()
-
setPageLoadStrategy
final Unit setPageLoadStrategy(String pageLoadStrategy)
-
getPropertyNames
final Array<String> getPropertyNames()
-
getScriptNameManglingCipher
final String getScriptNameManglingCipher()
-
getSupervisorProcess
final String getSupervisorProcess()
-
getSupervisorProcessArgs
final Collection<String> getSupervisorProcessArgs()
-
createGeneralOptions
final Map<String, Object> createGeneralOptions()
-
createChromeOptions
final ChromeOptions createChromeOptions(Map<String, Object> generalOptions)
-
-
-
-