Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs: http auth via config (#19643)
Pavel Feldmana248be86ce55
diff --git a/docs/src/network.md b/docs/src/network.mdindex 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-libraryconst context = await browser.newContext({httpCredentials: {username: 'bill',