private int getSize() { if (filters.size() > 0) { return search.find(selector, (Filter[]) filters.toArray(new Filter[filters.size()])).size(); } else { return search.find(selector).size(); } }
/** * Return the first elements corresponding to the name and the filters * * @param name * @param filters * @return */ public FluentWebElement findFirst(String name, final Filter... filters) { return search.findFirst(name, filters); }
/** * return the lists corresponding to the cssSelector with it filters * * @param name * @param filters * @return */ public FluentList<FluentWebElement> find(String name, final Filter... filters) { return search.find(name, filters); }
/** * Return the elements at the numner position into the the lists corresponding to the cssSelector * with it filters * * @param name * @param number * @param filters * @return */ public FluentWebElement find(String name, Integer number, final Filter... filters) { return search.find(name, number, filters); }
/** * find elements into the childs with the corresponding filters * * @param name * @param filters * @return */ public FluentList find(String name, Filter... filters) { return search.find(name, filters); }