Skip to main content

type_text

Function type_text 

Source
pub async fn type_text(
    engine: &dyn EngineAdapter,
    text: &str,
) -> Result<(), EngineError>
Expand description

Type text at the page level (dispatches key events for each character).

Unlike element-level fill/type, this sends keyboard events to whatever element is currently focused on the page.

§Arguments

  • engine - The browser engine adapter
  • text - The text to type

§Errors

Returns EngineError if typing fails.