Nikhil Surendran
Nikhil Surendran

Reputation: 1006

How to remove version from the extent report

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

Upvotes: 0

Views: 1806

Answers (2)

user8316197
user8316197

Reputation: 45

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>

Upvotes: 0

Dingredient
Dingredient

Reputation: 2199

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>

Upvotes: 5

Related Questions