how to use for dynamic images

May 3, 2013 at 9:51 PM
Hi,
I just downloaded Cuite and installed it, i am running my first test with it and like few of other users i have the same searchparam issue because the control i am recording do not have a id.

here is the scenario, I have a photo sharing website www.ogleogle.com, when any user adds a picture it appears on the home page,
my test case here is to open the web site home page and click on first image that appears, because first image is not constant and will change as user adds more image i can not use image path or name to find the first image, my image control do not have id either.

how do i go about it?

regards,
Vishal
Coordinator
May 4, 2013 at 12:42 AM
Hi Vishal,

I recommend trying to first get a parent control that does have an id defined and which is as close to the <img /> as possible.

And then you can iterate through its children until you find the <img /> element you are interested in.

CUITe has a GetChildren() method that returns a list of child controls.