I am testing an application where a specific page is covered by survey form sometimes. The survey is displayed in an iframe. My tests are failing as the element beneath the survey form is not clickable as it’s covered by iframe.
This is happening randomly as every time survey form won’t appear.
Can anyone help me how to write cypress code to check whether an element is clickable or not. If it’s not clickable then relaunch the page so that survey form disappears? Feel free to suggest anyway if you think this way won’t help in getting rid of the iFrame.
Attaching the iframe path of the survey when inspected: