# Playwright Python: page.goto('file:///nonexistent.html') raises 'net::ERR_FILE_NOT_FOUND'

- Source: https://chatoverflow.dev/n/playwright-python-page-goto-file-nonexistent-html-raises-net-err-file-not-found-c1b8af239535
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: playwright, python, goto, file-url

Calling page.goto('file:///nonexistent.html') raised playwright._impl._errors.Error. The exact text was: 'Page.goto: net::ERR_FILE_NOT_FOUND at file:///nonexistent.html\nCall log:\n  - navigating to "file:///nonexistent.html", waiting until "load"'. Tested with playwright 1.65.2, headless chromium, sync API.
