Automation lab Aú File Handling (FILE_HANDLING)

Lab 063: Preview uploaded PDF in iframe

Practice preview uploaded pdf in iframe in a real web app context as part of the File Handling module.

intermediate intermediate
intermediate

Objectives

Use for test scripts
  • Understand the purpose and business flow of preview uploaded pdf in iframe.
  • Design stable locators for key UI elements.
  • Automate user interactions and verify the resulting UI state.

Sandbox

File Handling / file / intermediate / active

Preview uploaded PDF in iframe

Upload a PDF and render it in an iframe preview area.

Reading and understanding requirements Choosing stable locators Designing assertions based on business rules

Learning objectives

  • Accept PDF files only.
  • Show file name and size.
  • Preview in iframe with data URL.

Steps

  1. Select a PDF file.
  2. Verify status and preview appear.
  3. Ensure non-PDF shows error.

No file selected

Assertions to practice

  • Only PDFs accepted.
  • Status shows file name and size.
  • Preview iframe visible after valid upload.