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].
For more options, visit this group at
http://groups.google.com/group/tellurium-users?hl=en.