Combine multiple pages to print after clicking multiple buttons but only with Chrome Console

Viewed 23

I know the title is a bit confusing but I'll try to explain what I'm trying to do. :)

Based on this question: Programmatically clicking all buttons on a page in Chrome's console

I want to press all the buttons to pick items and print invoices in an e-commerce marketplace backend that I can only manipulate via the Chrome Console and then, logically, print all the invoices.

Pressing all the "pick" buttons works great but when I do the same for the "print" buttons, the browser only opens the print preview of the first button[0] once and all the others are ignored.

Is it somehow possible to print all documents or to collect them in a kind of array and then print them? Or is it possible to tell the browser not to show a print preview and print directly?

0 Answers
Related