Interface Web
- All Superinterfaces:
org.aeonbits.owner.Config, EngineProperties<Web>, Serializable
Use set() to override values programmatically:
SHAFT.Properties.web.set().targetBrowserName("firefox").headlessExecution(true);
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.aeonbits.owner.Config
org.aeonbits.owner.Config.ConverterClass, org.aeonbits.owner.Config.DecryptorClass, org.aeonbits.owner.Config.DefaultValue, org.aeonbits.owner.Config.DisableableFeature, org.aeonbits.owner.Config.DisableFeature, org.aeonbits.owner.Config.EncryptedValue, org.aeonbits.owner.Config.HotReload, org.aeonbits.owner.Config.HotReloadType, org.aeonbits.owner.Config.Key, org.aeonbits.owner.Config.LoadPolicy, org.aeonbits.owner.Config.LoadType, org.aeonbits.owner.Config.PreprocessorClasses, org.aeonbits.owner.Config.Separator, org.aeonbits.owner.Config.Sources, org.aeonbits.owner.Config.TokenizerClass -
Method Summary
Modifier and TypeMethodDescriptionbaseURL()intintbooleanbooleanbooleanbooleanintbooleandoubleintdefault Web.SetPropertyset()Returns a fluentEngineProperties.SetPropertybuilder that allows programmatic override of individual configuration properties at runtime.Path to a storage-state JSON file (the schema produced byBrowserActions.saveStorageState) that a freshly-initialized driver should automatically load, restoring cookies and, when possible,localStorage/sessionStorage.
-
Method Details
-
targetBrowserName
-
forceBrowserDownload
@Key("forceBrowserDownload") @DefaultValue("false") boolean forceBrowserDownload() -
headlessExecution
@Key("headlessExecution") @DefaultValue("false") boolean headlessExecution() -
incognitoMode
@Key("incognitoMode") @DefaultValue("false") boolean incognitoMode() -
isMobileEmulation
@Key("isMobileEmulation") @DefaultValue("false") boolean isMobileEmulation() -
mobileEmulationIsCustomDevice
@Key("mobileEmulation.isCustomDevice") @DefaultValue("false") boolean mobileEmulationIsCustomDevice() -
mobileEmulationDeviceName
-
mobileEmulationWidth
@Key("mobileEmulation.width") @DefaultValue("") int mobileEmulationWidth() -
mobileEmulationHeight
@Key("mobileEmulation.height") @DefaultValue("") int mobileEmulationHeight() -
mobileEmulationPixelRatio
@Key("mobileEmulation.pixelRatio") @DefaultValue("1.0") double mobileEmulationPixelRatio() -
mobileEmulationUserAgent
-
baseURL
-
browserWindowWidth
@Key("browserWindowWidth") @DefaultValue("1920") int browserWindowWidth() -
browserWindowHeight
@Key("browserWindowHeight") @DefaultValue("1080") int browserWindowHeight() -
pageLoadStrategy
-
readinessState
-
storageStatePath
Path to a storage-state JSON file (the schema produced byBrowserActions.saveStorageState) that a freshly-initialized driver should automatically load, restoring cookies and, when possible,localStorage/sessionStorage.At driver-init time there is no page loaded yet, so cookies cannot simply be added for an arbitrary domain. SHAFT reads the
originrecorded inside the storage-state file (falling back tobaseURL()when the file has none) and navigates the fresh driver there first, mirroring howloadStorageStaterecommends navigating before loading. Origin-scopedlocalStorage/sessionStorageis therefore restored correctly only when an origin could be resolved; if neither is available, only cookies that the driver accepts without a page navigation are restored. A failure to load (missing file, unreachable origin, etc.) is logged as a warning and does not fail driver initialization.Default is blank, meaning the feature is disabled.
-
set
Description copied from interface:EnginePropertiesReturns a fluentEngineProperties.SetPropertybuilder that allows programmatic override of individual configuration properties at runtime.- Specified by:
setin interfaceEngineProperties<Web>- Returns:
- a new
EngineProperties.SetPropertyinstance for chaining property overrides
-