Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: http auth via config (#19643)

Pavel Feldmana248be86ce55
diff --git a/docs/src/network.md b/docs/src/network.md
index a704fa49d4..a08cb5a437 100644
--- a/docs/src/network.md
+++ b/docs/src/network.md
@@ -8,9 +8,20 @@ Playwright provides APIs to **monitor** and **modify** network traffic, both HTT
## HTTP Authentication
-Perform HTTP Authentication with [`method: Browser.newContext`].
+Perform HTTP Authentication.
+
+```js tab=js-ts
+const config: PlaywrightTestConfig = {
+ use: {
+ httpCredentials: {
+ username: 'bill',
+ password: 'pa55w0rd',
+ }
+ }
+}
+```
-```js
+```js tab=js-library
const context = await browser.newContext({
httpCredentials: {
username: 'bill',