Documentation

getSingle()

Returns the currently matched output element, if there’s only one.

getSingle(): TestOutputElement;

Errors

This method throws an error if the current selection consists more than one element, or none at all.

Related