How to remove version from the extent report

1.7k Views Asked by At

I am using the extent report in my selenium project ,i want to remove the version showing in the right corner of the report.

can any one help me on this.enter image description here

2

There are 2 best solutions below

0
On BEST ANSWER

Do you have a extent-config.xml file?

Find in there something that looks like this:

   <styles>
      <![CDATA[

      ]]>
    </styles>

And add your custom css. You'll have to inspect the element you want to hide, to find a selector for it. And then you can add css, something like this:

   <styles>
      <![CDATA[
        #id-of-the-element{display:none};
      ]]>
    </styles>
0
On

Alternate solution:

You will find something like this in extent-config.xml

 <scripts>
        <![CDATA[
            $(document).ready(function() {

            });
        ]]>
    </scripts>

Simply make this change:

<scripts>
        <![CDATA[
            $(document).ready(function() {
            document.getElementsByClassName("class name")[1].remove()
            });
        ]]>
    </scripts>