121122123124125126127128129
} if (index < pageElements.size()) { return pageElements.get(index); } else { return new AbsentPageElement(); } }
171172173174175176177178179
try { WebElement webElement = driverFindElement(by); pageElement = new WebPageElement(objectName, webElement, objectLocator); } catch (NoSuchElementException e) { pageElement = new AbsentPageElement(); } return pageElement; }
49505152535455
PageElement pageElement = locatorElements.get(objectLocator.prettyString()); if (pageElement != null) { return pageElement; } } return new AbsentPageElement(); }