findElements method

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

Find multiple elements nested within this element.

Implementation

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

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