findElement method Null safety

  1. @override
Future<WebElement> findElement(
  1. By by
)
override

Find an element nested within this element.

Throws NoSuchElementException if matching element is not found.

Implementation

@override
Future<WebElement> findElement(By by) => _client.send(
    _handler.elementFinder.buildFindElementRequest(by, id),
    (response) => driver.getElement(
        _handler.elementFinder.parseFindElementResponse(response), this, by));