You should not use the header attribute until it is really necessary because
the header is not very flexible.

In your case, you can simply use the Table object with an abstract
container,

ui.Table(uid: "Table", clocator:[:]){
    TextBox(uid: "row: *, column: 1", clocator: [:])
     InputBox(uid: "row: 1, column: 2", clocator: [Attributes_here]
     Container(uid: "row: 2, column: 2"){
         Selector(uid: "selector1", clocator:[Attributes_here])
         Span(uid: "span", clocator: [Attributes_here])
         Selector(uid: "selector2", clocator: [Attributes_here])
     }
}

Then, you can use "Table[2][2].selector1" and "Table[2][2].selector2" to
reference
the two selectors. Note, you should add position attribute to the selector
if the two
selectors are identical in attributes except their positions.

Thanks,

Jian

On Wed, Aug 5, 2009 at 6:09 AM, <[email protected]> wrote:

>
> Hi,
>
> I am trying to use TrUMP plugin to identify UI elements with html as
> follows
>
> <table>
>         <tr>
>                 <td>Name1</td>
>                 <td><input type="text"..../></td>
>         </tr>
>         <tr>
>                 <td>Name2</td>
>                 <td>
>                         <select....></select>
>                         <span....></span>
>                         <select....></select>
>                 </td>
>         </tr>
> </table>
>
> In this case, I have to identify both the "select" elements for Tellurium
> testing,
> I cannot use 'id'/'class' attributes in "clocator"class. 'class' is same
> for both, and ids are randomly generated in the UI framework of the
> application.
> I can to use "header" as attribute, but TrUMP does not provide that. I need
> to constuct that attribute. Can you please help me to constuct the value of
> header for both "select" elements (drodowns)?
>
>
>
> Thanks in Advance,
>
> Renuka Kale >
>

--~--~---------~--~----~------------~-------~--~----~
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