We have a requirement of testing Content of PDF files with the data displayed in web page of our application. Can anybody suggest an automation tool or approach which we can using for automating the above scenario.
Related
I'm creating a test suite to automate some parts of data input on my web application. I have a page where I can click on the button to upload a document to the application.
It looks something like this:
Can only upload a PDF file.
I set it to XPath xpath=//input[#id='inputGroupFile03']
I want to capture the Splunk dashboard to a pdf for sending a periodic email. The inbuilt pdf generator doesn't creates a good pdf in Splunk. Is there any open source tools that can be used like CutyCapt which can capture the screen via linux commands for pages with authentication.
You probably could try phantomjs.
It uses WebKit internally and has a screen capture capability allowing you to export web page to PNG/JPEG/PDF.
Recently our web application font has been changed and it is having around 50 pages.
Is it possible verify the Font Property of a web page using Selenium or any automation tools
Thanks
I would use selenium to visit each page in the app, then take a screenshot and save to a location.Then you could quickly manually assert that the font had changed
I know it is not a fully automated solution but is still easier than manually trawling through
I have posted some other smaller questions regarding the problem I describe below and got some feedback but now I will try to explain it in more depth hoping to get through the problem.
I built a desktop application using JavaFX 2.2 which uses a WebEngine to access a website built using Oracle ADF Pages. The application tracks the users actions on the pages and stores data to a database. All fine so far until the point where I need show a PDF file on a user click.
On the actual website the user clicks a button and a new popup window opens up that displays the PDF.
My problem is that due to the lack of PDF support in JavaFX I cannot display the pdf. The actual link to the PDF is dynamic and it doesn't have a .pdf at the end of it so I can't use the actual URL to send it to an external bowser or something to display it. Additionally the connection is secure so I can't open the URL with Chrome for example.
Possible solutions I thought about are to read the binary data of the response from WebView and create the PDF file locally and then open it using Adobe of Chrome or something. Is that possible at all?
Another solution I thought about (while I am writing this question) is maybe to open the URL which the users default browser but how can I go about sending the secure connection cookie from the application to the browser.
Is any of the above even possible? Am I missing something?
Any help, clues, links, ideas would be very much appreciated.
Thanks
I think the best way to do what you want is to download the PDF and display it locally.
Downloading using WebView sounds like it could work but I'm not familiar with the user experience. As an alternative try using curl or wget. You can pass in the authorization cookie to those tools and use them to download the file
A PDF file is embed on the web page, but when I scale the size of this web page, the PDF file will not fit the web page, so the PDF looks wierd. Can I use API, such as PDFBox, to sovle it?