Added new private methods to improve implementation of getIdenticalView(), also now use it when getting security exception in clickOnScreen