Support complex types in interface operation inputs
[sdc.git] / integration-tests / src / test / java / org / onap / sdc / frontend / ci / tests / pages / AbstractPageObject.java
index 47b6559..d834c4c 100644 (file)
@@ -116,6 +116,17 @@ public abstract class AbstractPageObject implements PageObject {
         return element.findElement(locator);
     }
 
+    /**
+     * Find elements inside the provided element using the provided xpath.
+     *
+     * @param element the parent element
+     * @param xpath   the xpath expression to search for the internal element
+     * @return the list of WebElement if any found, otherwise throws an exception
+     */
+    protected List<WebElement> findSubElements(final WebElement element, final String xpath) {
+        return element.findElements(By.xpath(xpath));
+    }
+
     /**
      * Find elements inside the provided element using the provided By locator.
      *