Dominic, Look into core code and yes, it generates [attribute!=value] selector for your first repeat object. Seems we should handle the class attribute differently from other attributes. We will add a fix soon so that you don't need to manually call the "not" selector.
Thanks, Jian On Tue, Mar 2, 2010 at 12:56 PM, dominicm <[email protected]>wrote: > 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]<tellurium-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/tellurium-users?hl=en. > > -- 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.
