Skip to content

Support local html files (file://) #188

@Joopsnijder

Description

@Joopsnijder

I want to use the tool for testing purposes in such a way that coding agents can 'see' the output of generated HTML files. But, I get an error when referencing a local HTML file that starts with file://

 File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/playwright/_impl/_connection.py", line 559, in wrap_api_call
    raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
playwright._impl._errors.Error: Page.goto: net::ERR_NAME_NOT_RESOLVED at http://file///Users/joopsnijder/Projects/owasp_agentic_auditor/docs/audit/owasp_agentic_top_10_agent_20251220_213653/owasp_agentic_top_10_agent_20251220_213653.html
Call log:
  - navigating to "http://file///Users/joopsnijder/Projects/owasp_agentic_auditor/docs/audit/owasp_agentic_top_10_agent_20251220_213653/owasp_agentic_top_10_agent_20251220_213653.html", waiting until "load"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions