Skip to content
Advertisement

Not able to create object of ExtentReports

I am new to extent reporting. I am using Selenium Webdriver and want to use Extent reports with it.

But my code is not able to create ExtentReport object.

JavaScript

The above code is giving exception as :

JavaScript

Using the below configuration :

JavaScript

if anyone have idea. Please help.

Advertisement

Answer

I tested your code. It shows no exception at my end. But to get your HTML report you need to flush using reports.flush() just before reports.endTest(logger);.

Advertisement