evaluate

Function evaluate 

Source
pub async fn evaluate(
    adapter: &dyn EngineAdapter,
    script: &str,
) -> Result<Value, EngineError>
Expand description

Evaluate JavaScript in the page context.

§Arguments

  • adapter - The engine adapter to use
  • script - The JavaScript to evaluate

§Returns

The result of the evaluation