name property

Class: TestResultsPlainPlatform: PlaywrightLanguage: JavaScript SDK:

Use this property to retrieve the name of the test.

Syntax

value = result.name;

Type:string

The name of the test.