getException method

Class: TestResultContainerPlatform: WebdriverIO 5Language: 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.