Skip to main content

is_element_empty

Function is_element_empty 

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

Check if an input element is empty.

§Arguments

  • adapter - The engine adapter to use
  • selector - The CSS selector for the input element

§Returns

true if the element is empty or has only whitespace