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.
SubscribeRelated
getByPlaceholderTextqueryByPlaceholderTextqueryAllByPlaceholderTextfindByPlaceholderTextfindAllByPlaceholderTextgetByLabelTextscreenwithin