Skip to content

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

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

Max Schmitt732ee1502c40
diff --git a/docs/src/intro-python.md b/docs/src/intro-python.md
index bc3d06f8e8..8a07ab3a12 100644
--- a/docs/src/intro-python.md
+++ b/docs/src/intro-python.md
@@ -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