@@ -0,0 +1,730 @@
+package com.autonomy.abc.selenium.util;%0A%0Aimport org.apache.commons.lang3.StringUtils;%0Aimport org.openqa.selenium.By;%0Aimport org.openqa.selenium.WebElement;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Apublic final class ElementUtil %7B%0A    private ElementUtil() %7B%7D%0A%0A    public static List%3CString%3E getTexts(List%3C? extends WebElement%3E elements) %7B%0A        final List%3CString%3E texts = new ArrayList%3C%3E();%0A        for (WebElement element : elements) %7B%0A            texts.add(element.getText());%0A        %7D%0A        return texts;%0A    %7D%0A%0A    public static WebElement ancestor(WebElement element, int levels) %7B%0A        String xpath = %22./%22 + StringUtils.repeat(%22/..%22, levels);%0A        return element.findElement(By.xpath(xpath));%0A    %7D%0A%7D%0A

Add ElementUtil class, to reduce responsibilities of AppElement