I need to remove some elements from extent report for which I am using extent-config.xml file where custom java script can be placed. Using below code for the same
<!-- custom javascript -->
<scripts>
<![CDATA[
$(document).ready(function() {
document.getElementsByClassName("badge badge-primary")[0].remove()
});
]]>
</scripts>
ExtentReport - 4.1.0 with c#
Also tried
$(document).ready(function() {
document.getElementsByClassName("badge badge-primary")[0].style.visibility = "hidden";
</script>
});
and Also tried
$(document).ready(function() {
document.getElementsByClassName("badge badge-primary")[0].style.display = "none";
</script>
});
After generating report I can still able to see the item