The information in this topic may be out of date. The current SDK reference guide has moved here.

getException method

Class: TestResultContainerPlatform: PlaywrightLanguage: JavaScript SDK:

Returns an indication if the test failed with an exception.


let value = obj.getException();
value = obj.exception;

Note that this feature is available as both a method and a property.


This method does not take any parameters.

Return value

Type: EyesError
A value that is not null indicates that an exception occured when running the test.