Generates a unique CSS selector for a given DOM element.
Constructs an instance of CSSSelectorGenerator with the specified options.
Optional
Partial options to customize the behavior of the selector generator.
Generates a unique CSS selector for the provided element.
The DOM element for which to generate a selector.
A unique CSS selector string.
Will throw an error if a unique selector cannot be generated.
Generates a unique CSS selector for a given DOM element.