Click here to Skip to main content
15,886,860 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi All,

I have a problem in reading pdf through Selenium. I click a link through Selenium and a pdf gets open. now i have to read a pdf's content. i didn't find any way to do it... can anyone help me.
Posted

Selenium[^] is for browser automation so why would you want to read a PDF file's content with it. Why don't you write a application that downloads the PDF in question and then analyze it wiht iTextSharp[^] for instance. You'll have to explain a bit more what exactly you are trying to achieve.

Regards,

— Manfred
 
Share this answer
 
Comments
Manfred Rudolf Bihy 17-Apr-13 4:13am    
"Time limit", "automating access to a banking site" these two key phrases make my hair stand on end. Unless you can explain a bit more what is going on I'll refrain from giving further advice as this sounds kind of fishy to my.

Sorry!
punkiv 17-Apr-13 8:38am    
i am doing automation for my banking project. I have achieved time limit of 10 mins for this test case, but this is too large for this......as i have to run other test cases sequentially..... so if i will go and save pdf in different formate and then try to read content then validate it.... it will increase time and lots of other tedious effort. so if there is any alternative to read content of pdf when it gets open first time on clicking the given link......how would i pass the WebDriver object from my web page to that pdf ??
I wrote a Java Maven Selenium project that compare two pdf files hosted on the web server. This project uses Selenium Web Driver, Apache Pdf box and Google Diff Match Patch project. Review the article below.
If you like the article, make sure to recommend the site to Google plus.

http://seleniummaster.com/sitecontent/index.php/selenium-test-automation-with-java/165-comparing-pdf-documentations-with-selenium[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900