setSendDom method

Class: ConfigurationPlatform: NightwatchLanguage: JavaScript SDK:

Use this method to set if DOM information should be sent for checkpoints.

The availability of the DOM is necessary for advanced server analysis, for example the RCA feature. See Root cause analysis for more information.

Syntax

let configval = config.setSendDom(sendDom);
config.sendDom = configval;
configval = config.sendDom;

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

Parameters

sendDom
Type:boolean
A value of true means that DOM information will be sent. A value of false means that DOM information will not be sent.

Return value

Type: Configuration
The value returned is the object that called the method. This allows you to use a fluent style to call the setXXXX methods of the Configuration class.

Remarks

Sending DOM information is enabed by default, so use this method only if you have to disable it.