• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

238
Views
Not able to remove elements using custom java script on extentreport in c#

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

about 3 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error