Thanks! with useTelluriumEngine(true) is working!!
Much better than the division...... Glad that I found an "issue"....... Really liking tellurium... thanks! On Nov 3, 4:05 am, Jian Fang <[email protected]> wrote: > The following issue is created for this problem: > > http://code.google.com/p/aost/issues/detail?id=494 > > > > > > > > On Tue, Nov 2, 2010 at 10:58 PM, Jian Fang <[email protected]> wrote: > > Yes, I can reproduce your problem with a test case. Seems there is a bug in > > the Tellurium extension script. > > I will file a bug for this and thanks for reporting this. > > > However, Tellurium Engine returns the correct number once I called > > > useTelluriumEngine(true) > > > Also, your ui module could be refined as > > > ui.Table(uid: "data", clocator: [id: "hello"]){ > > TextBox(uid: "{row: all, column: all}", clocator: [tag: "td"], self: > > true) > > } > > > Thanks, > > > Jian > > > On Tue, Nov 2, 2010 at 10:10 PM, Jian Fang <[email protected]>wrote: > > >> Have you tried the new Engine by calling > > >> useTelluriumEngine(true) > > >> to see what happens? > > >> I will create a test case to reproduce your problem. > > >> Thanks, > > >> Jian > > >> On Tue, Nov 2, 2010 at 7:16 PM, Juan J. Chiw <[email protected]> wrote: > > >>> I can not get the getTableMaxRowNum() to work, I have something very > >>> simple like > > >>> <table id="hello"> > >>> <tbody> > >>> <tr> > >>> <td>1</td> > >>> <td>1</td> > >>> <td>1</td> > >>> <td>1</td> > >>> <td>1</td> > >>> </tr> > >>> <tr> > >>> <td>2</td> > >>> <td>2</td> > >>> <td>2</td> > >>> <td>2</td> > >>> <td>2</td> > >>> </tr> > >>> <tr> > >>> <td>3</td> > >>> <td>3</td> > >>> <td>3</td> > >>> <td>3</td> > >>> <td>3</td> > >>> </tr> > >>> <tr> > >>> <td>4</td> > >>> <td>4</td> > >>> <td>4</td> > >>> <td>4</td> > >>> <td>4</td> > >>> </tr> > >>> <tr> > >>> <td>5</td> > >>> <td>5</td> > >>> <td>5</td> > >>> <td>5</td> > >>> <td>5</td> > >>> </tr> > >>> </tbody> > >>> </table> > > >>> with the ui > > >>> ui.Table(uid: "data", clocator: [ id: "hello"], group:"true"){ > > >>> TextBox(uid: "{row: all, column: 1}", clocator: [:]) > >>> TextBox(uid: "{row: all, column: 2}", clocator: [:]) > >>> TextBox(uid: "{row: all, column: 3}", clocator: [:]) > >>> TextBox(uid: "{row: all, column: 4}", clocator: [:]) > >>> TextBox(uid: "{row: all, column: 5}", clocator: [:]) > > >>> } > > >>> def nrow = getTableMaxRowNum("data") > >>> println nrow > > >>> and I get > > >>> 00:03:42.617 INFO - Command request: > >>> getBundleResponse[[{"uid":"data","args":["jquery=#hello> tbody > > >>> tr:has(td)"],"name":"getCssSelectorCount","sequ":2}], ] on session > >>> 7dc159fe8f2b480d9663493dec35f3 > >>> 2 > >>> 00:03:42.703 INFO - Got result: ERROR: Element #hello > tbody > > >>> tr:has(td) not found > >>> message: Element #hello> tbody > tr:has(td) not found, name: Error, > >>> filename: > >>>http://localhost:4444/selenium-server/core/scripts/htmlutils.js, > >>> linenumber: 814. > >>> JavaScript Error Stack: > >>> SeleniumError("Element #hello> tbody > tr:has(td) not found")@http:// > >>> localhost:4444/selenium-server/core/scripts/htmlutils.js:814 > > >>> ........ > > >>> Environment Variables: > >>> configFileName: TelluriumConfig.groovy > >>> configString: > >>> useEngineCache: false > >>> useClosestMatch: false > >>> useMacroCommand: false > >>> maxMacroCmd: 5 > >>> useTelluriumApi: false > >>> locatorWithCache: true > >>> useCSSSelector: true > >>> useTrace: false > >>> logEngine: false > >>> locale: en_US > > >>> TelluriumWorks-0.8.0-RC1.zip > > >>> The workaround I did, not very elegant but It works for me is to > >>> getAllTableCellText(), and as I know the numbers of the columns, I > >>> just do something like > > >>> def nRows = getAllTableCellText().size() / 5 > > >>> -- > >>> 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%2Bunsubscribe@ > >>> googlegroups.com> > >>> . > >>> 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.
