microsoft / microsoft/playwright

[Feature] Support socks5 proxy with authentication

Open
#10,567 34 comments 55 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P3-collecting-feedback
Dominant language
TypeScript
Stars
96.4k
Forks
6.5k
Avg merge
1d 6h
Merged PRs (30d)
180

Description

Playwright version

lastest

Operating system

No response

What browsers are you seeing the problem on?

No response

Other information

No response

What happened? / Describe the bug
  _proxy = {
        "server": f"{proxy.scheme}://{proxy.ip}:{proxy.port}",
        "username": f"{proxy.username}",
        "password": f"{proxy.password}"
    }

this proxy is correct, i can use it via requests. but in playwright, it doesnt work .
the doc says it support http or socks,
how to use socks5 proxy ?
thank yoy.

Code snippet to reproduce your bug
_proxy = {
            "server": f"{proxy.scheme}://{proxy.ip}:{proxy.port}",
            "username": f"{proxy.username}",
            "password": f"{proxy.password}"
        }

this proxy is correct, i can use it via requests. but in playwright, it doesnt work .
the doc says it support http or socks, 
how to use socks5 proxy ?
thank yoy.
Relevant log output

No response

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 Playwright's proxy configuration and the authenticated SOCKS5 example in the issue, then reproduce the behavior using the provided Python snippet. The work is done when Playwright supports SOCKS5 proxies with username and password authentication and the behavior is verified against the existing HTTP and SOCKS proxy support.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, typescript
Domain
networking, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.