Skip to content
masterclass Buddy

React Testing Library · Module

getAllByPlaceholderText

getAllByPlaceholderText returns every element whose placeholder attribute matches the supplied text. Use it when multiple matching elements are expected.

Last updated

Syntax

getAllByPlaceholderText(container: HTMLElement, text: TextMatch, options?: { exact?: boolean; normalizer?: NormalizerFn }): HTMLElement[]

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

Subscribe
  • getByPlaceholderText
  • queryByPlaceholderText
  • queryAllByPlaceholderText
  • findByPlaceholderText
  • findAllByPlaceholderText
  • getByLabelText
  • screen
  • within

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