I stucked in this problem since 15 days and i hold this part of automation as i am not aware of this kind of automation. Seriously naveen i am one of ur biggest fan. Thanks man for this video. This is very helpful for my project. Regards Ravi
Nice info Naveen.. I am a big fan of ur videos.. I have watched ur videos and learnt automation.. Willing to learn more.. Thank u so much for ur clean and clear explanation.. 😍
Thanks for very clear and step by step explanation video styles. i learned a lot from you. please keep making video for new upcoming issue or problem we could face in future automation technologies. Please keep us update.
Hi Naveen, Thanks a lot for such great information. The way you explain the topics it's great. Plz keep on post such videos. You are helping us a lot. Thanks! Pavan
Thanks, Naveen sir for this helpful information and very soon you will cross your 37k + subscribers I have 100% guaranty and definitely, Naveen AutomationLabs is on top.
Hi naveen sir i want to read a pdf in java and compare its contents with a csv file but while reading it it is reading the hidden text as well like if title tag contains name it is reading both title tag and name so how to ignore the hidden text of the pdf in java and read only the visible text
Hi Naveen, Its really helpful for reading the PDF document. Do you have any video to capture the pdf text as key value pairs using java map or anything
Great video Naveen..thanks! Hosever, I have one query. Can we download the pdf on local machine which is open in chrome pdf viewer? If yes, could you please explain how to do the same.
Hello Naveen, thanks for showing the tutorial I had a doubt though what can we do if a webpage redirects to a pdf file rather than it having the ".pdf" extension?
Hi Naveen, Great Video, Just 2 queries.. Do we have something to assert the content pixel wise to assert the co-ordinates? and what if the pdf is PWD protected, is there anyway? Appreciate your response.
@@naveenautomationlabs :( Have heard of java class DIB but not sure how to implement it. It converts PDF to image and then compares. Need to see how to implement it.
Hello naveen ,video is good and i understatnd the content. i have 2 PDF's of 10 K pages with same content but there are many differences in the PDF like alignment, spelling mistakes.....and so onn how can i write a code for this large requirement.
Hello Sir, I was watching your video and it is very helpful. But I have one question. How can I validate the text in pdf which have spaces in middle and same things are displaying in my textbox which is there in my webpage.
Hi Naveen hope you are doing great..!! How to automate the pdf viewer in selenium. There is a scenario in our application - > On clicking on the button the pdf viewer is opened in the browser itself, 2. I tried with xpath and css for the download icon in the pdf viewer. But I'm facing the issue with the element locator.. Issue: It is about reach up to pdf viewer but not for the download icon.
Hello sir, thanks for the great explanation. Could you please let me knows how to find xpath for logo in pdf file. ? Am using fire fox driver, i can find all the other elements in the pdf except logo image there is no tag in html code also - no luck. Kindly share any info to find xpath/css for logo images in pdf file, thank you 🙏
how to take screenshot of the document or pdf by scrolling it down? ..I used javascript for scrolling but it is not wrking on the document please guide me on this
Guys, if you are still facing issues while parsing PDF content. Then import below mentioned jars or maven dependencies in your project. 1) pdfbox-1.3.1.jar 2) fontbox-1.5.0.jar
how can we compare values, for e.g. if i want to test that "Naveen" text should be present in pdf against Name label. Name: Naveen, then it is pass... document may contain text "Naveen" but if it is not against Name label then it is fail
I was curious, I am stuck and used to working in Python. I tried your code from this video and it works only for 10% of one file I have and 0% for another with a weird error. I don't have anyone to ask and spent 3 days trying different things. if you are curious these are the links from United Nations: undocs.org/a/73/49(Vol.II) www.un.org/ga/search/view_doc.asp?symbol=a/72/49(Vol.I)
@@naveenautomationlabs [RemoteTestNG] detected TestNG version 6.14.3 Starting ChromeDriver 2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e) on port 29488 Only local connections are allowed. Oct 30, 2018 10:52:49 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: OSS data:, FAILED: readpdftest javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.Alerts.getSSLException(Alerts.java:154) at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2033) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1135) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:263) at java.net.URL.openStream(URL.java:1045) at com.sumedha.TestMaven.PDFReaderTest.readpdftest(PDFReaderTest.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) at org.testng.internal.Invoker.invokeMethod(Invoker.java:583) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) at org.testng.TestRunner.privateRun(TestRunner.java:648) at org.testng.TestRunner.run(TestRunner.java:505) at org.testng.SuiteRunner.runTest(SuiteRunner.java:455) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) at org.testng.SuiteRunner.run(SuiteRunner.java:364) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208) at org.testng.TestNG.runSuitesLocally(TestNG.java:1137) at org.testng.TestNG.runSuites(TestNG.java:1049) at org.testng.TestNG.run(TestNG.java:1017) at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77) =============================================== Default test Tests run: 1, Failures: 1, Skips: 0 =============================================== =============================================== Default suite Total tests run: 1, Failures: 1, Skips: 0 ===============================================
I stucked in this problem since 15 days and i hold this part of automation as i am not aware of this kind of automation. Seriously naveen i am one of ur biggest fan. Thanks man for this video. This is very helpful for my project.
Regards Ravi
Extremely Helpful, Thank you so much for this
Nice info Naveen.. I am a big fan of ur videos.. I have watched ur videos and learnt automation.. Willing to learn more.. Thank u so much for ur clean and clear explanation.. 😍
Thanks for very clear and step by step explanation video styles. i learned a lot from you. please keep making video for new upcoming issue or problem we could face in future automation technologies. Please keep us update.
Hi Naveen,
Thanks a lot for such great information. The way you explain the topics it's great. Plz keep on post such videos. You are helping us a lot.
Thanks!
Pavan
Naveen is my Hero
everything covered.......very useful video
Really helpful !Thanks Naveen
Thank you so much.. I added fontbox dependency also to make it work..
I added PDFbox jar which has all dependencies still getting error for one of the dependencies.
PS, I am using katalon workbench.
Can we fetch the pdf content from a selected page ? I am looking for possibility of validating particular text is displayed on which page in pdf
Thanks, Naveen sir for this helpful information and very soon you will cross your 37k + subscribers I have 100% guaranty and definitely, Naveen AutomationLabs is on top.
Thanks Mahesh
Thank you naveen..
Hi naveen sir i want to read a pdf in java and compare its contents with a csv file but while reading it it is reading the hidden text as well like if title tag contains name it is reading both title tag and name so how to ignore the hidden text of the pdf in java and read only the visible text
awesome.. . thanks for information
Helpful !
Thanks
Very nice info
Great video Naveen
Really helps lot
🙏🏻🙏🏻Thank You !!
Naveen in pdf there is marquee zoom feature
The same functionality we have in our project
Can we automate that
Hi Naveen, Its really helpful for reading the PDF document. Do you have any video to capture the pdf text as key value pairs using java map or anything
Great video Naveen..thanks!
Hosever, I have one query. Can we download the pdf on local machine which is open in chrome pdf viewer? If yes, could you please explain how to do the same.
good concept
Hello Naveen, thanks for showing the tutorial I had a doubt though what can we do if a webpage redirects to a pdf file rather than it having the ".pdf" extension?
I think, you can use the URL of the tab where the PDF is getting opened
Hi Naveen,
Great Video,
Just 2 queries..
Do we have something to assert the content pixel wise to assert the co-ordinates?
and what if the pdf is PWD protected, is there anyway?
Appreciate your response.
That's not possible:)
@@naveenautomationlabs :( Have heard of java class DIB but not sure how to implement it. It converts PDF to image and then compares. Need to see how to implement it.
Hello naveen ,video is good and i understatnd the content. i have 2 PDF's of 10 K pages with same content but there are many differences in the PDF like alignment, spelling mistakes.....and so onn how can i write a code for this large requirement.
Hello Sir,
I was watching your video and it is very helpful.
But I have one question.
How can I validate the text in pdf which have spaces in middle and same things are displaying in my textbox which is there in my webpage.
Interesting 🤔. Thanks!
Thanks for watching!
Hi Naveen hope you are doing great..!!
How to automate the pdf viewer in selenium. There is a scenario in our application - > On clicking on the button the pdf viewer is opened in the browser itself,
2. I tried with xpath and css for the download icon in the pdf viewer. But I'm facing the issue with the element locator..
Issue: It is about reach up to pdf viewer but not for the download icon.
Hello sir, thanks for the great explanation. Could you please let me knows how to find xpath for logo in pdf file. ? Am using fire fox driver, i can find all the other elements in the pdf except logo image there is no tag in html code also - no luck. Kindly share any info to find xpath/css for logo images in pdf file, thank you 🙏
Hi Naveen do you teach cloud testing (AWS) ? I want to join.
Hi naveen
Thanks a lot for such great information,its very helpful..
Could you please post the video for extract required text from PDF
Hi Naveen,
Thanks for making this video. I would like to know if we can verify checkbox on pdf document.
Hi Naveen, could you please upload a video for extract specific values from the pdf instead of reading all the contents
Naveen, Is any possible to read the regional fonts like hindi, tamil text?
how to take screenshot of the document or pdf by scrolling it down?
..I used javascript for scrolling but it is not wrking on the document please guide me on this
Can we download PDF from email and validate the similar way ? @Naveen
Guys, if you are still facing issues while parsing PDF content. Then import below mentioned jars or maven dependencies in your project.
1) pdfbox-1.3.1.jar
2) fontbox-1.5.0.jar
Great Video, Can you please show us to convert that console data to xlsx? how to search a dynamic strings in the output?
Hi naveen
How to handle chrome browser pop ups it showing notifications pop up on redbus Web site?
Please help
Selenium cannot automate Window based popups but we can achieve with Auto it tool
Sir this not working for me..throwing an error something like End of file
Can I use it in C#?
Hi Naveen,
Can you please do a video on PDF to PDF comparison?
Hello Naveen..I want to implement the similar functionality using C#. Can yu please share the code for that?
I want to read the pdf file.. but that URL dont have ".pdf" in URL... Is that possible? can you please help with code
how can we compare values, for e.g. if i want to test that "Naveen" text should be present in pdf against Name label. Name: Naveen, then it is pass... document may contain text "Naveen" but if it is not against Name label then it is fail
Hi naveen .this video is really helpful.but when I’m trying it shows error end-of-file.expected line.can someone help how to fix this
Sir I want to retrieve PDF data and I wanna store it on my database
Can you please give me a Solution how can we download a file that redirect in another window after clicking on that particular file?
Hi naveen
How to read tabular data from PDF ?
Can you do a video, About Identifying the embed pdf in browser. which does not have the .pdf extension. How to identifty the pdf is available?
How to click on link inside shadow DOM PDF , which is opened in browser
I was curious, I am stuck and used to working in Python. I tried your code from this video and it works only for 10% of one file I have and 0% for another with a weird error. I don't have anyone to ask and spent 3 days trying different things.
if you are curious these are the links from United Nations:
undocs.org/a/73/49(Vol.II)
www.un.org/ga/search/view_doc.asp?symbol=a/72/49(Vol.I)
I am getting an error javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
. not able to resolve it. Please help
Share your code here
@@naveenautomationlabs
[RemoteTestNG] detected TestNG version 6.14.3
Starting ChromeDriver 2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e) on port 29488
Only local connections are allowed.
Oct 30, 2018 10:52:49 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
data:,
FAILED: readpdftest
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2033)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1135)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:263)
at java.net.URL.openStream(URL.java:1045)
at com.sumedha.TestMaven.PDFReaderTest.readpdftest(PDFReaderTest.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:648)
at org.testng.TestRunner.run(TestRunner.java:505)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
at org.testng.SuiteRunner.run(SuiteRunner.java:364)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
at org.testng.TestNG.runSuites(TestNG.java:1049)
at org.testng.TestNG.run(TestNG.java:1017)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
===============================================
Default test
Tests run: 1, Failures: 1, Skips: 0
===============================================
===============================================
Default suite
Total tests run: 1, Failures: 1, Skips: 0
===============================================
@Pratyush Sahu I appreciate your response.Can you please post exact code with values , because the steps you provided did not resolved my issue.
@@sumedhasharma6521 Hi I am getting the same issue, could you please let me know if you could able to resolve it
Hi, how to click element in PDF file.?Except sikuli, Robot framework and autoIT
Plz make videos on Appium
Hi Sir,
Can u tell how to read the data of PDF file which is not extended by .PDF even though it's a PDF file.
Did you get any information on this, i am in same situation
Hi naveen
Can you explain me how to read a PDF file from page 1-10 if PDF contains 100 pages
Mu .load method is not coming
java.lang.NoClassDefFoundError: com/google/inject/Stage......................am getting this error message
How can I solve this problem
😍😵😘😘😘😘😘
In tabular format