Function to filter class names that can be used in the selector. Receives the class name and returns a boolean.
Optional
debugEnable debug logging.
Function to filter IDs that can be used in the selector. Receives the ID as a string and returns a boolean.
Maximum number of candidates to consider when generating the selector.
Maximum number of combinations to test.
Optional
maxMaximum depth for DOM traversal. Optional.
Minimum length of the path after optimization.
The root element from which the selector will be generated. Can be a Document or Element.
Minimum length of the initial path when generating the selector.
Function to filter tag names that can be used in the selector. Receives the tag name and returns a boolean.
Optional
timeoutMaximum time in milliseconds to generate the selector before throwing an error. Optional.
Function to filter attributes that can be used in the selector. Receives the attribute name and value, returns a boolean.