ByRole Topic

getByRole, queryByRole, getAllByRole, queryAllByRole, findByRole, findAllByRole

Functions

findAllByRole<E extends Element>(Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions]), bool hidden = false, dynamic name, bool selected, bool checked, bool pressed, bool expanded, bool queryFallbacks = false, int level, Duration timeout, Duration interval, QueryTimeoutFn onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) Future<List<E>> Async ByRole Queries
Returns a list of elements with the given role value, defaulting to an exact match after waiting 1000ms (or the provided timeout duration). [...]
findByRole<E extends Element>(Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions]), bool hidden = false, dynamic name, bool selected, bool checked, bool pressed, bool expanded, bool queryFallbacks = false, int level, Duration timeout, Duration interval, QueryTimeoutFn onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) Future<E> Async ByRole Queries
Returns a future with a single element value with the given role value, defaulting to an exact match after waiting 1000ms (or the provided timeout duration). [...]
getAllByRole<E extends Element>(Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions]), bool hidden = false, dynamic name, bool selected, bool checked, bool pressed, bool expanded, bool queryFallbacks = false, int level}) List<E> ByRole Queries
Returns a list of elements with the given role value, defaulting to an exact match. [...]
getByRole<E extends Element>(Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions]), bool hidden = false, 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 an exact match. [...]
queryAllByRole<E extends Element>(Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions]), bool hidden = false, dynamic name, bool selected, bool checked, bool pressed, bool expanded, bool queryFallbacks = false, int level}) List<E> ByRole Queries
Returns a list of elements with the given role value, defaulting to an exact match. [...]
queryByRole<E extends Element>(Node container, dynamic role, {bool exact = true, NormalizerFn normalizer([NormalizerOptions]), bool hidden = false, 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 an exact match. [...]