---
title: Playwright Capabilities Builder | TestingBot
description: Build Playwright capabilities for automated testing with TestingBot.
  Choose browsers, devices, and configuration options to generate code for your Playwright
  tests.
source_url:
  html: https://testingbot.com/support/web-automate/playwright/capabilities
  md: https://testingbot.com/support/web-automate/playwright/capabilities/index.md
---
# Playwright Capabilities Generator

Generate Playwright connection options for your automated tests. Choose your browser, device emulation and configuration options to get the exact code you need for your Playwright tests.

[![Selenium capabilities](https://testingbot.com/assets/support/selenium-266ecc0599068fc6eca0bcd9174fb46053c95cebe1c66f7a50c480f3f1a52929.svg)Selenium ](https://testingbot.com/support/web-automate/selenium/capabilities)[![Appium capabilities](https://testingbot.com/assets/support/appium-4b35a8bb56bae236bd84c539cee9b8bbb489a55ddf48e32d059c86685d230354.svg)Appium ](https://testingbot.com/support/app-automate/appium/capabilities)[![Puppeteer capabilities](https://testingbot.com/assets/support/puppeteer-0a8cdd38af69dabd46638afbb3bffc8a372902949aa599663ec379f3e875263c.svg)Puppeteer ](https://testingbot.com/support/web-automate/puppeteer/capabilities)[![Playwright capabilities](https://testingbot.com/assets/support/playwright-2dcb4e75b55ac0d1135cfa47be6137b13f46a2047ce78b96a34f51b0e2cc0d96.svg)Playwright ](https://testingbot.com/support/web-automate/playwright/capabilities)

Browser Environment
  ![OS selected](https://testingbot.com/assets/environments/svg/windows11-0e1b28bc0fdd5034d3e4d3dc8d346c500a8c6522facf4b45d0da56537c1f1c6d.svg) Windows 11 › ![Browser Selected](https://testingbot.com/assets/environments/svg/chrome-c4081ff447d2d898d4afcb8f074a907c960e6f007716c1a1d119eee6803c4042.svg) Chrome 139 

Loading environments...

Please wait while we load the available browsers and platforms.

Resolution800x6001024x7681280x8001280x9601280x10241440x9001680x10501600x12001920x12001920x10802560x1440

## Project Capabilities

Test NameAllows you to customize the name of the test, as it will appear in the dashboard.

Build NameGroup tests under the same build identifier for easy retrieval.

## Debugging

Record Video
YesNo

## Customization

Headless ModeRun the browser without rendering UI for faster test execution.
YesNo

Geolocation TestingRun the test from a different geographical location.NoneRandom CountryAustraliaBelgiumBrazilCanadaChileFranceGermanyIndiaItalyJapanNorwaySingaporeSouth AfricaSwedenSwitzerlandUnited Arab EmiratesUnited KingdomUnited States

Timezone ([list of timezones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones))

Prerun Script ([documentation](https://testingbot.com/support/web-automate/selenium/test-options#prerun))

Upload URLs

Looking for more options? See [all Playwright capabilities](https://testingbot.com/support/web-automate/playwright/options).

    const playwright = require('playwright-core');
    
    (async () => {
      const capabilities = {
        browserName: 'chrome',
        browserVersion: 'latest',
        platformName: 'Windows 11',
        'tb:options': {
          'key': process.env.TB_KEY,
          'secret': process.env.TB_SECRET
        }
      }
      const browser = await playwright.chromium.connect({
        wsEndpoint: `wss://cloud.testingbot.com/playwright?capabilities=${encodeURIComponent(JSON.stringify(capabilities))}`
      });
      const context = await browser.newContext();
      const page = await context.newPage();
    
      await page.goto('https://testingbot.com/');
      await page.screenshot({ path: 'screenshot.png' });
    
      await browser.close();
    })();
