Interface Web
- All Superinterfaces:
org.aeonbits.owner.Config, EngineProperties<Web>, Serializable
@Sources({"system:properties","file:src/main/resources/properties/WebCapabilities.properties","file:src/main/resources/properties/default/WebCapabilities.properties","classpath:WebCapabilities.properties"})
public interface Web
extends EngineProperties<Web>
Configuration properties interface for web browser capabilities in the SHAFT framework.
Controls target browser type, headless mode, window size, page load strategy, and mobile emulation.
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.
-
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
-
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
-