@hyperbrowser/agent
Version:
Hyperbrowsers Web Agent
9 lines (8 loc) • 362 B
TypeScript
/**
* Generates a full CSS selector path for a given element, handling shadow DOM boundaries.
* Uses Playwright's '>>' syntax to denote shadow DOM transitions.
*
* @param element The target HTMLElement.
* @returns A CSS selector string that can be used with Playwright locators.
*/
export declare const getCSSPath: (element: HTMLElement | null) => string;