public static String findTextInList(List<WebElement> webElements, String ans){
        Point sLocation;
        int xx, yy, d;
        String text;
        for(WebElement ss : webElements){
            text = ss.getText();
            if(text!=null && !text.equals("")){
                sLocation = ss.getLocation();
                xx = sLocation.getX();
                yy = sLocation.getY();
                d =  Math.abs(yy-y) + Math.abs(xx-x);
                if (d < r && yy <= y){
                    r = d;
                    ans = text;
                }
            }
        }
        return ans;
    }