It turned out the problem is in the getCssSelectorCount method. It did not pass the locator correctly. I have committed the fix and you should use Selenium server from our Maven repo for the following snapshot or later.
http://maven.kungfuters.org/content/repositories/snapshots/org/seleniumhq/selenium/server/selenium-server/1.0.1-te5-SNAPSHOT/selenium-server-1.0.1-te5-20101103.190754-10.jar For TelluriumWorks, you need to wait for RC2. I created a test case TableRowTestCase in trunk/core. Thanks, Jian On Wed, Nov 3, 2010 at 5:05 AM, Juan J. Chiw <[email protected]> wrote: > 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%[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]<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.
