Hi,

I have two sets of elements on a page that I need to distinguish
between.

<div class="Expander">
...
< /div>

<div class="Expander narrow">
...
< /div>

For the first I'm using

ui.Repeat(uid:'largePodContainer',clocator:[tag:'div',class:'Expander !
narrow'],respond:['click']){
...
}

ui.Repeat(uid:'largePodContainer',clocator:[tag:'div',class:'Expander
narrow'],respond:['click']){
...
}

When in debug mode I tried the generated selector for the first
element i.e
teJQuery(selenium.browserbot.findElement("jquery=div.Expander[class!
=narrow]"))

Unfortunately this returns all instances of elements 1 and 2 as it
would appear that the [attribute!=value] selector does not work well
with multiple css classes as it treats the attribute field as text,
and none of the elements have a class attribure equal to "narrow".

What does work is this:
teJQuery(selenium.browserbot.findElement("jquery=div.Expander")).not(".narrow")

-- 
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en.

Reply via email to