2020-09-10 03:33:10 +03:00
|
|
|
# Supported languages
|
|
|
|
|
|
|
|
The Playwright API is available in multiple languages.
|
|
|
|
|
|
|
|
<!-- GEN:toc -->
|
|
|
|
- [JavaScript and TypeScript](#javascript-and-typescript)
|
|
|
|
- [Python](#python)
|
|
|
|
- [C#](#c)
|
2020-09-14 17:54:58 +03:00
|
|
|
- [Go](#go)
|
2020-09-10 03:33:10 +03:00
|
|
|
<!-- 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
|
|
|
|
|
2020-09-14 17:54:58 +03:00
|
|
|
Playwright for Python is available in preview.
|
2020-09-10 03:33:10 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
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#
|
|
|
|
|
2020-09-14 17:54:58 +03:00
|
|
|
Playwright for C# is available in preview.
|
2020-09-10 03:33:10 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
dotnet add package PlaywrightSharp
|
|
|
|
```
|
|
|
|
|
|
|
|
* [Playwright on NuGet](https://www.nuget.org/packages/PlaywrightSharp/)
|
|
|
|
* [GitHub repo](https://github.com/hardkoded/playwright-sharp)
|
2020-09-14 17:54:58 +03:00
|
|
|
|
|
|
|
## Go
|
|
|
|
|
|
|
|
Playwright for Go is available in preview.
|
|
|
|
|
|
|
|
```
|
|
|
|
go get github.com/mxschmitt/playwright-go
|
|
|
|
```
|
|
|
|
|
|
|
|
* [GitHub repo](https://github.com/mxschmitt/playwright-go)
|
|
|
|
* [Documentation](https://pkg.go.dev/github.com/mxschmitt/playwright-go?tab=doc)
|