If the container is a logical container, you better not define the clocator
and simply use
Container(uid:"all")
instead because it has nothing to do with locator. Shouldn't your UI module
be as follows?
ui.Container(uid: "familyScreen", clocator: [tag: "table"], group: "true") {
>
>
> List(uid: "familyDetails", clocator: [id: "AddAnotherDependent"],
> separator: "table", group: "true") {
>
Container(uid:"all") {
> InputBox(uid: "dependentFirstName", clocator: [id:
> '^ctl00_ctl00_bcr_bcr_ucDependent_RFirstName_'])
> }
> }
> }
>
The remaining work for 0.7.0 will be List and Table refactoring. After that
is done, it is possible to define uid such as uid: "dependentFirstName" for
you list element. Wait and see.
Thanks,
Jian
On Mon, Feb 1, 2010 at 11:08 AM, Harihara Vinayakaram <[email protected]>wrote:
> Thanks. The problem was that I was using uid:"dependentFirstName" instead
> of uid:"1" for the list . I solved this by using the trick of a null
> container . i.e.
>
> ui.Container(uid: "familyScreen", clocator: [tag: "table"], group: "true")
> {
> Container(uid:"all",clocator:[:]) {
>
> List(uid: "familyDetails", clocator: [id: "AddAnotherDependent"],
> separator: "table", group: "true") {
> InputBox(uid: "dependentFirstName", clocator: [id:
> '^ctl00_ctl00_bcr_bcr_
> ucDependent_RFirstName_'])
> }
> }
> }
>
> and I was able to do familyScreen.familyDetails[1].dependentFirstName
>
> Thanks
> Regards
> Hari
>
>
> On Mon, Feb 1, 2010 at 1:00 AM, Jian Fang <[email protected]>wrote:
>
>> You shouldn't put ui before the List element, only need ui. before the top
>> level UI element.
>> That is to say, try
>>
>>
>> ui.Container(uid: "familyScreen", clocator: [tag: "table"], group: "true")
>> {
>> List(uid: "familyDetails", clocator: [id: "AddAnotherDependent"],
>> separator: "table", group: "true") {
>> InputBox(uid: "dependentFirstName", clocator: [id:
>> '^ctl00_ctl00_bcr_bcr_ucDependent_RFirstName_'])
>> }
>> }
>>
>> Thanks,
>>
>> Jian
>>
>> On Sun, Jan 31, 2010 at 12:57 PM, Harihara Vinayakaram
>> <[email protected]>wrote:
>>
>>> Hi
>>> I am using Tellurium 0.70
>>> and with the following UI definition
>>>
>>> ui.Container(uid: "familyScreen", clocator: [tag: "table"], group:
>>> "true") {
>>> ui.List(uid: "familyDetails", clocator: [id: "AddAnotherDependent"],
>>> separator: "table", group: "true") {
>>> InputBox(uid: "dependentFirstName", clocator: [id:
>>> '^ctl00_ctl00_bcr_bcr_ucDependent_RFirstName_'])
>>> }
>>> }
>>>
>>> I am getting
>>> Warning: Invalid id:
>>> org.telluriumsource.object.list$_add_closu...@11ba4159
>>>
>>> Can you tell me what I am missing ?
>>>
>>> Regards
>>> Hari
>>>
>>> --
>>> 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]<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]<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.