Maybe a typo in your xpath statement? For tags like <... style="display:none"> it should look like this:
xpath="//[EMAIL PROTECTED]'display:none']" There are some tools to build/evaluate xpaths, one is called XPE XPath Explorer. Jochen. ________________________________________ Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Abhin Udupa Gesendet: Dienstag, 10. Oktober 2006 15:23 An: [EMAIL PROTECTED] Betreff: [Webtest] How to test style attributes. 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 _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

