chore: lint
This commit is contained in:
@@ -808,13 +808,12 @@ export const getChildSelectors = async (page: Page, parentSelector: string): Pro
|
|||||||
|
|
||||||
function getSelectorPath(element: HTMLElement | null): string {
|
function getSelectorPath(element: HTMLElement | null): string {
|
||||||
if (!element || !element.parentElement) return '';
|
if (!element || !element.parentElement) return '';
|
||||||
|
|
||||||
const parentSelector = getNonUniqueSelector(element.parentElement);
|
const parentSelector = getNonUniqueSelector(element.parentElement);
|
||||||
const elementSelector = getNonUniqueSelector(element);
|
const elementSelector = getNonUniqueSelector(element);
|
||||||
|
|
||||||
return `${parentSelector} > ${elementSelector}`;
|
return `${parentSelector} > ${elementSelector}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getAllDescendantSelectors(element: HTMLElement, stopAtParent: HTMLElement | null): string[] {
|
function getAllDescendantSelectors(element: HTMLElement, stopAtParent: HTMLElement | null): string[] {
|
||||||
let selectors: string[] = [];
|
let selectors: string[] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user