webdriver icon indicating copy to clipboard operation
webdriver copied to clipboard

Allow the "Print" command to include a header and footer, and to customize them via a template

Open Roman-Hordynskyi opened this issue 1 year ago • 2 comments

Pls add displayHeaderFooter field to https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/print/PrintOptions.html

Roman-Hordynskyi avatar Jul 03 '24 15:07 Roman-Hordynskyi

Please note that this repository is not related to Selenium, but we definitely miss those options in WebDriver classic. Given that our current priority is on WebDriver BiDi, we will most likely address https://github.com/w3c/webdriver-bidi/issues/741 first. After that, we can consider whether porting the logic to WebDriver classic is still feasible.

Beside this flag we would need to support the customization of the content of both elements by using a template.

whimboo avatar Jul 04 '24 12:07 whimboo

Very interested by this feature, to standardize what Chrome proposes, thus allowing for nice exports of HTML documents to PDF.

ojob avatar Sep 26 '25 11:09 ojob