pub async fn run_filters<'b>(
        &self,
        mut elements: Vec<WebElement<'b>>,
    ) -> WebDriverResult<Vec<WebElement<'b>>> {
        for func in &self.filters {
            let tmp_elements = std::mem::take(&mut elements);
            for element in tmp_elements {
                if func(&element).await? {
                    elements.push(element);
                }
            }

            if elements.is_empty() {
                break;
            }
        }

        Ok(elements)
    }
/// Run all filters for this selector on the specified WebElement vec.
Run all filters for this selector on the specified WebElement vec.
Run all filters for this selector on the specified WebElement vec .
pub async fn run_filters<'b>(
        &self,
        mut elements: Vec<WebElement<'b>>,
    ) -> WebDriverResult<Vec<WebElement<'b>>> {
        for func in &self.filters {
            let tmp_elements = std::mem::take(&mut elements);
            for element in tmp_elements {
                if func(&element).await? {
                    elements.push(element);
                }
            }
            if elements.is_empty() {
                break;
            }
        }
        Ok(elements)
    }
pub async fn run_filters < ' b > ( & self , mut elements : Vec < WebElement < ' b > > , ) -> WebDriverResult < Vec < WebElement < ' b > > > { for func in & self . filters { let tmp_elements = std :: mem :: take ( & mut elements ) ; for element in tmp_elements { if func ( & element ) . await ? { elements . push ( element ) ; } } if elements . is_empty ( ) { break ; } } Ok ( elements ) }
Run all filters for this selector on the specified WebElement vec.
Run all filters for this selector on the specified WebElement vec .
&self
elements
Vec<WebElement<'b>>
&self
elements
Vec<WebElement<'b>>