CSSSelector
public struct CSSSelector
Represents a CSS3 selector that can be converted to an XPath expression.
-
The CSS3 selector.
Declaration
Swift
public let selector: String
-
The XPath representation of the selector.
Declaration
Swift
public let xpath: String
-
Initializes a
CSSSelector
with a given string and converts it to an XPath expression. If conversion fails, returnsnil
.Declaration
Swift
public init?(_ selector: String)
Parameters
selector
A selector to convert to XPath.