feat: don't use id for selector

This commit is contained in:
karishmas6
2024-06-06 05:09:26 +05:30
parent 71cd95a1a2
commit 1aa120120e

View File

@@ -651,7 +651,7 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
try {
selector = isAttributesDefined(element, attributes)
? finder(element, {
idName: () => false,
idName: () => false, // Don't use the id to generate a selector
attr: genValidAttributeFilter(element, attributes),
})
: null;