Info Logs

Log a message to report

Example

I.goTo("https://en.wikipedia.org/wiki/Main_Page")

// extract text from the ID
var sampleInfo = I.getText("#Welcome_to_Wikipedia")
// Report the extracted text using TEST.log.info
TEST.log.info("The extracted text is: "+ sampleInfo)

Gets the text from the element with the id "Welcome_to_Wikipedia" and prints it to the report.

Usage

TEST.log.info(message)

Parameters

ParameterTypeRemarks
messagestringMessage to log to report
Last Updated: