Hi, I will create a test case to re-produce your problem and see what happens.
BTW, is the waitForPageToLoad problem resolved? Thanks, Jian On Tue, Feb 9, 2010 at 7:12 AM, d32 <[email protected]> wrote: > Hi Jian, > > We have few querries regarding the XPath generated at the runtime and > getListSize method. > > Html: > <div id="div1"> > ............ > ............ > <div id="div2"> > .............. > ............. > <ul>//list1 > <li> > <ul>//list 2 > <li></li> > </ul> > </li> > <li></li> > </ul> > > </div> > > </div> > > UIModule: > > ui.Container(uid:"div1", clocator:[tag:"div", id:"div1"]) { > > Div(uid:"div2", clocator:[id:"div2"]) > > List(uid:"list1", clocator:[tag:"ul"], separator:"li") > { > Container(uid:"all") > { > List(uid:"list2", clocator:[tag:"ul"], separator:"li"){ > } > } > > }//end list1 > > }//end div2 > }//end div1 > > For UID div1.div2.list1 following xpath is generated > //descendant-or-self::d...@id="div1"]/descendant-or-self::ul > > Shouldn't it include second div also like: > //descendant-or-self::d...@id="div1"]/descendant-or- > self::d...@id="div2"]/descendant-or-self::ul > > what if there is list between div1 and div2, according to the xpath > generated it will process that list instead of list1. > > if xpath had also include div2 this wont happen. > > Please advice us why this is happening (exclusion of div2 from the > xpath) > > Second query: > when we use getListSize(div1.div2.list1) it returns 3 (size of list1 + > size of list 2) > As per our understanding when we say size of a list it should include > LIs for that list only, it should not include nested list. > > you could add another method that gives the size of a list excluding > nested lists. > > > Please advice us on the same. > > Best regards, > Prashant Dhaka > > -- > 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.
