chore: lint

This commit is contained in:
karishmas6
2024-09-03 09:44:58 +05:30
parent 01e57ee5aa
commit 497f29d4c4

View File

@@ -808,13 +808,12 @@ export const getChildSelectors = async (page: Page, parentSelector: string): Pro
function getSelectorPath(element: HTMLElement | null): string {
if (!element || !element.parentElement) return '';
const parentSelector = getNonUniqueSelector(element.parentElement);
const elementSelector = getNonUniqueSelector(element);
return `${parentSelector} > ${elementSelector}`;
}
function getAllDescendantSelectors(element: HTMLElement, stopAtParent: HTMLElement | null): string[] {
let selectors: string[] = [];