Load a local HTML file in Playwright by turning its path into a file:// URL with pathlib.Path.resolve().as_uri() and passing that URL to page.goto().