Some applications open modal dialogs just by popping up an html element, outgreying the background and giving the popped up element a higher z-index.
The framework shall recognize if you perform a action on an element which is hidden by another element or dialog and shall log an error. As the framework shall only perform actions which a user could perform too. Here a user wouldn't be able to click or to use an element which is hidden by another element.