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].
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en.

Reply via email to