docs(network): fixed proxy typo with username (#6716)

This commit is contained in:
Max Schmitt 2021-05-24 18:35:58 +02:00 committed by GitHub
parent 48b48828cc
commit 88defbd5a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ Here is an example of a global proxy:
const browser = await chromium.launch({ const browser = await chromium.launch({
proxy: { proxy: {
server: 'http://myproxy.com:3128', server: 'http://myproxy.com:3128',
user: 'usr', username: 'usr',
password: 'pwd' password: 'pwd'
} }
}); });
@ -93,7 +93,7 @@ Browser browser = chromium.launch(new BrowserType.LaunchOptions()
```python async ```python async
browser = await chromium.launch(proxy={ browser = await chromium.launch(proxy={
"server": "http://myproxy.com:3128", "server": "http://myproxy.com:3128",
"user": "usr", "username": "usr",
"password": "pwd" "password": "pwd"
}) })
``` ```
@ -101,7 +101,7 @@ browser = await chromium.launch(proxy={
```python sync ```python sync
browser = chromium.launch(proxy={ browser = chromium.launch(proxy={
"server": "http://myproxy.com:3128", "server": "http://myproxy.com:3128",
"user": "usr", "username": "usr",
"password": "pwd" "password": "pwd"
}) })
``` ```