I've been writing a code with python using Selenium that should access a webpage and download a pdf. But, when the driver clicks on the button it generates a new tab with the pdf, and I can't use that URL to download the PDF. Can anyone help me, please?
(example: if I ask my driver to "get" the PDF "URL", the driver opens the page I was before, the one it had the button that opens the PDF Chrome previewer)
If the problem seems understandable please inform me so I can try to explain it better.