Skip to content
masterclass Buddy

React Testing Library · Module

getAllByDisplayValue

Use getAllByDisplayValue to find every input, textarea, or select with a matching current value. It returns an array and throws if no element matches.

Last updated

Syntax

getAllByDisplayValue(value: TextMatch, options?: { exact?: boolean; normalizer?: NormalizerFn }): HTMLElement[]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • getByDisplayValue
  • queryByDisplayValue
  • queryAllByDisplayValue
  • findByDisplayValue
  • findAllByDisplayValue
  • screen
  • within

Source: ByDisplayValue | Testing Library. Checked 2026-11-03.