Haroon,

We get the following error when substituting the Integer 2 by a String
(googleSearchUid):

---------
For input string: "googleSearchUid"
java.lang.NumberFormatException.forInputString(Unknown Source)
                java.lang.Integer.parseInt(Unknown Source)
                java.lang.Integer.parseInt(Unknown Source)
                java_lang_Integer$parseInt.call(Unknown Source)
                org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall
(CallSiteArray.java:40)
                org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
(AbstractCallSite.java:117)
                org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
(AbstractCallSite.java:125)
                org.tellurium.object.List.walkTo(List.groovy:221)
                org.tellurium.object.List$walkTo.call(Unknown Source)
-----------

We tried: click "containerId.subcategory['googleSearchUid']",
"containerId.subcategory[googleSearchUid]", etc.

Thanks for your help,

Yves.

On Sep 4, 3:12 pm, Haroon Rasheed <[email protected]> wrote:
> You can use the UID of your choice.
> Do you get any error when you change the uid??
>
> Cheers
> Haroon
>
> 2009/9/4 yca <[email protected]>
>
>
>
>
>
> > Hello,
>
> > In the following code:
>
> > ----
> > List(uid: "subcategory", locator: "", separator: "p"){
> >    InputBox(uid: "2", clocator: [title: "Google Search"])
> >    UrlLink(uid: "all", clocator: [:])
> > }
> > ---
>
> > Is there a possibility to rename the "2" in a more meaningful uid? We
> > found unfortunate that we have the possibility to rename the uid for
> > all the other elements (which is great), except for specific elements
> > in a list (NumberFormatException).
>
> > Do we really need to use a number as an uid for a specific (statically
> > defined) element in a list? We don't want to use "2" in our tests,
> > only in the UIModel definition...
>
> > What do you think?
>
> > Thank you,
>
> > Yves.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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