In this video, we will learn how to handle iFrames and Multiple Windows in Playwright using BDD (Cucumber).
We will cover:
What is an iFrame and why it is used
Why we cannot directly access elements inside an iFrame
How to switch to an iFrame using frameLocator
Entering text inside an iFrame
We will also learn:
What is target="_blank" and how it opens a new tab/window
How to handle multiple windows in Playwright
Using context.waitForEvent('page') to capture new window
Validating content in the child window
Closing child window and switching back to parent
We will also understand important concepts like:
Why we use Promise.all
Difference between tabs and windows in Playwright (they are treated the same!)
This is part of the Playwright BDD series, where we learn real-world automation step by step.
If you find this helpful, don’t forget to like, share, and subscribe for more Playwright tutorials!
#Playwright #AutomationTesting #PlaywrightBDD #Cucumber #SoftwareTesting #QA #TestAutomation #PlaywrightTutorial #iFrame #MultipleWindows