getException method

Class: TestResultContainerPlatform: Selenium 4Language: JavaScript SDK:

Returns an indication if the test failed with an exception.

Syntax


let value = obj.getException();

Parameters

This method does not take any parameters.

Return value

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