-
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 }
-
-
Field Summary
Fields Modifier and Type Field Description private StringclientJsVersionprivate final ImmutableConfigconfprivate final DisplayModedisplayModeprivate final BooleaneagerAllocateTabsprivate final BooleanenableUrlBlockingprivate final BooleanimagesEnabledprivate final BooleanisGUIprivate final BooleanisHeadlessprivate final BooleanisSupervisedprivate StringjsDirectoryprivate final BooleanjsInvadingEnabledprivate StringpageLoadStrategyprivate final Array<String>propertyNamesprivate final Map<String, String>scriptsprivate final StringsupervisorProcessprivate final Collection<String>supervisorProcessArgsprivate final List<String>userAgentsprivate final PathuserDataDir
-
Constructor Summary
Constructors Constructor Description WebDriverSettings(ImmutableConfig immutableConfig)WebDriverSettings(Map<String, Object> parameters, String jsDirectory, ImmutableConfig immutableConfig)
-
Method Summary
-
Methods inherited from class ai.platon.pulsar.protocol.browser.driver.WebDriverSettings
buildChromeUserAgent, formatViewPort, generateUserAgents, parseJs, parseLibJs, randomUserAgent -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getClientJsVersion
final String getClientJsVersion()
-
setClientJsVersion
final Unit setClientJsVersion(String clientJsVersion)
-
getConf
final ImmutableConfig getConf()
-
getDisplayMode
final DisplayMode getDisplayMode()
-
getEagerAllocateTabs
final Boolean getEagerAllocateTabs()
-
getEnableUrlBlocking
final Boolean getEnableUrlBlocking()
-
getImagesEnabled
final Boolean getImagesEnabled()
-
getIsHeadless
final Boolean getIsHeadless()
-
getIsSupervised
final Boolean getIsSupervised()
-
getJsDirectory
final String getJsDirectory()
-
setJsDirectory
final Unit setJsDirectory(String jsDirectory)
-
getJsInvadingEnabled
final Boolean getJsInvadingEnabled()
-
getPageLoadStrategy
final String getPageLoadStrategy()
-
setPageLoadStrategy
final Unit setPageLoadStrategy(String pageLoadStrategy)
-
getPropertyNames
final Array<String> getPropertyNames()
-
getScripts
final Map<String, String> getScripts()
-
getSupervisorProcess
final String getSupervisorProcess()
-
getSupervisorProcessArgs
final Collection<String> getSupervisorProcessArgs()
-
getUserAgents
final List<String> getUserAgents()
-
getUserDataDir
final Path getUserDataDir()
-
createGeneralOptions
final DesiredCapabilities createGeneralOptions()
-
createChromeOptions
final ChromeOptions createChromeOptions(DesiredCapabilities generalOptions)
-
createChromeDevtoolsOptions
final ChromeDevtoolsOptions createChromeDevtoolsOptions(DesiredCapabilities generalOptions)
-
-
-
-