Home  Playwright   Browsers an ...

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

  1. Chromium

    • This is the default browser for Playwright.
    • Install command: npx playwright install chromium
  2. Firefox

    • Install command: npx playwright install firefox
  3. WebKit

    • Install command: npx playwright install webkit

Supported Programming Languages

Playwright supports multiple programming languages with similar APIs across all of them:

  1. JavaScript / Node.js

    • Primary language for Playwright.
    • Example: JavaScript with Node.js runtime.
  2. TypeScript

    • TypeScript is fully supported and offers strong typing benefits.
  3. Python

    • Playwright for Python is available via the playwright-python package.
  4. C#

    • Playwright for C# is supported through the PlaywrightSharp library.
  5. Java

    • Playwright for Java is supported via the playwright-java package.

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  
 

Comments

Add your comment