Creates an instance of ClassStrategy.
An object containing a function to filter class names.
Generates an XPath selector part for the given element based on its class attribute.
The DOM element for which to generate the selector.
A SelectorPart object containing the XPath selector and its penalty, or null if no valid class is found.
ClassStrategy is responsible for generating XPath selectors based on the class attribute of an element.