-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Browsers page rework #21051
docs: Browsers page rework #21051
Conversation
Co-authored-by: Dmitry Gozman <dgozman@gmail.com> Signed-off-by: Debbie O'Brien <debs-obrien@users.noreply.github.com>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com> Signed-off-by: Debbie O'Brien <debs-obrien@users.noreply.github.com>
docs/src/browsers.md
Outdated
/* Test against branded browsers. */ | ||
{ | ||
name: 'Microsoft Edge', | ||
use: { channel: 'msedge' }, // or 'msedge-beta', 'msedge-dev' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use: { channel: 'msedge' }, // or 'msedge-beta', 'msedge-dev' | |
use: { ...devices['Desktop Edge'], channel: 'msedge' }, // or 'msedge-beta', 'msedge-dev' |
docs/src/browsers.md
Outdated
``` | ||
|
||
```powershell tab=bash-powershell lang=python | ||
```python async | ||
# Can be "msedge", "chrome-beta", "msedge-beta", "msedge-dev", etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use --browser-channel
from https://playwright.dev/python/docs/test-runners#cli-arguments.
docs/src/browsers.md
Outdated
## Run tests on different browsers | ||
Test against mobile viewports: | ||
|
||
```python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thats bash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
docs/src/browsers.md
Outdated
``` | ||
Test against branded browsers: | ||
|
||
```python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thats bash
|
||
In certain cases, it is desired to avoid browser downloads altogether because | ||
browser binaries are managed separately. | ||
|
||
This can be done by setting `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD` variable before installation. | ||
|
||
```bash tab=bash-bash lang=js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets remove these 3 snippets as per https://github.com/microsoft/playwright/pull/21051/files#r1115394962?
Thanks |
No description provided.