@Override public WebElement findElement(WebLocator el) { final String path = getSelector(el); // if (isSamePath(el, path)) { // LOGGER.debug("currentElement already found one time: " + el); // return el.currentElement; // } doWaitElement(el, 0); el.setCurrentElementPath(path); return el.currentElement; }
private void invalidateCache(WebLocator el) { el.currentElement = null; el.setCurrentElementPath(""); }