Book demo
Start trial
Book demo
Start trial

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.

Read the LEAPWORK Guide to intelligent test automation

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

Related Posts

Test Automation Frameworks: Why They Fail

Test automation frameworks are basically recipes for how to build automated test cases. They include guidelines for testers on how they should do their job. The problem is, these frameworks don’t always work, as they tend to complicate test automation more than necessary.

7 Benefits of Codeless Test Automation

So far, automation frameworks and tools have dictated that testers should waste time programming. Codeless test automation is a much more efficient way for testers to work. Here's why.

How to Lower Data Migration Risks with UI Automation

Data migration efforts in enterprises are often done manually - or not at all, because it's too risky. Learn how UI automation can help solve some of your data migration issues.