Browsers and programming languages supported by Playwright
Playwright supports a variety of browsers and programming languages. Here's a breakdown of the supported browsers and languages:
Supported Browsers
-
Chromium
- This is the default browser for Playwright.
- Install command:
npx playwright install chromium
-
Firefox
- Install command:
npx playwright install firefox
- Install command:
-
WebKit
- Install command:
npx playwright install webkit
- Install command:
Supported Programming Languages
Playwright supports multiple programming languages with similar APIs across all of them:
-
JavaScript / Node.js
- Primary language for Playwright.
- Example: JavaScript with Node.js runtime.
-
TypeScript
- TypeScript is fully supported and offers strong typing benefits.
-
Python
- Playwright for Python is available via the
playwright-python
package.
- Playwright for Python is available via the
-
C#
- Playwright for C# is supported through the
PlaywrightSharp
library.
- Playwright for C# is supported through the
-
Java
- Playwright for Java is supported via the
playwright-java
package.
- Playwright for Java is supported via the
Example of Installation
Here's an example of how to install Playwright and a specific browser:
# Install Playwright and Chromium
npm install playwright
npx playwright install chromium
Published on: Jun 28, 2024, 01:55 AM