On 6/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Now understand what you are looking for, I thought the text() attribute when > used with the //a[contains(text(), 'foo')] would find the first occurrence > of foo in an anchor tag... am I missing the boat on this one? or does this > jut apply to text that gets rendered on a page and not attributes or tags?
I'm pretty sure that text() refers to text nodes in XML, so it won't include text that's in an attribute etc. What you're trying to do is search within the entire HTML content of the element - this may be possible to do using the "innerHTML" property of an DOM element. I doubt you can access this from within XPath, but you could give it a go... ciao Daz _______________________________________________ Selenium-users mailing list [email protected] http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users
