webdriver
webdriver copied to clipboard
Allow the "Print" command to include a header and footer, and to customize them via a template
Pls add displayHeaderFooter field to https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/print/PrintOptions.html
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.
Very interested by this feature, to standardize what Chrome proposes, thus allowing for nice exports of HTML documents to PDF.