The element a coordinate click landed on, found by hit-testing its bounding box
against the step's extracted elements.
A coordinate Click carries pixels; the trace is built on re-resolvable identity
(role + name + selector). Recording the pixels would give replay something it
cannot heal and that breaks on any layout change, so instead we recover the
identity the click threw away — the element list was already captured for this
step, and each entry carries its own box.
Returns undefined rather than guessing: an ambiguous or absent match means the
step is not recordable, which is strictly better than a script that clicks the
wrong thing later. A wrapper containing the target loses to the target itself
because overlap is scored against the union, which a large wrapper inflates.
The element a coordinate click landed on, found by hit-testing its bounding box against the step's extracted elements.
A coordinate
Clickcarries pixels; the trace is built on re-resolvable identity (role + name + selector). Recording the pixels would give replay something it cannot heal and that breaks on any layout change, so instead we recover the identity the click threw away — the element list was already captured for this step, and each entry carries its own box.Returns undefined rather than guessing: an ambiguous or absent match means the step is not recordable, which is strictly better than a script that clicks the wrong thing later. A wrapper containing the target loses to the target itself because overlap is scored against the union, which a large wrapper inflates.