Class WebDriverSettings
-
- All Implemented Interfaces:
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 final ImmutableConfigconfprivate final ScriptConfuserconfuserprivate final DisplayModedisplayModeprivate final BooleanforceNoSandboxprivate final InteractSettingsinteractSettingsprivate final BooleanisGUIprivate final BooleanisHeadlessprivate final BooleanisSPAprivate final BooleanisStartupScriptEnabledprivate final BooleanisSupervisedprivate final BooleanisUserAgentOverridingEnabledprivate final BooleannoSandboxprivate StringpageLoadStrategyprivate final FloatresourceBlockProbabilityprivate final ScriptLoaderscriptLoaderprivate final StringsupervisorProcessprivate final Collection<String>supervisorProcessArgsprivate final UserAgentuserAgentpublic final static WebDriverSettings.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description WebDriverSettings(ImmutableConfig conf)
-
Method Summary
Modifier and Type Method Description final DurationgetFetchTaskTimeout()final DurationgetPollingDriverTimeout()StringformatViewPort(String delimiter)Map<String, Object>createGeneralOptions()ChromeOptionscreateChromeOptions(Map<String, Object> generalOptions)-
Methods inherited from class ai.platon.pulsar.browser.common.BrowserSettings
getConf, getConfuser, getDisplayMode, getForceNoSandbox, getInteractSettings, getNoSandbox, getPageLoadStrategy, getResourceBlockProbability, getScriptLoader, getSupervisorProcess, getSupervisorProcessArgs, getUserAgent, isGUI, isHeadless, isSPA, isStartupScriptEnabled, isSupervised, isUserAgentOverridingEnabled, setPageLoadStrategy -
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()
-
formatViewPort
String formatViewPort(String delimiter)
-
createGeneralOptions
Map<String, Object> createGeneralOptions()
-
createChromeOptions
ChromeOptions createChromeOptions(Map<String, Object> generalOptions)
-
-
-
-