Updated code snippet for tap on UI element which property is "visible : false"- iOS

In iOS app, if the UI element visible property is "false". 
Updated code will help for tap on it.
Language - Java