Returns whether a specific Playwright feature is available.
Feature flag key from PlaywrightFeatures.
True if the installed Playwright version supports the feature.
if (hasFeature('hasAriaSnapshot')) { // aria snapshot assertions available} Copy
if (hasFeature('hasAriaSnapshot')) { // aria snapshot assertions available}
Returns whether a specific Playwright feature is available.