Verify interaction with a form inside an iframe
Preconditions (2)
Step 1: Locate the iframe on the page
Step 2: Switch context to the iframe
Step 3: Enter 'John Doe' into the 'Name' input field inside the iframe
Step 4: Enter 'john.doe@example.com' into the 'Email' input field inside the iframe
Step 5: Click the submit button inside the iframe
Step 6: Verify that a success message 'Form submitted successfully' appears inside the iframe
✅ Expected Result: The form inside the iframe accepts input, submits successfully, and shows the success message