--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CABqZg2xOQ34DQeJ6f_Q65O4UHchNeQJ7m3BkqLX%2Bi6KvrycM5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLnt9M1Z6co6vXfxtw6LazPp6HUOQm26yv5zkSRRC6dZBw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLnt9M1Z6co6vXfxtw6LazPp6HUOQm26yv5zkSRRC6dZBw%40mail.gmail.com.
PDF pdf = new PDF(new File("src/test/resources/50quickideas.pdf")); assertThat(pdf, containsText("50 Quick Ideas to Improve your User Stories"));
Hello krishananI go through the blog. Its mainly related to download file and verify.My workflow is different. I am not downloading file.It open in file in application when I click on open button from download menuThanksSantosh
On Fri, Aug 28, 2015 at 1:33 PM, Krishnan Mahadevan <krishnan.mahadevan1978@gmail.com> wrote:
Santosh,Please take sometime to read through this blog post that Mark Collins wrote up : http://ardesco.lazerycode.com/index.php/2012/07/how-to-download-files-with-selenium-and-why-you-shouldnt/After that you would perhaps want to just use a library such as pdfbox to verify the contents
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/My Technical Scribbings @ http://rationaleemotions.wordpress.com/
On Fri, Aug 28, 2015 at 1:26 PM, santosh kawade <kawade...@gmail.com> wrote:
Hello all,I am running selenium test in IE.On Button click I am getting download menu barWhich having three buttons as Open, Save and Cancel.Once I clicked on Open buttonPDF is opened into applicationHow to verify the pdf content??please let me know if any..ThanksSantosh
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CABqZg2xOQ34DQeJ6f_Q65O4UHchNeQJ7m3BkqLX%2Bi6KvrycM5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
You are downloading the file to open it.What you missed when you read the blog is that you do not need to open the file to check that it is correct, you just need to get an MD5/SHA1 hash of a known good file and compare it to the MD5/SHA1 hash of the file you downloaded. If they are the same the correct file was downloaded. If they are different the file you downloaded is not what you thought it was.
You could write code to diff a PDF but is it really worth it, That's a lot of work for minimal benefit. If you save the file that is incorrect you can manually verify the differences (if you care).
On Friday, 28 August 2015 09:45:19 UTC+1, santosh wrote:
Hello krishananI go through the blog. Its mainly related to download file and verify.My workflow is different. I am not downloading file.It open in file in application when I click on open button from download menuThanksSantosh
On Fri, Aug 28, 2015 at 1:33 PM, Krishnan Mahadevan <krishnan.ma...@gmail.com> wrote:
Santosh,Please take sometime to read through this blog post that Mark Collins wrote up : http://ardesco.lazerycode.com/index.php/2012/07/how-to-download-files-with-selenium-and-why-you-shouldnt/After that you would perhaps want to just use a library such as pdfbox to verify the contents
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/My Technical Scribbings @ http://rationaleemotions.wordpress.com/
On Fri, Aug 28, 2015 at 1:26 PM, santosh kawade <kawade...@gmail.com> wrote:
Hello all,I am running selenium test in IE.On Button click I am getting download menu barWhich having three buttons as Open, Save and Cancel.Once I clicked on Open buttonPDF is opened into applicationHow to verify the pdf content??please let me know if any..ThanksSantosh
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CABqZg2xOQ34DQeJ6f_Q65O4UHchNeQJ7m3BkqLX%2Bi6KvrycM5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.