Switch Frames
The Switch Frames category contains actions that allow you to switch the test's browsing context to iframes or back to the main window.
When you interact with an iframe on the webpage during recording, TestCafe Studio automatically adds the Switch Frames actions to the test.
Switch to Iframe
The Switch to Iframe action switches the test's browsing context to a specified iframe. TestCafe Studio performs the subsequent test actions in this iframe until it reaches the Switch to Main Window action in the test.
Parameter | Description |
---|---|
Element Selector | Identifies an iframe on the tested page. |
Switch to Main Window
The Switch to Main Window action switches the test's browsing context from an iframe back to the main window.
NOTE
TestCafe Studio displays warnings when you reorder Switch Frames actions or move test actions between browsing contexts. After dragging, make sure the actions relate to their appropriate contexts. Otherwise, they can be executed incorrectly.