Skip to main content

is_enabled

Function is_enabled 

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

Check if an element is enabled (for form elements).

§Arguments

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

§Returns

true if the element is enabled, false otherwise