code: public List<WebElement> findElements() {
          if (cachedElementList != null && shouldCache) {
              return cachedElementList;
          }
  
          List<WebElement> result;
          try {
              result = waitFor(() -> {
                  List<WebElement> list = searchContext
                          .findElements(getBy(by, searchContext));
                  return list.size() > 0 ? list : null;
              });
          } catch (TimeoutException | StaleElementReferenceException e) {
              result = new ArrayList<>();
          }
  
          if (shouldCache) {
              cachedElementList = result;
          }
          return result;
      }
docs: Find the element list.