This is a migrated thread and some comments may be shown as answers.

Locate&click images

1 Answer 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Helen
Top achievements
Rank 1
Helen asked on 24 Sep 2010, 09:00 PM
Hi,

Does WebUI test studio support the possibility to locate and click images on the page?
Let's say I have a button with unique image but random application-generated name (say every time I launch application it changes within range of Button1 to Button45). I suppose I can locate that image on the page using image recognition tool in WebUI but I can't think of how to click it. Maybe you can suggest solution for this?

Thanks in advance
Helen

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 24 Sep 2010, 10:48 PM
Hello Helen,

Yes we can. We locate elements according to a variety of properties. One of the things we can do is to locate something like the 6th <img> tag contained on the web page. We can also do chained finds such as find the <div> element having an id = "Search Results" and then find the first <img> element contained under that <div> element.

To know what will work for your specific application I will need to see the page, especially the DOM (i.e. the source) of the page to best assist in putting together a Find Expression our tool can use to reliably find your image despite the variable name.

Sincerely yours,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Helen
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or