findElement method

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

Search for an element within the entire current page. Throws NoSuchElementException if a matching element is not found.

Implementation

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