Back to QMetry All Products Help Page
How to capture events inside an Iframe using Test Recorder?
To record the events inside an Iframe using the Test Recorder, kindly follow the below-mentioned steps:
Recording a Test Case:
Step 1: Add a new Test Case and start recording on your website that has an iframe.
Step 2: Add a step and set the command as ‘Switch to Frame’ just before the steps that were performed in an iframe module, as shown in the below screenshot.
Step 3: Navigate to LOC resources and select a file in which you want to store the locator of the Iframe.
Step 4: Now navigate to the chrome browser and open the website.
Step 5: Retrieve the iframe element using ‘inspect element’ on the website, as shown in the image below:
Step 6: Copy the Key and paste it in the ‘Element’ column for the ‘Switch to Frame’ command in your recorded Test Case screen.
Step 7: Execute the Test Case and check the executions for Iframe events.
Back to QMetry All Products Help Page