You are right, Tellurium only accepts partial matching symbol at the
beginning of the String, not inside for the time being.
If we handle internal partial matching symbols, we have to assume all the
partial matching symbols
are reserved for Tellurium, which might be an aggressive assumption because
we handle class like
other attributes. Perhaps we could handle class attributes differently.

Have you tried the following?

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

and

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

Seems the second one should generate css with class "Expander" and "narrow",
but the first only with class "Expander", is that sufficient
to differentiate the two repeats?

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.

Reply via email to