Enum PlayWrightConfigurationProperties

java.lang.Object
java.lang.Enum<PlayWrightConfigurationProperties>
net.serenitybdd.screenplay.playwright.PlayWrightConfigurationProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PlayWrightConfigurationProperties>, java.lang.constant.Constable

public enum PlayWrightConfigurationProperties
extends java.lang.Enum<PlayWrightConfigurationProperties>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    ARGS
    Additional arguments to pass to the browser instance (see https://peter.sh/experiments/chromium-command-line-switches/).
    BROWSER_CHANNEL
    Browser distribution channel.
    BROWSER_TYPE  
    CHROMIUM_SANDBOX
    Enable Chromium sandboxing.
    DEVTOOLS
    **Chromium-only** Whether to auto-open a Developer Tools panel for each tab.
    DOWNLOADS_PATH
    If specified, accepted downloads are downloaded into this directory.
    ENV
    Specify environment variables that will be visible to the browser.
    EXECUTABLE_PATH
    Path to a browser executable to run instead of the bundled one.
    HANDLE_SIGHUP
    Close the browser process on SIGHUP.
    HANDLE_SIGINT
    Close the browser process on Ctrl-C.
    HANDLE_SIGTERM
    Close the browser process on SIGTERM.
    HEADLESS
    Whether to run browser in headless mode.
    IGNORE_ALL_DEFAULT_APPS
    If true, Playwright does not pass its own configurations args and only uses the ones from args.
    IGNORE_DEFAULT_APPS
    If true, Playwright does not pass its own configurations args and only uses the ones from args.
    PROXY
    Network proxy settings.
    PROXY_BYPASS  
    PROXY_PASSWORD  
    PROXY_SERVER  
    PROXY_USERNAME  
    SLOW_MO
    Slows down Playwright operations by the specified amount of milliseconds.
    TIMEOUT
    Maximum time in milliseconds to wait for the browser instance to start.
  • Method Summary

    Modifier and Type Method Description
    java.util.Optional<java.lang.Boolean> asBooleanFrom​(EnvironmentVariables environmentVariables)  
    java.util.Optional<com.microsoft.playwright.options.BrowserChannel> asBrowserChannelFrom​(EnvironmentVariables environmentVariables)  
    java.util.Optional<java.lang.Double> asDoubleFrom​(EnvironmentVariables environmentVariables)  
    java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>> asJsonMapFrom​(EnvironmentVariables environmentVariables)  
    java.util.Optional<java.util.List<java.lang.String>> asListOfStringsFrom​(EnvironmentVariables environmentVariables)  
    java.util.Optional<java.nio.file.Path> asPathFrom​(EnvironmentVariables environmentVariables)  
    java.util.Optional<com.microsoft.playwright.options.Proxy> asProxyFrom​(EnvironmentVariables environmentVariables)  
    java.util.Optional<java.lang.String> asStringFrom​(EnvironmentVariables environmentVariables)  
    static PlayWrightConfigurationProperties valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static PlayWrightConfigurationProperties[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static PlayWrightConfigurationProperties[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PlayWrightConfigurationProperties valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • asBrowserChannelFrom

      public java.util.Optional<com.microsoft.playwright.options.BrowserChannel> asBrowserChannelFrom​(EnvironmentVariables environmentVariables)
    • asStringFrom

      public java.util.Optional<java.lang.String> asStringFrom​(EnvironmentVariables environmentVariables)
    • asBooleanFrom

      public java.util.Optional<java.lang.Boolean> asBooleanFrom​(EnvironmentVariables environmentVariables)
    • asDoubleFrom

      public java.util.Optional<java.lang.Double> asDoubleFrom​(EnvironmentVariables environmentVariables)
    • asPathFrom

      public java.util.Optional<java.nio.file.Path> asPathFrom​(EnvironmentVariables environmentVariables)
    • asProxyFrom

      public java.util.Optional<com.microsoft.playwright.options.Proxy> asProxyFrom​(EnvironmentVariables environmentVariables)
    • asListOfStringsFrom

      public java.util.Optional<java.util.List<java.lang.String>> asListOfStringsFrom​(EnvironmentVariables environmentVariables)
    • asJsonMapFrom

      public java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>> asJsonMapFrom​(EnvironmentVariables environmentVariables)