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();
   }
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
 /**
  * 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);
 }
Example #4
0
 /**
  * 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);
 }