Could you run a dump(), for example,
dump("classOneList")
to check the generated runtime locators. It the class:"ClassOne" is
not presented, we need to fix it.
Also, your UI module has some problem because the index 1-3 are for
"ClassOne"
and 4-6 are for "ClassTwo". Thus, you should not use uid: "all". Right
now,
Tellurium does not support index range yet. That means you may have
to
list all the different scenarios. But this is a good example for us
to consider to add support for the index range in 0.7.0.
Thanks,
Jian
On Sep 24, 5:08 pm, JustB <[email protected]> wrote:
> Hey Guys,
>
> When I am trying to get a list of div's with a particular class name
> say 'ClassOne', it doesn't seem to consider that condition if I
> mention my clocator as something like [tag:"div", class:"ClassOne"].
>
> Example:
>
> Consider this UI Module,
>
> <div class="Listing">
> <div class="ClassOne">
> <input value="value" type="text" />
> </div>
> <div class="ClassOne">
> <input value="value" type="text" />
> </div>
> <div class="ClassOne">
> <input value="value" type="text" />
> </div>
> <div class="ClassTwo">
> <input value="value" type="text" />
> </div>
> <div class="ClassTwo">
> <input value="value" type="text" />
> </div>
> <div class="ClassTwo">
> <input value="value" type="text" />
> </div>
> </div>
>
> I define my UI module as,
>
> List(uid:"classOneList", clocator:[tag:"div", class:"Listing"]){
> Container(uid:"all", clocator:[tag:"div", class:"ClassOne"])
>
> }
>
> getListSize("classOneList") ..... I assume should return 3 rather it
> returns 6. Was my assumption wrong. If not why is this the behavior I
> see.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---