code: protected WebElement getFirstElement(Elements elems) {
          DocumentWebElement documentWebElement = Iterables.getFirst(elems.as(InternalWebElements.class).wrappedNativeElements(), null);
          return documentWebElement == null ? null : documentWebElement.getWrappedWebElement();
      }
docs: Gets the first element.
  
  @param elems the elems
  @return the first element