Skip to content

Report: print stylesheet for "Save as PDF" #221

Closed

Description

@shossain786

report.css has no print rules, so printing or saving the report as PDF includes the sidebar and filter controls and cuts off content. Add a @media print stylesheet.

Done when: printing hides the sidebar, filters and buttons; detail rows of failed tests are expanded; charts and table rows don't split across pages; text is readable on a light background even when the dark theme is active.

Relevant code: src/main/resources/report/ (report.js, report.css, partials/*.html); HtmlReportGenerator.java fills the {{...}} placeholders. To see your change, run the selenium-boot-test suite against your local build (mvn clean install -DskipTests, then mvn test -Dselenium-boot.version=<your-version>) and open the generated selenium-boot-report.html. Check dark theme and a matrix run. Comment here before starting so we don't double up.

Activity

  1. AnubhavMaheshwari commented on Nov 2, 2026

    @AnubhavMaheshwari
    Contributor

    Hi! I'd like to work on this issue. I'll inspect the existing report CSS and HTML, add print-specific styles to hide unnecessary controls, improve readability, and prevent report content from splitting across pages. I'll also test the output with both light and dark themes before submitting a PR. Please let me know if anyone is already working on this.

  2. AnubhavMaheshwari commented on Nov 3, 2026

    @AnubhavMaheshwari
    Contributor

    Hi, thanks for the feedback!

    I've addressed the requested changes:

    1. Fixed the LF/CRLF line-ending issue.
    2. Updated the test command to ./mvnw test.
    3. Successfully executed all 871 tests with zero failures.
    4. Generated TestNG HTML reports and attached PDF evidence of the print-preview verification.

    I've pushed the updated changes. Could you please review the PR again?

    Thanks!

    TestNG reports1.pdf
    TestNG Report.pdf

  3. added a commit that references this issue on Nov 4, 2026
  4. shossain786 commented on Nov 4, 2026

    @shossain786
    ContributorAuthor

    Fixed by #236 — thanks @AnubhavMaheshwari for the print stylesheet. It will ship in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or requesthelp wantedExtra attention is neededreportingHTML report / dashboard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions