Open kazurayam opened 1 year ago
How would the Katalon's Report HTML would look like in PDF?
:~/katalon-workspace/waitForElementNotPresentWorksOrNot/build/tmp/htmltopdf/Reports/20230828_201457/TS2/20230828_201457 (develop *)
$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless --disable-gpu --print-to-pdf 20230828_201457.html
58785 bytes written to file output.pdf
This produced this
This looks fine.
But I need to "expandAllChildren('s') before printing the page into PDF.
Well, it's easy.
expandAllChildren('s1')
<div>
nodes will be open.chrome --print-to-pdf file
and save the file into wherever I like.Now I feel I can implement this idea successful. This idea deserves an independent project. The project will produce a new Katalon Studio keyword.
According to the Chroms doc
I can print any HTML into PDF in commandline.
This produced this: output.pdf
This looks just great! Chrome supports this. Highly reliable.