docs: add page on language bindings (#3819)

This commit is contained in:
Arjun Attam 2020-09-09 17:33:10 -07:00 committed by GitHub
parent 777689a96a
commit 4240e1df1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 2 deletions

View File

@ -22,6 +22,7 @@ Playwright is a library to automate [Chromium](https://www.chromium.org/Home), [
- [Get started](./intro.md) - [Get started](./intro.md)
- [Core concepts](./core-concepts.md) - [Core concepts](./core-concepts.md)
- [Debugging](./debug.md) - [Debugging](./debug.md)
- [Supported languages](./languages.md)
1. Guides 1. Guides
- [Selectors](./selectors.md) - [Selectors](./selectors.md)
- [Input](./input.md) - [Input](./input.md)

43
docs/languages.md Normal file
View File

@ -0,0 +1,43 @@
# Supported languages
The Playwright API is available in multiple languages.
<!-- GEN:toc -->
- [JavaScript and TypeScript](#javascript-and-typescript)
- [Python](#python)
- [C#](#c)
<!-- GEN:stop -->
## JavaScript and TypeScript
Playwright for JavaScript and TypeScript is generally available.
```
npm i -D playwright
```
* [Playwright on NPM](https://www.npmjs.com/package/playwright)
* [GitHub repo](https://github.com/microsoft/playwright)
## Python
Playwright in Python is available in preview.
```
pip install playwright
```
* [Playwright on PyPI](https://pypi.org/project/playwright/)
* [GitHub repo](https://github.com/microsoft/playwright-python)
* [Pytest integration](https://github.com/microsoft/playwright-pytest)
## C#
Playwright in C# is available in preview.
```
dotnet add package PlaywrightSharp
```
* [Playwright on NuGet](https://www.nuget.org/packages/PlaywrightSharp/)
* [GitHub repo](https://github.com/hardkoded/playwright-sharp)

View File

@ -35,7 +35,7 @@ Playwright enables fast, reliable and capable automation across all modern brows
* **Modern web features**. Playwright supports web components through [shadow-piercing selectors](selectors.md), [geolocation, permissions](emulation.md), web workers and other modern web APIs. * **Modern web features**. Playwright supports web components through [shadow-piercing selectors](selectors.md), [geolocation, permissions](emulation.md), web workers and other modern web APIs.
* **Capabilities to cover all scenarios**. Support for [file downloads](network.md) and [uploads](input.md), native [input events](input.md), and even [dark mode](emulation.md). * **Capabilities to cover all scenarios**. Support for [file downloads](network.md) and [uploads](input.md), out-of-process iframes, native [input events](input.md), and even [dark mode](emulation.md).
## Integrates with your workflow ## Integrates with your workflow
* **One-line installation**. Running `npm i playwright` auto-downloads browser dependencies for your team to be onboarded quickly. * **One-line installation**. Running `npm i playwright` auto-downloads browser dependencies for your team to be onboarded quickly.
@ -44,7 +44,7 @@ Playwright enables fast, reliable and capable automation across all modern brows
* **Debugging tools**. Playwright works with the [editor debugger and browser developer tools](debug.md) to pause execution and inspect the web page. * **Debugging tools**. Playwright works with the [editor debugger and browser developer tools](debug.md) to pause execution and inspect the web page.
* **Language bindings**. Playwright is also available in [Python](https://github.com/microsoft/playwright-python) and [C#](https://github.com/hardkoded/playwright-sharp). * **Language bindings**. Playwright is also available in [Python](https://github.com/microsoft/playwright-python) and [C#](https://github.com/hardkoded/playwright-sharp). Learn about [supported languages](./languages.md).
* **Deploy tests to CI**. First-party [Docker image](docker/README.md) and [GitHub Actions](https://github.com/microsoft/playwright-github-action) to deploy tests to [your preferred CI/CD provider](ci.md). * **Deploy tests to CI**. First-party [Docker image](docker/README.md) and [GitHub Actions](https://github.com/microsoft/playwright-github-action) to deploy tests to [your preferred CI/CD provider](ci.md).