Yeah, UI templates are the real power of Tellurium for dynamic web contents.

StandardTable follows a pattern of UI and more details are here:

http://code.google.com/p/aost/wiki/UserGuide070UIObjects#Standard_Table

Please make sure your UI definition is correct by calling

diagnose("SolutionTable.header.Edit")

Since Edit is defined as a header, the following UID

issueResult[3][Edit]

actually means the data on row 3 and the same column as header "Edit", it
does not refer the header.

Make sure your data grid has at least 3 rows and the number of columns that
"Edit" referred to.

Thanks,

Jian

On Thu, Oct 7, 2010 at 7:10 AM, Eric Gokavi <[email protected]> wrote:

> Hello,
>
> I am using tellurium mostly for grid bases testing and i am finding it
> quit interesting and effective.
> i have come across this problem,
>
> i am having many columns in my table and wanna choose my column
> according to its name. do i am trying to use tellurium's feature.
>
> my Ui module is like
>
> ui.StandardTable(uid: "SolutionTable", clocator: [tag: "table",
> direct: "true", id: "T0", class: "dbox"]){
>                        //Image(uid: "{row: all, column: 12}", clocator:
> [tag: "img"])
>                        Image(uid: "{header: any} as Edit", clocator: [tag:
> "img", text:
> "Edit"])
>                }
>
> but when i call :
>
> println " ---- "+getText("SolutionTable.header.Edit")
> it give me error saying
>
> com.thoughtworks.selenium.SeleniumException: ERROR: Element
> uimcal={"rid":"SolutionTable.header.Edit","locator":"jquery=#T0>
> thead:first > tr > th:has(img:te_text(Edit)) img:te_text(Edit)"} not
> found
>
> i tried using
> println " ---- "+getText("issueResult[3][Edit]");
>
> but again is cribbed :(
>
> java.lang.ArrayIndexOutOfBoundsException: 2
>
>
> Whats that i am doing wrong?
>
> Please help.
>
> Thanks,
> -Eric.
>
> --
> 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.

Reply via email to