The jQuery selector based Table operations are not really reliable. Please try to use the Tellurium new Engine by calling
useTelluriumEngine(true); your table operation code useTelluriumEngine(false); to see if you can get back the correct value. Also, be aware that you can always check the element locating situation at runtime by using the diagnose(uid) method. http://code.google.com/p/aost/wiki/PracticalUseOfDiagnose For example, diagnose("commentTable[1][1]") ; Thanks, Jian On Tue, Apr 19, 2011 at 10:53 AM, Ghanshyam <[email protected]> wrote: > Hi, > > I getting issue while reading number of rows from table though table > element is present. Please suggest. > > Code:- > println "isElementPresent :: commentTable -> > "+isElementPresent("commentTable"); // getting true; > int nrow = getTableMaxRowNum("commentTable") // getting error on this > line. > > error message:- > ERROR: Element jquery=table.dbox > tbody:eq(0) > tr:has(td) not found > > Table Structure:- > <table class="dbox"> > <colgroup> > <col class="cgDate"> > <col class="cgText"> > <col class="cgText"> > </colgroup> > <tbody> > <tr> > <th>Date</th> > <th>User</th> > <th>Comment</th> > </tr> > <tr class="row"> > <td>04/19/2011 07:32 PM</td> > <td>User</td> > <td>Comment</td> > </tr> > </tbody> > </table> > > > Thanks. > Ghanshyam -- 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.
