예제 #1
0
 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();
   }
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #5
0
 /**
  * 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);
 }