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
 /**
  * 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());
 }
Ejemplo n.º 3
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(".//*"));
 }