Docs (4.0.0)
class OutputAssertion method

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

  • class OutputAssertionA class that provides assertion methods to be applied to a selection of rendered output elements.