Expand description
CSS selector utilities.
This module provides utilities for working with CSS selectors, including parsing, normalization, and text-based selector support.
Enums§
- Parsed
Selector - Represents a parsed selector.
Functions§
- build_
text_ selector - Build a CSS selector to find elements by visible text.
- escape_
selector_ value - Escape special characters in a CSS selector value.
- extract_
text_ from_ selector - Extract the text from a text selector.
- has_
nth_ of_ type - Check if a selector contains an nth-of-type modifier.
- is_
text_ selector - Check if a selector is a text-based selector.
- normalize_
selector - Normalize a selector for consistent handling.
- parse_
nth_ of_ type - Parse an nth-of-type selector into its base selector and index.