The LEAP

Automation insights and productivity tips from LEAPWORK.

All Posts

Looping Images, Text, and Numbers in Test Automation

LEAPWORK has a unique, built-in ability to loop through any images, text and numbers that has been found on-screen, allowing for very quick and visual creation of even highly complex automation tasks.

One way to use this powerful feature is to select "Use all occurrences" on any of the building blocks that work with image or text recognition. Whatever you wire up to happen will then be repeated for all the occurrences of the captured image or text.

Here is a simple example that drags all PNG-files found on a Windows desktop to the Trashcan:

Automate looping, dragging all png files to the recycle bin using LEAPWORK

Here's another example that combines looping through occurrences with a format, a filter and automatic scrolling to find an item on an eBay page that costs less than USD 90. Incredibly, this can be achieved with only one Get number building block:

Get numbers with format and filtering using LEAPWORK

Everything you need for codeless test automation

Learn more about codeless test automation in our guide to reducing risk, lowering costs, and driving value with test automation.CTA-StartTrial-8

Claus Topholt
Claus Topholt
CTO and co-founder of LEAPWORK.

Related Posts

Citrix Automation Using Selenium: Is It Possible?

Citrix is a widely used technology that allows businesses to access virtual versions of applications or systems. Many of these businesses also have a need to automate transactions or processes that involve Citrix. Being a popular automation tool, a commonly asked question is therefore: can you automate Citrix using Selenium?

Overcoming Common Citrix Automation Challenges with the Right Tool

Any tester or developer who has tried to automate tests or processes involving Citrix will know the pain that comes with virtual machine automation. Unlike web and desktop applications, there are no objects in Citrix to identify - just images - which poses a considerable challenge in automation.

End-to-end Testing Frameworks: Do They Work?

End-to-end tests help ensure that users can navigate through an application and complete their errands without running into any bugs. Automating end-to-end tests will help teams speed up this area of testing and become more agile. The question is how to approach automation. For many, the answer starts with a framework.