findElements method Null safety

  1. @override
Stream<WebElement> findElements(
  1. By by
)
override

Find multiple elements nested within this element.

Implementation

@override
Stream<WebElement> findElements(By 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++;
  }
}