Skip to main content

parse_dom_ready

Function parse_dom_ready 

Source
pub fn parse_dom_ready(eval_output: &str) -> bool
Expand description

Interpret the output of evaluate_script(() => document.readyState) as DOM-readiness. chrome-devtools-mcp returns the JSON result wrapped in text (verified live: a fenced ```json block containing "complete"); only the "complete" readyState is treated as ready ("loading"/"interactive" are not). Matching the quoted token avoids false positives from surrounding prose.