microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
65.41k stars 3.56k forks source link

[Docs]: Update documentation on basic authentication with pytest #30182

Closed unlikelyzero closed 3 weeks ago

unlikelyzero commented 6 months ago

Page(s)

https://playwright.dev/python/docs/auth

Description

I'd like to add a section on basic authentication for pytest.


#In conftest.py, add the following:

@pytest.fixture(scope="session")
def browser_context_args(browser_context_args):
    return {
        **browser_context_args,
        "http_credentials": {'username': E2E_USERNAME, 'password': E2E_PASSWORD},
    }
unlikelyzero commented 6 months ago

Note: this would be useful as I've seen several people use set_extra_http_headers and run into issues

mxschmitt commented 5 months ago

Moving upstream, hence this is about adding a basic authentication section to all the language bindings docs. Right now its poorly visible in the docs, "basic auth" does not end up in any docs hits, while it should lead to https://playwright.dev/docs/network#http-authentication or end up getting mirrored in the auth.md.

pavelfeldman commented 3 weeks ago

Why was this issue closed?

Thank you for your involvement. This issue was closed due to limited engagement (upvotes/activity), lack of recent activity, and insufficient actionability. To maintain a manageable database, we prioritize issues based on these factors.

If you disagree with this closure, please open a new issue and reference this one. More support or clarity on its necessity may prompt a review. Your understanding and cooperation are appreciated.