Skip to main content
Version: 1.x

Interface: PlaywrightFeatures

Feature flags indicating available Playwright APIs.

Example

const features: PlaywrightFeatures = detectFeatures(version);
if (features.hasClockAPI) { ... }

Properties

hasAriaSnapshot

readonly hasAriaSnapshot: boolean


hasAriaSnapshotBoxes

readonly hasAriaSnapshotBoxes: boolean


hasAriaSnapshotDepth

readonly hasAriaSnapshotDepth: boolean


hasBoxedStep

readonly hasBoxedStep: boolean


hasBrowserContextEvent

readonly hasBrowserContextEvent: boolean


hasClockAPI

readonly hasClockAPI: boolean


hasCustomExpect

readonly hasCustomExpect: boolean


hasFilterLocator

readonly hasFilterLocator: boolean


hasGetByRoleDescription

readonly hasGetByRoleDescription: boolean


hasLocatorAssertions

readonly hasLocatorAssertions: boolean


hasLocatorDrop

readonly hasLocatorDrop: boolean


hasLocatorHighlightStyle

readonly hasLocatorHighlightStyle: boolean


hasLocatorNormalize

readonly hasLocatorNormalize: boolean


hasPageAriaSnapshot

readonly hasPageAriaSnapshot: boolean


hasRouteFromHAR

readonly hasRouteFromHAR: boolean


hasScreencastAPI

readonly hasScreencastAPI: boolean


hasScreencastTimestamp

readonly hasScreencastTimestamp: boolean


hasScreenshotCaret

readonly hasScreenshotCaret: boolean


hasSetStorageState

readonly hasSetStorageState: boolean


hasSoftPoll

readonly hasSoftPoll: boolean


hasTestAbort

readonly hasTestAbort: boolean


hasTracingHAR

readonly hasTracingHAR: boolean


hasURLPatternMatcher

readonly hasURLPatternMatcher: boolean


hasVideoRetainModes

readonly hasVideoRetainModes: boolean


hasWebAuthnCredentials

readonly hasWebAuthnCredentials: boolean


hasWebStorageAPI

readonly hasWebStorageAPI: boolean