You can try the following if the id is "1" (You don't need the src attribute
since id uniquely defines the UI element on a web page)
ui.Image(uid: "img1", clocator: [id: "1"], respond ["click"])
The same for other Images.
You can also wrap all three Images inside a logical container
ui.Container(uid: "Images"){
Image(uid: "img1", clocator: [id: "1"], respond ["click"])
Image(uid: "img2", clocator: [id: "2"], respond ["click"])
Image(uid: "img3", clocator: [id: "3"], respond ["click"])
}
Thanks,
Jian
On Wed, Mar 10, 2010 at 1:43 AM, Alisha Rai <[email protected]> wrote:
> hi guys,
>
> I am very new to tellurium, still learning.
> I am preparing test cases for ui. Here, in same form three diff images are
> there with same source value. But they have diff id value.
>
> Image(uid: "img", clocator: [tag: "img", src:
> "/application/pics/search.gif"])
>
> I want to call click event on these images, when i am using like below, it
> didn't work. I tried by many ways, didn't work,
>
> Image(uid: "img1", clocator: [tag: "img", src:
> "/application/pics/search.gif" id="1"]) respond ["click"]
> Image(uid: "img2", clocator: [tag: "img", src:
> "/application/pics/search.gif" id="2"]) respond ["click"]
> Image(uid: "img3", clocator: [tag: "img", src:
> "/application/pics/search.gif" id="3"]) respond ["click"]
>
> please can you suggest some thing else for this
>
>
>
>
>
> ------------------------------
> The INTERNET now has a personality. YOURS! See your Yahoo!
> Homepage<http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/>.
>
>
> --
> 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.