Hi, thanks for this sol.

I tried this but its saying, that image @'id=bForm:2'
 not found.

source code for image is this :
<a href="#" onclick="return aform('bForm','b:2');" id="bForm:2"><img 
src="/app/pics/search.gif"></a>
--
Alisha.



--- On Wed, 10/3/10, Jian Fang <[email protected]> wrote:

From: Jian Fang <[email protected]>
Subject: Re: Tellurium test case : images with same source with diff id value
To: [email protected]
Date: Wednesday, 10 March, 2010, 2:49 PM

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.



-- 

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.








-- 

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.






      Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! 
http://downloads.yahoo.com/in/internetexplorer/

-- 
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