""" DEPRECATED - Superseded by capture_screen.py. The CDP full-page screenshot it used (Page.captureScreenshot with captureBeyondViewport) mis-renders this app: sticky sections are repainted, so the lower part of the image duplicates the top and the DOM coordinates no longer match the pixels. capture_screen.py stitches real device frames at measured scroll offsets instead. Kept so existing commands keep working; it forwards to the replacement. """ import runpy import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parent)) print( "[deprecated] cdp_bridge.py now runs capture_screen.py - see its --help for options.", file=sys.stderr, ) sys.argv[0] = str(Path(__file__).resolve().parent / "capture_screen.py") runpy.run_module("capture_screen", run_name="__main__")