通过硒阅读pdf的问题 [英] problem in reading pdf through selenium

查看:87
本文介绍了通过硒阅读pdf的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在通过Selenium阅读pdf时遇到问题。我点击Selenium链接,pdf打开。现在我必须阅读pdf的内容。我没有找到办法做任何事情......任何人都可以帮助我。

解决方案

Selenium [ ^ ]用于浏览器自动化,为什么你呢?想用它来阅读PDF文件的内容。为什么不编写下载有问题的PDF的应用程序,然后使用 iTextSharp [ ^ ]例如。你需要更多地解释你想要达到的目标。



问候,



- Manfred


我写了一个Java Maven Selenium项目,它比较了Web服务器上托管的两个pdf文件。该项目使用Selenium Web Driver,Apache Pdf box和Google Diff Match Patch项目。查看下面的文章。

如果您喜欢这篇文章,请务必将该网站推荐给Google plus。



http://seleniummaster.com/sitecontent/index.php/selenium-test-automation-with-java/165-comparing-pdf-documentations-with-selenium [<一个href =http://seleniummaster.com/sitecontent/index.php/selenium-test-automation-with-java/165-comparing-pdf-documentations-with-seleniumtarget =_ blanktitle =New Window > ^ ]

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.

解决方案

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


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[^]


这篇关于通过硒阅读pdf的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆