>From the generated xpath, seems nothing wrong. Could you use DOM inspector/XPather to test the generated xpath to see what elements you can get back?
Thanks, Jian On Oct 30, 2:32 pm, Manoj Chavan <[email protected]> wrote: > Hi, > > Below is my html and corresponding module definition. > When I try getRotatorCount(). I am getting the wrong count. > I am expecting 4 but I am getting 7. Any thoughts? > > Regards, > > Manoj > > <div class="mod-content"> > <div class="buttons"> > <ul> > <li><a id="shherotab0" class="tab0 sprite1" rel="nofollow" > href="#"/></li> > <li></li> > <li></li> > <li class="selected"></li> > <li></li> > </ul> > </div> > > <div class="bd"> > </div> > </div> > > ui.Container(uid:"rotator", clocator:[tag:"div",class:"mod-content"]){ > Container(uid:"buttons", clocator:[tag:"div",class:"buttons"]){ > List(uid: "tnails", clocator: [tag: "ul"], separator: "li"){ > UrlLink(uid: "all", clocator: [:]) > } > } > Container(uid:"upperdiv", clocator:[tag:"div", class:"bd"]){ > List(uid: "images", clocator: [tag: "div", > class:"scrolling"]){ > UrlLink(uid: "all", clocator: [tag:"div"]) > } > } > } > > public int getRotatorCount(){ > return getListSize("rotator.buttons.tnails") > } > > 11:26:16.714 INFO - Command request: > getXpathCount[//descendant-or-self::d...@class="mod-content"]/descendant-or-self::d...@class="buttons"]/descendant-or-self::ul/li, > ] on session d5c4ad7548434d2ba1507afbffa1449e > 11:26:17.120 INFO - Got result: OK,7 on session > d5c4ad7548434d2ba1507afbffa1449e > ROTATOR MODULE COUNT : 7 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
