Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust
Rust ai-agentsai-toolsbrowserbrowser-automationcloud-browserheadlessheadless-browserkitesurfplaywrightpuppeteerrustservoweb-crawlerweb-crawlingweb-scraperweb-scraping
test(cdp): wait for fulfilled Fetch body consumption
ldm0059cc9d04e70
diff --git a/moli-protocol/src/domains/fetch/tests/runtime_fetch/runtime_subresources.rs b/moli-protocol/src/domains/fetch/tests/runtime_fetch/runtime_subresources.rsindex 038dc5e56..10e8ed547 100644--- a/moli-protocol/src/domains/fetch/tests/runtime_fetch/runtime_subresources.rs+++ b/moli-protocol/src/domains/fetch/tests/runtime_fetch/runtime_subresources.rs@@ -2558,15 +2558,15 @@ async fn runtime_fetch_subresource_fulfill_request_resolves_with_synthetic_respoSome("SID-1"),);- ctx.process_async(json!({- "id": 371,- "method": "Runtime.evaluate",- "sessionId": "SID-1",- "params": { "expression": "globalThis.__lm_synthetic_fetch" }- }))+ evaluate_until_value_async(+ &mut ctx,+ "SID-1",+ 371,+ "globalThis.__lm_synthetic_fetch",+ &json!("synthetic-body"),+ "fulfillRequest fetch result",+ ).await;- let resolved = take_response_by_id(&mut ctx, 371);- assert_eq!(resolved["result"]["result"]["value"], "synthetic-body");server.abort();}