Cannot click on iframe objects


I am facing an issue where the auto test cannot click any object within an iframe.

I tried using the spy object tool and the recording tool and both were unable to find and click any object within the iframe. I tried switching between the XPath and the Attributes, tried copying the xpath directly, still not working.

Thank you :slight_smile:

Try searching the forum.

I tried to find an answer on previous topics, but sadly none of the solutions helped.

Show me some HTML incorporating the iframe element and the element within you are trying to target.

First switch to iframe
WebUI.switchToFrame(findTestObject('path/to/iframe/object'), 5)
do what you need to do'path/to/click/object'))
and switch to back to default content

or tell you click object where its parent iframe is.