📄 playwright-python/docs/api/class-workerinfo

File: class-workerinfo.md | Updated: 11/18/2025

Source: https://playwright.dev/docs/api/class-workerinfo

Skip to main content

On this page

WorkerInfo contains information about the worker that is running tests and is available to worker-scoped fixtures. WorkerInfo is a subset of TestInfo that is available in many other places.


Properties


config

Added in: v1.10 workerInfo.config

Processed configuration from the configuration file .

Usage

workerInfo.config

Type


parallelIndex

Added in: v1.10 workerInfo.parallelIndex

The index of the worker between 0 and workers - 1. It is guaranteed that workers running at the same time have a different parallelIndex. When a worker is restarted, for example after a failure, the new worker process has the same parallelIndex.

Also available as process.env.TEST_PARALLEL_INDEX. Learn more about parallelism and sharding with Playwright Test.

Usage

workerInfo.parallelIndex

Type


project

Added in: v1.10 workerInfo.project

Processed project configuration from the configuration file .

Usage

workerInfo.project

Type


workerIndex

Added in: v1.10 workerInfo.workerIndex

The unique index of the worker process that is running the test. When a worker is restarted, for example after a failure, the new worker process gets a new unique workerIndex.

Also available as process.env.TEST_WORKER_INDEX. Learn more about parallelism and sharding with Playwright Test.

Usage

workerInfo.workerIndex

Type