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
CSSSelectorwith a given string and converts it to an XPath expression. If conversion fails, returnsnil.Declaration
Swift
public init?(_ selector: String)Parameters
selectorA selector to convert to XPath.
CSSSelector Struct Reference