/** * Has child element * * @return Has child or not */ public boolean hasChild() { return (Boolean) logGetter( this, getParentClassName(), "HasChild", !getWebElement().findElements(By.xpath(".//*")).isEmpty()); }
/** * Get child elements * * @return Has child or not */ public List<WebElement> getChild() { if (logFindElementLocator) { logTechnical(format("Get Child Web Elements '%s'", locator)); } return getWebElement().findElements(By.xpath(".//*")); }