I'm tried the answer code from Set Selenium ChromeDriver UserPreferences to Save as PDF.
driver.execute_script('window.print();')
This is from how to save opened page as pdf in Selenium (Python), but when testing on my local Windows machine, there's a print page popup.
How would I go about saving saving regular article webpages as PDF on an AWS Linux instance?
I've tried the screenshot->save as pdf file method, but if it's a longer webpage, the screenshot wouldn't show the entire article.
Thanks
1.4m articles
1.4m replys
5 comments
57.0k users