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 ARGSAdditional arguments to pass to the browser instance (see https://peter.sh/experiments/chromium-command-line-switches/).BROWSER_CHANNELBrowser distribution channel.BROWSER_TYPECHROMIUM_SANDBOXEnable Chromium sandboxing.DEVTOOLS**Chromium-only** Whether to auto-open a Developer Tools panel for each tab.DOWNLOADS_PATHIf specified, accepted downloads are downloaded into this directory.ENVSpecify environment variables that will be visible to the browser.EXECUTABLE_PATHPath to a browser executable to run instead of the bundled one.HANDLE_SIGHUPClose the browser process on SIGHUP.HANDLE_SIGINTClose the browser process on Ctrl-C.HANDLE_SIGTERMClose the browser process on SIGTERM.HEADLESSWhether to run browser in headless mode.IGNORE_ALL_DEFAULT_APPSIftrue, Playwright does not pass its own configurations args and only uses the ones fromargs.IGNORE_DEFAULT_APPSIftrue, Playwright does not pass its own configurations args and only uses the ones fromargs.PROXYNetwork proxy settings.PROXY_BYPASSPROXY_PASSWORDPROXY_SERVERPROXY_USERNAMESLOW_MOSlows down Playwright operations by the specified amount of milliseconds.TIMEOUTMaximum 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 PlayWrightConfigurationPropertiesvalueOf(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, valueOfMethods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
BROWSER_TYPE
-
ARGS
Additional arguments to pass to the browser instance (see https://peter.sh/experiments/chromium-command-line-switches/). -
BROWSER_CHANNEL
Browser distribution channel. -
CHROMIUM_SANDBOX
Enable Chromium sandboxing. Defaults tofalse. -
DEVTOOLS
**Chromium-only** Whether to auto-open a Developer Tools panel for each tab. If this option istrue, theheadlessoption will be setfalse. -
DOWNLOADS_PATH
If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is deleted when browser is closed. -
ENV
Specify environment variables that will be visible to the browser. Defaults toprocess.env. -
EXECUTABLE_PATH
Path to a browser executable to run instead of the bundled one. IfexecutablePathis a relative path, then it is resolved relative to the current working directory. Note that Playwright only works with the bundled Chromium, Firefox or WebKit, use at your own risk. -
HANDLE_SIGHUP
Close the browser process on SIGHUP. Defaults totrue. -
HANDLE_SIGINT
Close the browser process on Ctrl-C. Defaults totrue. -
HANDLE_SIGTERM
Close the browser process on SIGTERM. Defaults totrue. -
HEADLESS
-
IGNORE_ALL_DEFAULT_APPS
Iftrue, Playwright does not pass its own configurations args and only uses the ones fromargs. Dangerous option; use with care. Defaults tofalse. -
IGNORE_DEFAULT_APPS
Iftrue, Playwright does not pass its own configurations args and only uses the ones fromargs. Dangerous option; use with care. -
SLOW_MO
Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. -
TIMEOUT
Maximum time in milliseconds to wait for the browser instance to start. Defaults to30000(30 seconds). Pass0to disable timeout. -
PROXY
Network proxy settings. You define the proxy settings using the following four properties (server, bypass, username, password) -
PROXY_SERVER
-
PROXY_BYPASS
-
PROXY_USERNAME
-
PROXY_PASSWORD
-
-
Method Details
-
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
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 namejava.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)
-