Function: findMostStableSelector()
function findMostStableSelector(scores):
| {
score: StabilityScore;
selector: string;
}
| null;
Defined in: packages/uimatch-selector-anchors/src/hashing/stability-score.ts:351
Find the most stable selector from a list with their scores Prioritizes data-testid selectors even if overall score is slightly lower
Parameters
scores
object[]
Returns
| {
score: StabilityScore;
selector: string;
}
| null