Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

590 B
Raw Blame
from __future__ import annotations

import os
import sys
from pathlib import Path
from typing import Any

from .external_process import run_external_json_process


CDP_USE_SCRIPT = Path(__file__).resolve().parents[1] / "cdp_use_smoke.py"


async def run_cdp_use_group(
    endpoint: str,
    fixture: str,
    results: list[dict[str, Any]],
) -> None:
    await run_external_json_process(
        "cdp-use",
        [
            os.environ.get("CDP_USE_PYTHON", sys.executable),
            str(CDP_USE_SCRIPT),
            endpoint,
            fixture,
        ],
        results,
    )