ByRole topic
getByRole, queryByRole, getAllByRole, queryAllByRole, findByRole, findAllByRole
Functions
-
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). -
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). -
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. -
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. -
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. -
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.