Element.Matches

Element.Matches method

Determines whether the element matches the specified CSS selector.

public bool Matches(string selector)
ParameterTypeDescription
selectorStringThe selector.

Return Value

true if the element matches the selector; otherwise, false.

See Also