w3c / w3c/webdriver

current_url.py::test_get_current_url_file_protocol should open a real file

Open
#1,232 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
718
Forks
228
PR merge metrics
No merged PRs in 30d

Description

Currently this test fails in WebKit / Safari because there is no file browser like in Firefox, so the provisional load fails and Safari opens a Finder window since it doesn't know how to open the file (in this case, file:/// refers to the root volume). However, navigating to file:// URIs for files with supported MIME types should just work. Perhaps we need a fixture for creating temporary files similar to the inline-HTML-over-HTTP snippet.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with current_url.py::test_get_current_url_file_protocol and compare it with the inline-HTML-over-HTTP fixture mentioned in the issue. Add or use temporary-file setup so the test navigates to a supported file:// URI, then verify it passes in WebKit/Safari as well as existing browsers.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.