React Testing Library · Module
queryByTitle
queryByTitle checks for an element with a matching HTML title attribute or SVG title element. It returns the element when found and null when absent.
Last updated
Syntax
queryByTitle(container: HTMLElement, title: TextMatch, options?: { exact?: boolean; normalizer?: NormalizerFn }): HTMLElement | nullIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
getByTitlegetAllByTitlequeryAllByTitlefindByTitlefindAllByTitlescreenwithin