I created an automation that goes into a website that has login and password, and when the automation finishes filling the form on the page, try to save in PDF
The problem is that in selenium 3, it doesn't have the same options as selenium 4 to save to PDF
Selenium 4 - I would use the code below to convert the HTML page to PDF in selenium 4
Map<String, Object> params = new HashMap();
String command = "Page.printToPDF";
Map<String, Object> output = chromeDriver.executeCdpCommand(command, params);
In selenium 3 if I put the same code it gives an error that the executeCdpCommand method does not exist.
I can't use selenium 4, due to company rules.
Does anyone have an alternative please?