Function: calculateStabilityScore()
function calculateStabilityScore(params, options): StabilityScore;
Defined in: packages/uimatch-selector-anchors/src/hashing/stability-score.ts:245
Calculate stability score for a selector
Parameters
params
Score calculation parameters
hint?
{
ariaLabel?: string;
expectedText?: string;
prefer?: ("testid" | "role" | "text" | "css")[];
role?: string;
testid?: string;
}
hint.ariaLabel?
string = ...
hint.expectedText?
string = ...
hint.prefer?
("testid" | "role" | "text" | "css")[] = ...
hint.role?
string = ...
hint.testid?
string = ...
livenessResult?
selector
string
snippetMatched?
boolean
options
Calculation options
Returns
Stability score