Queries topic
Queries are the functions / methods that Testing Library gives you to find elements on the page. There are several types of queries ("get", "find", "query"); the difference between them is whether the query will throw an error if no element is found or if it will return a Future
and retry. Depending on what page content you are selecting, different queries may be more or less appropriate. See the priority guide for recommendations on how to make use of semantic queries to test your page in the most accessible way.
Scoping Queries
Scoping a query to a specified container within the DOM can be done in a number of ways:
- By specifying the
container
argument on a "top level" query function. - By using the default container pre-defined for query methods exposed by the class instance returned from:
render()
: scoped to the root of the renderedReactElement
within(<container>)
: scoped to the provided<container>
screen
: scoped todocument.body
The function signatures for the queries are identical no matter which place you call them from with the exception of the "top level" query functions - which require that a container be specified as the first argument as shown in the examples below.
Examples
NOTE:
render()
supports React vDom elements / custom components created using either the react or over_react packages.The examples shown here use the
react
package since thereact_testing_library
does not have a direct dependency onover_react
- but both libraries are fully supported.
Classes
- RenderResult Queries
-
The model returned from render, which includes all the
ScopedQueries
scoped to the container that the renderedElement was rendered within. - RenderResult Queries
-
The model returned from render, which includes all the
ScopedQueries
scoped to the container that the renderedElement was rendered within. - RenderResult Queries
-
The model returned from render, which includes all the
ScopedQueries
scoped to the container that the renderedElement was rendered within. - WithinQueries Queries
- Queries scoped to the provided container.
- WithinQueries Queries
- Queries scoped to the provided container.
- WithinQueries Queries
- Queries scoped to the provided container.
Properties
- screen ↔ ScreenQueries Queries
-
Exposes all the "top-level" queries exposed by the dom-testing-library,
but the scope/container is defaulted to
document.body
.getter/setter pair - screen ↔ ScreenQueries Queries
-
Exposes all the "top-level" queries exposed by the dom-testing-library,
but the scope/container is defaulted to
document.body
.getter/setter pair - screen ↔ ScreenQueries Queries
-
Exposes all the "top-level" queries exposed by the dom-testing-library,
but the scope/container is defaulted to
document.body
.getter/setter pair
Functions
-
findAllByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByAltText QueriesList< E> > -
Returns a list of ImageElements, InputElements and/or AreaElements with the given
text
as the value of thealt
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findAllByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByAltText QueriesList< E> > -
Returns a list of ImageElements, InputElements and/or AreaElements with the given
text
as the value of thealt
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findAllByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByAltText QueriesList< E> > -
Returns a list of ImageElements, InputElements and/or AreaElements with the given
text
as the value of thealt
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findAllByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByDisplayValue QueriesList< E> > -
Returns a list of InputElement, TextAreaElement or SelectElement that has the matching
value
displayed, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByDisplayValue QueriesList< E> > -
Returns a list of InputElement, TextAreaElement or SelectElement that has the matching
value
displayed, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByDisplayValue QueriesList< E> > -
Returns a list of InputElement, TextAreaElement or SelectElement that has the matching
value
displayed, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByLabelText QueriesList< E> > -
Returns a list of elements that are associated with a LabelElement with the given
text
, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByLabelText QueriesList< E> > -
Returns a list of elements that are associated with a LabelElement with the given
text
, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByLabelText QueriesList< E> > -
Returns a list of elements that are associated with a LabelElement with the given
text
, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByPlaceholderText QueriesList< E> > -
Returns a list of elements with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findAllByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByPlaceholderText QueriesList< E> > -
Returns a list of elements with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findAllByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByPlaceholderText QueriesList< E> > -
Returns a list of elements with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findAllByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByRole QueriesList< E> > -
Returns a list of elements with the given
role
value, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByRole QueriesList< E> > -
Returns a list of elements with the given
role
value, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByRole QueriesList< E> > -
Returns a list of elements with the given
role
value, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByTestId QueriesList< E> > -
Returns a list of elements with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByTestId QueriesList< E> > -
Returns a list of elements with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByTestId QueriesList< E> > -
Returns a list of elements with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script', Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByText QueriesList< E> > -
Returns a list of elements with the given
text
content, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script', Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByText QueriesList< E> > -
Returns a list of elements with the given
text
content, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script', Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByText QueriesList< E> > -
Returns a list of elements with the given
text
content, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findAllByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByTitle QueriesList< E> > -
Returns a list of elements with the given
title
as the value of thetitle
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findAllByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByTitle QueriesList< E> > -
Returns a list of elements with the given
title
as the value of thetitle
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findAllByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByTitle QueriesList< E> > -
Returns a list of elements with the given
title
as the value of thetitle
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByAltText QueriesE> -
Returns a future with a single ImageElement, InputElement or AreaElement value with the given
text
as the value of thealt
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByAltText QueriesE> -
Returns a future with a single ImageElement, InputElement or AreaElement value with the given
text
as the value of thealt
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByAltText QueriesE> -
Returns a future with a single ImageElement, InputElement or AreaElement value with the given
text
as the value of thealt
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByDisplayValue QueriesE> -
Returns a future with a single InputElement, TextAreaElement or SelectElement that has the matching
value
displayed, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByDisplayValue QueriesE> -
Returns a future with a single InputElement, TextAreaElement or SelectElement that has the matching
value
displayed, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByDisplayValue QueriesE> -
Returns a future with a single InputElement, TextAreaElement or SelectElement that has the matching
value
displayed, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByLabelText QueriesE> -
Returns a future with a single element that is associated with a LabelElement with the given
text
, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByLabelText QueriesE> -
Returns a future with a single element that is associated with a LabelElement with the given
text
, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByLabelText QueriesE> -
Returns a future with a single element that is associated with a LabelElement with the given
text
, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByPlaceholderText QueriesE> -
Returns a future with a single element value with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByPlaceholderText QueriesE> -
Returns a future with a single element value with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByPlaceholderText QueriesE> -
Returns a future with a single element value with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByRole QueriesE> -
Returns a future with a single element value with the given
role
value, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByRole QueriesE> -
Returns a future with a single element value with the given
role
value, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByRole QueriesE> -
Returns a future with a single element value with the given
role
value, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByTestId QueriesE> -
Returns a future with a single element value with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByTestId QueriesE> -
Returns a future with a single element value with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByTestId QueriesE> -
Returns a future with a single element value with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script', Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByText QueriesE> -
Returns a future with a single element value with the given
text
content, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script', Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByText QueriesE> -
Returns a future with a single element value with the given
text
content, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script', Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByText QueriesE> -
Returns a future with a single element value with the given
text
content, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByTitle QueriesE> -
Returns a future with a single element value with the given
title
as the value of thetitle
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByTitle QueriesE> -
Returns a future with a single element value with the given
title
as the value of thetitle
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
findByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByTitle QueriesE> -
Returns a future with a single element value with the given
title
as the value of thetitle
attribute, defaulting to anexact
match after waiting1000ms
(or the specifiedtimeout
duration). -
getAllByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByAltText QueriesE> -
Returns a list of ImageElements, InputElements and/or AreaElements with the given
text
as the value of thealt
attribute, defaulting to anexact
match. -
getAllByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByAltText QueriesE> -
Returns a list of ImageElements, InputElements and/or AreaElements with the given
text
as the value of thealt
attribute, defaulting to anexact
match. -
getAllByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByAltText QueriesE> -
Returns a list of ImageElements, InputElements and/or AreaElements with the given
text
as the value of thealt
attribute, defaulting to anexact
match. -
getAllByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByDisplayValue QueriesE> -
Returns a list of InputElements, TextAreaElements or SelectElements that have the matching
value
displayed, defaulting to anexact
match. -
getAllByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByDisplayValue QueriesE> -
Returns a list of InputElements, TextAreaElements or SelectElements that have the matching
value
displayed, defaulting to anexact
match. -
getAllByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByDisplayValue QueriesE> -
Returns a list of InputElements, TextAreaElements or SelectElements that have the matching
value
displayed, defaulting to anexact
match. -
getAllByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector}) → List< ByLabelText QueriesE> -
Returns a list of elements that are associated with a LabelElement with the given
text
, defaulting to anexact
match. -
getAllByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector}) → List< ByLabelText QueriesE> -
Returns a list of elements that are associated with a LabelElement with the given
text
, defaulting to anexact
match. -
getAllByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector}) → List< ByLabelText QueriesE> -
Returns a list of elements that are associated with a LabelElement with the given
text
, defaulting to anexact
match. -
getAllByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByPlaceholderText QueriesE> -
Returns a list of elements with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match. -
getAllByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByPlaceholderText QueriesE> -
Returns a list of elements with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match. -
getAllByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByPlaceholderText QueriesE> -
Returns a list of elements with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match. -
getAllByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level}) → List< ByRole QueriesE> -
Returns a list of elements with the given
role
value, defaulting to anexact
match. -
getAllByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level}) → List< ByRole QueriesE> -
Returns a list of elements with the given
role
value, defaulting to anexact
match. -
getAllByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level}) → List< ByRole QueriesE> -
Returns a list of elements with the given
role
value, defaulting to anexact
match. -
getAllByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByTestId QueriesE> -
Returns a list of elements with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
getAllByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByTestId QueriesE> -
Returns a list of elements with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
getAllByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByTestId QueriesE> -
Returns a list of elements with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
getAllByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script'}) → List< ByText QueriesE> -
Returns a list of elements with the given
text
content, defaulting to anexact
match. -
getAllByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script'}) → List< ByText QueriesE> -
Returns a list of elements with the given
text
content, defaulting to anexact
match. -
getAllByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script'}) → List< ByText QueriesE> -
Returns a list of elements with the given
text
content, defaulting to anexact
match. -
getAllByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByTitle QueriesE> -
Returns a list of elements with the given
title
as the value of thetitle
attribute, defaulting to anexact
match. -
getAllByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByTitle QueriesE> -
Returns a list of elements with the given
title
as the value of thetitle
attribute, defaulting to anexact
match. -
getAllByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByTitle QueriesE> -
Returns a list of elements with the given
title
as the value of thetitle
attribute, defaulting to anexact
match. -
getByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByAltText Queries -
Returns a single ImageElement, InputElement or AreaElement with the given
text
as the value of thealt
attribute, defaulting to anexact
match. -
getByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByAltText Queries -
Returns a single ImageElement, InputElement or AreaElement with the given
text
as the value of thealt
attribute, defaulting to anexact
match. -
getByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByAltText Queries -
Returns a single ImageElement, InputElement or AreaElement with the given
text
as the value of thealt
attribute, defaulting to anexact
match. -
getByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByDisplayValue Queries -
Returns a single InputElement, TextAreaElement or SelectElement that has the matching
value
displayed, defaulting to anexact
match. -
getByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByDisplayValue Queries -
Returns a single InputElement, TextAreaElement or SelectElement that has the matching
value
displayed, defaulting to anexact
match. -
getByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByDisplayValue Queries -
Returns a single InputElement, TextAreaElement or SelectElement that has the matching
value
displayed, defaulting to anexact
match. -
getByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector}) → E ByLabelText Queries -
Returns a single element that is associated with a LabelElement with the given
text
, defaulting to anexact
match. -
getByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector}) → E ByLabelText Queries -
Returns a single element that is associated with a LabelElement with the given
text
, defaulting to anexact
match. -
getByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector}) → E ByLabelText Queries -
Returns a single element that is associated with a LabelElement with the given
text
, defaulting to anexact
match. -
getByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByPlaceholderText Queries -
Returns a single element with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match. -
getByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByPlaceholderText Queries -
Returns a single element with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match. -
getByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByPlaceholderText Queries -
Returns a single element with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match. -
getByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level}) → E ByRole Queries -
Returns a single element with the given
role
value, defaulting to anexact
match. -
getByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level}) → E ByRole Queries -
Returns a single element with the given
role
value, defaulting to anexact
match. -
getByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level}) → E ByRole Queries -
Returns a single element with the given
role
value, defaulting to anexact
match. -
getByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByTestId Queries -
Returns a single element with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
getByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByTestId Queries -
Returns a single element with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
getByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByTestId Queries -
Returns a single element with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
getByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script'}) → E ByText Queries -
Returns a single element with the given
text
content, defaulting to anexact
match. -
getByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script'}) → E ByText Queries -
Returns a single element with the given
text
content, defaulting to anexact
match. -
getByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script'}) → E ByText Queries -
Returns a single element with the given
text
content, defaulting to anexact
match. -
getByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByTitle Queries -
Returns a single element with the given
title
as the value of thetitle
attribute, defaulting to anexact
match. -
getByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByTitle Queries -
Returns a single element with the given
title
as the value of thetitle
attribute, defaulting to anexact
match. -
getByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByTitle Queries -
Returns a single element with the given
title
as the value of thetitle
attribute, defaulting to anexact
match. -
queryAllByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByAltText QueriesE> -
Returns a list of ImageElements, InputElements and/or AreaElements with the given
text
as the value of thealt
attribute, defaulting to anexact
match. -
queryAllByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByAltText QueriesE> -
Returns a list of ImageElements, InputElements and/or AreaElements with the given
text
as the value of thealt
attribute, defaulting to anexact
match. -
queryAllByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByAltText QueriesE> -
Returns a list of ImageElements, InputElements and/or AreaElements with the given
text
as the value of thealt
attribute, defaulting to anexact
match. -
queryAllByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByDisplayValue QueriesE> -
Returns a list of InputElements, TextAreaElements or SelectElements that have the matching
value
displayed, defaulting to anexact
match. -
queryAllByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByDisplayValue QueriesE> -
Returns a list of InputElements, TextAreaElements or SelectElements that have the matching
value
displayed, defaulting to anexact
match. -
queryAllByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByDisplayValue QueriesE> -
Returns a list of InputElements, TextAreaElements or SelectElements that have the matching
value
displayed, defaulting to anexact
match. -
queryAllByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector}) → List< ByLabelText QueriesE> -
Returns a list of elements that are associated with a LabelElement with the given
text
, defaulting to anexact
match. -
queryAllByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector}) → List< ByLabelText QueriesE> -
Returns a list of elements that are associated with a LabelElement with the given
text
, defaulting to anexact
match. -
queryAllByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector}) → List< ByLabelText QueriesE> -
Returns a list of elements that are associated with a LabelElement with the given
text
, defaulting to anexact
match. -
queryAllByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByPlaceholderText QueriesE> -
Returns a list of elements with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match. -
queryAllByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByPlaceholderText QueriesE> -
Returns a list of elements with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match. -
queryAllByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByPlaceholderText QueriesE> -
Returns a list of elements with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match. -
queryAllByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level}) → List< ByRole QueriesE> -
Returns a list of elements with the given
role
value, defaulting to anexact
match. -
queryAllByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level}) → List< ByRole QueriesE> -
Returns a list of elements with the given
role
value, defaulting to anexact
match. -
queryAllByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level}) → List< ByRole QueriesE> -
Returns a list of elements with the given
role
value, defaulting to anexact
match. -
queryAllByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByTestId QueriesE> -
Returns a list of elements with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
queryAllByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByTestId QueriesE> -
Returns a list of elements with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
queryAllByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByTestId QueriesE> -
Returns a list of elements with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
queryAllByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script'}) → List< ByText QueriesE> -
Returns a list of elements with the given
text
content, defaulting to anexact
match. -
queryAllByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script'}) → List< ByText QueriesE> -
Returns a list of elements with the given
text
content, defaulting to anexact
match. -
queryAllByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script'}) → List< ByText QueriesE> -
Returns a list of elements with the given
text
content, defaulting to anexact
match. -
queryAllByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByTitle QueriesE> -
Returns a list of elements with the given
title
as the value of thetitle
attribute, defaulting to anexact
match. -
queryAllByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByTitle QueriesE> -
Returns a list of elements with the given
title
as the value of thetitle
attribute, defaulting to anexact
match. -
queryAllByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByTitle QueriesE> -
Returns a list of elements with the given
title
as the value of thetitle
attribute, defaulting to anexact
match. -
queryByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByAltText Queries -
Returns a single ImageElement, InputElement or AreaElement with the given
text
as the value of thealt
attribute, defaulting to anexact
match. -
queryByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByAltText Queries -
Returns a single ImageElement, InputElement or AreaElement with the given
text
as the value of thealt
attribute, defaulting to anexact
match. -
queryByAltText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByAltText Queries -
Returns a single ImageElement, InputElement or AreaElement with the given
text
as the value of thealt
attribute, defaulting to anexact
match. -
queryByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByDisplayValue Queries -
Returns a single InputElement, TextAreaElement or SelectElement that has the matching
value
displayed, defaulting to anexact
match. -
queryByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByDisplayValue Queries -
Returns a single InputElement, TextAreaElement or SelectElement that has the matching
value
displayed, defaulting to anexact
match. -
queryByDisplayValue<
E extends Element> (Node container, dynamic value, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByDisplayValue Queries -
Returns a single InputElement, TextAreaElement or SelectElement that has the matching
value
displayed, defaulting to anexact
match. -
queryByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector}) → E? ByLabelText Queries -
Returns a single element that is associated with a LabelElement with the given
text
, defaulting to anexact
match. -
queryByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector}) → E? ByLabelText Queries -
Returns a single element that is associated with a LabelElement with the given
text
, defaulting to anexact
match. -
queryByLabelText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector}) → E? ByLabelText Queries -
Returns a single element that is associated with a LabelElement with the given
text
, defaulting to anexact
match. -
queryByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByPlaceholderText Queries -
Returns a single element with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match. -
queryByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByPlaceholderText Queries -
Returns a single element with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match. -
queryByPlaceholderText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByPlaceholderText Queries -
Returns a single element with the given
text
as the value of theplaceholder
attribute, defaulting to anexact
match. -
queryByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level}) → E? ByRole Queries -
Returns a single element with the given
role
value, defaulting to anexact
match. -
queryByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level}) → E? ByRole Queries -
Returns a single element with the given
role
value, defaulting to anexact
match. -
queryByRole<
E extends Element> (Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, dynamic name, bool? selected, bool? checked, bool? pressed, bool? expanded, bool queryFallbacks = false, int? level}) → E? ByRole Queries -
Returns a single element with the given
role
value, defaulting to anexact
match. -
queryByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByTestId Queries -
Returns a single element with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
queryByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByTestId Queries -
Returns a single element with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
queryByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByTestId Queries -
Returns a single element with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
queryByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script'}) → E? ByText Queries -
Returns a single element with the given
text
content, defaulting to anexact
match. -
queryByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script'}) → E? ByText Queries -
Returns a single element with the given
text
content, defaulting to anexact
match. -
queryByText<
E extends Element> (Node container, dynamic text, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, String? selector, dynamic ignore = 'script'}) → E? ByText Queries -
Returns a single element with the given
text
content, defaulting to anexact
match. -
queryByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByTitle Queries -
Returns a single element with the given
title
as the value of thetitle
attribute, defaulting to anexact
match. -
queryByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByTitle Queries -
Returns a single element with the given
title
as the value of thetitle
attribute, defaulting to anexact
match. -
queryByTitle<
E extends Element> (Node container, dynamic title, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByTitle Queries -
Returns a single element with the given
title
as the value of thetitle
attribute, defaulting to anexact
match. -
within(
Node node) → WithinQueries Queries -
Takes a DOM
node
and binds it to the raw query functions. -
within(
Node node) → WithinQueries Queries -
Takes a DOM
node
and binds it to the raw query functions. -
within(
Node node) → WithinQueries Queries -
Takes a DOM
node
and binds it to the raw query functions.