Thanks for reporting the problem. I will create a test case and see what happens.
Thanks, Jian On Mon, Feb 1, 2010 at 7:20 AM, Jonathan Share <[email protected]> wrote: > Hi, > > I seem to be having a little problem with getListSize. When I call > that method tellurium crashes on me with the following exception; > > com.thoughtworks.selenium.SeleniumException: ERROR: Element > > //descendant-or-self::fo...@name="selectedSailingsForm"]/div[1]/d...@class="option"][1]/descendant-or-self::ul/li[3] > not found > > The interesting thing to note here is that there are only two li > elements in the list. Is this a bug that has crept into tellurium or > am I doing something really stupid in my test? > > Thanks in advance > > Jonathan > > // MODEL > ui.Form(uid: "selectedSailings", clocator: [name: "selectedSailingsForm"]) > { > List(uid: "outgoingSailings", locator: "/div[1]") { > Container(uid: "all", clocator: [tag: "div", 'class': > "option"]) { > List(uid: "fares", clocator: [tag: "ul"]) { > Container(uid: "all", clocator: [tag: "li"]) { > RadioButton(uid: "radio", clocator: [:], > respond: ["click"]) > TextBox(uid: "label", clocator: [tag: "label"]) > } > } > TextBox(uid: "departureTime", locator: > "/div/dl/dd/em[1]") > } > } > } > > // TEST LINE THAT FAILS > def numPricesForSailing = > getListSize("selectedSailings.outgoingSailings[1].fares") > > // HTML (edited a little) > <form action="..." id="airDetailsForm" method="POST" > name="selectedSailingsForm"> > <div class="segment clearfix"> > <div class="option"> > <ul class="fares"> > <li> > <input id="..." name="..." type="radio" value="..." checked > onclick="enableDisable(1,2)"> <label for="..."><strong><span > id="...">3,000</span>KR</strong>economy</label> > </li> > <li> > <input id="..." name="..." type="radio" value="..." > onclick="enableDisable(1,1)"> <label for="..."><strong><span > id="...">4,000</span>KR</strong> Flexible</label> > </li> > </ul> > </div> > </div> > </form> > > -- > 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.
