Iframes are a challenge in automation. They are used to display external web content other than stand-alone documents in a defined area of the browser. This has the consequence that technically speaking, the content of the Iframe is not on the selected page.
If an element is to be found in an iFrame, it must be specified in the selector. For example our Helpdesk Login page:
The email field is located in an iFrame. So the following selector will not work:
<input autofocus='autofocus' id='user_email' />
The selector must be extended by the iFrame:
<iframe src='https://anothermonday.zendesk.com/*' /> <input autofocus='autofocus' id='user_email' />
If the iFrame is nested in several iframes, these must also be specified:
<frame/> <iframe src='https://anothermonday.zendesk.com/*' /> <input autofocus='autofocus' id='user_email' />