How to read a PDF file opened in browser using Selenium WebDriver Python?

Viewed 993

I'm trying to automate a task in which a PDF file is generated on clicking a link. My browser settings are such that the file gets opened in a new tab of browser. The browser settings can't be changed as it'll impact other jobs on a daily run.

Is there a way through which we can read the contents of the PDF file opened in the browser in SeleniumWebdriver using Python?

I'm mainly using Chrome or Firefox to automate the task.

0 Answers
Related