public static ExtentReports Instance() { ExtentReports extent; String Path = "./Report1.html"; System.out.println(Path); extent = new ExtentReports(Path, false); extent .config() .documentTitle("Automation Report") .reportName("Regression") .insertJs("$('.quick-test-summary + table th:nth-child(2)').text('StepsPassed');") .insertJs("$('.quick-test-summary + table th:nth-child(7)').text('Screenshots');") .insertJs("$('.quick-test-summary + table th:nth-child(3)').text('StepsFailed');") .insertJs("$('.quick-test-summary + table th:nth-child(8)').text('StepsSkipped');"); return extent; }