IntermediatePW-FRM-00125 minutesPlaywright

Submit a nested frame form

A form lives inside a frame nested under another same-origin frame.

  • frames
  • locators

Objective

What to automate

Use frameLocator to fill and submit the nested form, then verify its result.

Preconditions and test data

Preconditions

  • Use a fresh isolated Practice Lab browser context.
  • Open the fixture identified by FX-FRAME-001.

Test data

  • message: Nested frame ready

Expected result

The nested frame reports the submitted message.

Progressive hints

Hint 1

Select the outer frame by title.

Hint 2

Chain a second frameLocator for the inner frame.

Hint 3

Keep the assertion scoped to the inner browsing context.

I’ve tried it — show solution
  1. Select the outer frame by title.
  2. Chain a second frameLocator for the inner frame.
  3. Keep the assertion scoped to the inner browsing context.