Package io.webfolder.cdp
Enum Class SelectorEngine
- All Implemented Interfaces:
Serializable
,Comparable<SelectorEngine>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse w3c's native selector engine.Use Playwright's selector engine. -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectorEngine
Returns the enum constant of this class with the specified name.static SelectorEngine[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Native
Use w3c's native selector engine. -
Playwright
Use Playwright's selector engine. Playwright supports multiple selector engines used to query elements in the web page. Selector is a string that consists of one or more clauses separated by >> token, e.g. clause1 >> clause2 >> clause3. When multiple clauses are present, next one is queried relative to the previous one's result.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-