Issue with getting an element from iframe

Requirement:- Open an url and right click on the element shown in an iframe by selecting the menu item and download the result

Im getting the following error
Click ‘DIV’: Cannot find the UI element corresponding to this selector:

Both main page and iframe has same title(not sure whether the error is because of this or not)
Please help me to solve this issue

Any help

Did you validated the selectors??