How the fallback mechanism works
masterThe library attempts to find the shortest CSS selector for the parent-to-child relationship from the target element up to the root element.
- If a relationship is not unique, it uses a
*wildcard (e.g.,#wrapper > * > div > .text). - If even the wildcard selector is not unique, it falls back to a chain of
:nth-childselectors (e.g.,:nth-child(2) > :nth-child(4) > :nth-child(1) > :nth-child(12)).