docs(python): add note about pytest-playwright on Anaconda (#26372)

Fixes https://github.com/microsoft/playwright-pytest/issues/127
This commit is contained in:
Max Schmitt 2023-08-09 15:43:02 +02:00 committed by GitHub
parent a61431f6bb
commit 732ee1502c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,12 +9,36 @@ Playwright recommends using the official [Playwright Pytest plugin](./test-runne
Get started by installing Playwright and running the example test to see it in action.
<Tabs
groupId="package-managers"
defaultValue="pypi"
values={[
{label: 'PyPI', value: 'pypi'},
{label: 'Anaconda', value: 'anaconda'}
]
}>
<TabItem value="pypi">
Install the [Pytest plugin](https://pypi.org/project/pytest-playwright/):
```bash
pip install pytest-playwright
```
</TabItem>
<TabItem value="anaconda">
Install the [Pytest plugin](https://anaconda.org/Microsoft/pytest-playwright):
```bash
conda config --add channels conda-forge
conda config --add channels microsoft
conda install playwright
```
</TabItem>
</Tabs>
Install the required browsers:
```bash