Fixed issue when element is hidden

When an element is not visable it was attempted to be clicked