Skip to main content

count

Function count 

Source
pub async fn count(
    adapter: &dyn EngineAdapter,
    selector: &str,
) -> Result<usize, EngineError>
Expand description

Count the number of elements matching a selector.

§Arguments

  • adapter - The engine adapter to use
  • selector - The CSS selector to count

§Returns

The number of matching elements