From 4f6071a782464b2c0e323e9d9c6279fe120ad385 Mon Sep 17 00:00:00 2001 From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Tue, 11 May 2021 16:06:25 +0530 Subject: [PATCH 1/3] docs(conda): added docs for usage with conda --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 743814b90..8f0486dc6 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,9 @@ Headless execution is supported for all browsers on all platforms. - [Intercept network requests](#intercept-network-requests) - [Documentation](#documentation) -## Usage +## Usage - pip + +![](https://img.shields.io/pypi/v/playwright) ```sh pip install playwright @@ -33,6 +35,19 @@ playwright install This installs Playwright and browser binaries for Chromium, Firefox and WebKit. Playwright requires Python 3.7+. +## Usage - conda + +![](https://img.shields.io/conda/v/microsoft/playwright) + +```sh +conda config --add channels conda-forge +conda config --add channels microsoft +conda install playwright +playwright install +``` + +This installs Playwright and browser binaries for Chromium, Firefox and WebKit with the conda package manager. Playwright requires conda environment with Python 3.7+. + #### Record and generate code Playwright can record user interactions in a browser and generate code. [See demo](https://user-images.githubusercontent.com/284612/95930164-ad52fb80-0d7a-11eb-852d-04bfd19de800.gif). From c2d5b6b59c0edeb4d5c385f7a4c7059deea5ab26 Mon Sep 17 00:00:00 2001 From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Tue, 11 May 2021 16:18:30 +0530 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: Max Schmitt --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8f0486dc6..571aa9347 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Headless execution is supported for all browsers on all platforms. ## Usage - pip -![](https://img.shields.io/pypi/v/playwright) +[![PyPI version](https://badge.fury.io/py/playwright.svg)](https://pypi.python.org/pypi/playwright/) ```sh pip install playwright @@ -37,7 +37,7 @@ This installs Playwright and browser binaries for Chromium, Firefox and WebKit. ## Usage - conda -![](https://img.shields.io/conda/v/microsoft/playwright) +[![Anaconda version](https://img.shields.io/conda/v/microsoft/playwright)](https://anaconda.org/Microsoft/playwright) ```sh conda config --add channels conda-forge @@ -46,7 +46,7 @@ conda install playwright playwright install ``` -This installs Playwright and browser binaries for Chromium, Firefox and WebKit with the conda package manager. Playwright requires conda environment with Python 3.7+. +This installs Playwright and browser binaries for Chromium, Firefox and WebKit with the conda package manager. Playwright requires a conda environment with Python 3.7+. #### Record and generate code From 3d79dd494291c889e313f2aef107df090f5af163 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 11 May 2021 20:44:42 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 571aa9347..a5665e429 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 🎭 [Playwright](https://playwright.dev) for Python [![PyPI version](https://badge.fury.io/py/playwright.svg)](https://pypi.python.org/pypi/playwright/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) +# 🎭 [Playwright](https://playwright.dev) for Python [![PyPI version](https://badge.fury.io/py/playwright.svg)](https://pypi.python.org/pypi/playwright/) [![Anaconda version](https://img.shields.io/conda/v/microsoft/playwright)](https://anaconda.org/Microsoft/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) #### [Docs](https://playwright.dev/python/docs/intro) | [API](https://playwright.dev/python/docs/api/class-playwright)