Search code examples
watin

How to check with watin is element "hidden"


Is there a way to verify is element hidden or not - using watin.

I don't want to use Jquery.

Thanks


Solution

  • In my experience, there is no concrete way to tell if an individual element is hidden or not in watin.

    However, you can recursively check up through the parent tree to see if they contain "display: none" or "visibility: hidden"

    This blog gives more detail: http://blog.coditate.com/2009/07/determining-html-element-visibility.html

    You may want to check what method your developers use to hide elements to know if this solution is useful for you.