Пример #1
0
 /**
  * Has child element
  *
  * @return Has child or not
  */
 public boolean hasChild() {
   return (Boolean)
       logGetter(
           this,
           getParentClassName(),
           "HasChild",
           !getWebElement().findElements(By.xpath(".//*")).isEmpty());
 }
Пример #2
0
 /**
  * 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(".//*"));
 }