/** * Has child element * * @return Has child or not */ public boolean hasChild() { return (Boolean) logGetter( this, getParentClassName(), "HasChild", !getWebElement().findElements(By.xpath(".//*")).isEmpty()); }
/** * Has child element with specified tag * * @param tagName Tag name * @return Has child or not */ public boolean hasChildByTag(String tagName) { return (Boolean) logGetter( this, getParentClassName(), "HasChildByTag", !getWebElement().findElements(By.tagName(tagName)).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(".//*")); }