findElements method

  1. @override
Stream<AppiumWebElement> findElements(
  1. AppiumBy by
)

Search for multiple elements within the entire current page.

Implementation

@override
Stream<AppiumWebElement> findElements(AppiumBy by) async* {
  final ids = await _client.send(
      _handler.elementFinder.buildFindElementsRequest(by),
      _handler.elementFinder.parseFindElementsResponse);
  var i = 0;

  for (var id in ids) {
    yield getElement(id, this, by, i);
    i++;
  }
}