How to convert Html Extent reports to PDF format (printable version)

a. Place the below code into .css file (eg: qaPrint.css)

.dark .test-item,

.dark .test-list-tools,

.dark .header,

.dark .side-nav,

.test-wrapper .test-content,

.info h5.test-status {display: none;}

.test-wrapper .test-list {width: 100%;}

.test-contents.d-none {display: block !important;}

.side-nav-folded .page-container {padding-left: 0;}

.test-wrapper .test-list .test-list-wrapper .test-list-item .test-item {cursor: default;}

.attachments {padding: 0;}

.dark .attachments>li {list-style-type: none; border: none !important;}

.detail-foot .attachments img {width: 99%; margin-top: 20px;}

/*page break for each test*/

.test-list-item .test-item{page-break-after: always;}

 

b.

Open generated Extent Html Report in note pad or note pad ++ and place the above CSS file

In Html under the head tag

<head>

<link href=”qaPrint.css” rel=”stylesheet” media=”print”>

</head>