How can I find out if the element display is none or not?
Currently, I am using the IWebElement GetAttribute("Style")
method to get the style which returns everything in the style property. I can then parse through the string and find display:none
.
I am just wondering if there is an easier and cleaner way?