Element is not currently visible and so may not be interacted with

If you get this error when doing selenium browser testing

“Element is not currently visible and so may not be interacted with”

it means that you have to check a few things.

1) Make sure that your element is not hidden, for example there is no inline css or javascript making changes to the style of the element.

2) Make sure you are referring only to the one and only correct element. Sometimes, you might have 2 elements with the same id (some apps are naughty). Print out the source and check. It could be possible that you are calling the element or its parent which was hidden.

I’ve verified that this is not a selenium bug.

Author: bpeh

Bernard Peh is a great passioner of web technologies and one of the co-founder of Sitecritic.net Website Design and Reviews. He works with experienced web designers and developers everyday, developing and designing commercial websites. He specialises mainly in SEO and PHP programming.