[Webtest] How to test style attributes.

Abhin Udupa Abhin Udupa" <udupaha@gmail.com
Tue, 10 Oct 2006 18:53:16 +0530


------=_Part_5185_14494157.1160486596446
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

    I have a piece of javascript code on the site that does this :-

    document.getElementById ( "elementid" ).style.display = "none" ;

    I want to check if the syle is actually set to "none", that is the
element has become invisible.

    I tried using the XPath for searching @style="display:none", but it
seems to be failing.

Thanks,
Abhin H

------=_Part_5185_14494157.1160486596446
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,<br><br>&nbsp;&nbsp;&nbsp; I have a piece of javascript code on the site that does this :-<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; document.getElementById ( &quot;elementid&quot; ).style.display = &quot;none&quot; ;<br><br>&nbsp;&nbsp;&nbsp; I want to check if the syle is actually set to &quot;none&quot;, that is the element has become invisible.
<br><br>&nbsp;&nbsp;&nbsp; I tried using the XPath for searching @style=&quot;display:none&quot;, but it seems to be failing.<br><br>Thanks,<br>Abhin H<br><br><br>

------=_Part_5185_14494157.1160486596446--