Skip to main content

text_content

Function text_content 

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

Get the text content of an element.

§Arguments

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

§Returns

The text content of the element, or None if not found