INNER CODE UNIT · Python

main

yaojingang/GEOFlow · scripts/audit-admin-ui-v3-navigation.py:109

def main() -> int:
    parser = argparse.ArgumentParser()
    parser.add_argument("--base-url", default="http://localhost:28080")
    parser.add_argument("--output", default=str(OUTPUT_ROOT / "navigation-audit.json"))
    parser.add_argument("--screenshots", default=str(OUTPUT_ROOT / "screenshots" / "after"))
    parser.add_argument("--skip-screenshots", action="store_true")
    args = parser.parse_args()
    base_url = args.base_url.rstrip('/')

    output_path = Path(args.output)
    output_path.parent.mkdir(parents=True, exist_ok=True)
    screenshots = Path(args.screenshots)
    if not args.skip_screenshots:
        screenshots.mkdir(parents=True, exist_ok=True)
    checks = []

    with sync_playwright() as playwright:
        browser = playwright.chromium.launch(headless=True)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…