Package com.microsoft.playwright.options
Enum ScreenshotType
- java.lang.Object
-
- java.lang.Enum<ScreenshotType>
-
- com.microsoft.playwright.options.ScreenshotType
-
- All Implemented Interfaces:
Serializable
,Comparable<ScreenshotType>
public enum ScreenshotType extends Enum<ScreenshotType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScreenshotType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ScreenshotType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PNG
public static final ScreenshotType PNG
-
JPEG
public static final ScreenshotType JPEG
-
-
Method Detail
-
values
public static ScreenshotType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ScreenshotType c : ScreenshotType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScreenshotType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-