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);
  • Method Details

    • targetBrowserName

      @Key("targetBrowserName") @DefaultValue("chrome") String 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

      @Key("mobileEmulation.deviceName") @DefaultValue("") String 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

      @Key("mobileEmulation.userAgent") @DefaultValue("") String mobileEmulationUserAgent()
    • baseURL

      @Key("baseURL") @DefaultValue("") String baseURL()
    • browserWindowWidth

      @Key("browserWindowWidth") @DefaultValue("1920") int browserWindowWidth()
    • browserWindowHeight

      @Key("browserWindowHeight") @DefaultValue("1080") int browserWindowHeight()
    • pageLoadStrategy

      @Key("pageLoadStrategy") @DefaultValue("none") String pageLoadStrategy()
    • readinessState

      @Key("readinessState") @DefaultValue("none") String readinessState()
    • set

      default Web.SetProperty set()
      Description copied from interface: EngineProperties
      Returns a fluent EngineProperties.SetProperty builder that allows programmatic override of individual configuration properties at runtime.
      Specified by:
      set in interface EngineProperties<Web>
      Returns:
      a new EngineProperties.SetProperty instance for chaining property overrides