elementList<T extends Element> method

Iterable<T> elementList<T extends Element>(
  1. FinderBase<Element> finder

The matching elements in the widget tree.

  • Use element if you only expect to match one element.
  • Use firstElement if you expect to match several but only want the first.


Iterable<T> elementList<T extends Element>(finders.FinderBase<Element> finder) {
  return finder.evaluate().cast<T>();