Testing PDFs
Preflight enables you to test PDFs in your web app, and supports the following actions:
- Viewing PDFs in the Current Tab
- Viewing PDFs in a New Tab
- Viewing a Single PDF in an iframe
- Viewing Multiple PDFs in iframes
- Downloading PDFs
Prerequisites
To test PDFs, Preflight requires access to URLs.
To Grant Access to URLs
- In Chrome, click the extensions icon, and then click Manage Extensions.
- Navigate to Preflight Recorder and click Details.
- Scroll down to Allow access to file URLs and toggle it to on.
Viewing PDFs in the Current Tab
To View PDFs in the Current Tab
- Open the Preflight Recorder extension and start recording.
- Open the PDF in the current tab.
- Optionally, add a textual checkpoint to test specific text, or a visual checkpoint to test the entire page and ensure that specific images appear.
- Click Finish Test.
Viewing PDFs in a New Tab
To View PDFs in a New Tab
- Open the Preflight Recorder extension and start recording.
- Open the PDF in a new tab.
- Optionally, add a textual checkpoint to test specific text, or a visual checkpoint to test the entire page and ensure that specific images appear.
- Click Finish Test.
Viewing a Single PDF in an iframe
To View a Single PDF in an iframe
- Open the Preflight Recorder extension and start recording.
- Open the PDF in an iframe.
- Optionally, add a textual checkpoint to test specific text, or a visual checkpoint to test the entire page and ensure that specific images appear.
- Click Finish Test.
Viewing Multiple PDFs in iframes
To View Multiple PDFs in iframes
- Open the Preflight Recorder extension and start recording.
- Open the PDFs in multiple iframes.
- Optionally, add a textual checkpoint to test specific text, or a visual checkpoint to test the entire page and ensure that specific images appear.
- Click Finish Test.
Downloading PDFs
To Download PDFs
- Open the Preflight Recorder extension and start recording.
- Download the PDF. Preflight automatically detects the file.
- Click the PDF icon in the recorder to display the downloaded PDF.
- Optionally, add a textual checkpoint to test specific text, or a visual checkpoint to test the entire page and ensure that specific images appear.
- Click Finish Test.
Related topics