Hi Jonathan,
The option object is used when you have two possible html presentations of
the same UI at
runtime. For example, on tellurium issue page, we have the "List" or "Grid"
link. The
Container object might have to be the same, I cannot remember clearly and
need to
double check.
In the meanwhile, you can use validate("validationErrors") or
diagnose("validationErrors")
to see if you can find some hints.
Thanks,
Jian
On Wed, Jun 9, 2010 at 6:45 AM, Jonathan Share <[email protected]> wrote:
> Hi,
>
> I have some generic error checking code that looks out for validation
> errors on various forms, however the markup is slightly different on
> one of the forms. This situation sounds very much like a use case for
> the Option ui object and so I have defined the following;
>
> ui.Option(uid: "validationErrors") {
> Container(uid: "validationErrors", clocator: [tag: "div",
> 'class': "validation-error-box"]) {
> List(uid: "errors", clocator: [tag: "ul"]) {
> TextBox(uid: "{all}", clocator: [tag: "li"])
> }
> }
> Container(uid: "validationErrors", clocator: [tag: "div",
> 'class': "validationErrors"]) {
> List(uid: "errors", clocator: [tag: "ul"]) {
> TextBox(uid: "{all}", clocator: [tag: "li"])
> }
> }
> }
>
> However when I call isElementPresent("validationErrors") I get an
> exception.
>
> org.telluriumsource.exception.UiObjectNotFoundException: Cannot
> find UI Object validationErrors
>
> Is this a bug or have I misunderstood the usage of the Option object?
>
> Regards,
>
> Jonathan
>
> --
> 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.