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