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

How to Automate Mobile Web Testing with Codeless Selenium

With brick and mortar stores closed during an on-going pandemic, websites, especially e-commerce websites, have to focus more than ever on creating quality customer experiences online. This has created a need for faster testing and new website functionality.

What is Mobile Web Testing and Why Should It Be Automated?

Websites and web applications are a huge part of how businesses acquire customers. Just one poor customer experience can sway their purchasing decision, especially in e-commerce.  Users who have a negative experience on a mobile website are 62 percent less likely to purchase from that business in the future. - Think with Google. 

Streamlining System Upgrades in ServiceNow with Automated Testing

For many enterprise businesses, ServiceNow is an operational backbone. But twice a year, panic unfolds. ServiceNow release two major mandatory upgrades requiring extensive testing. And more often than not, functional and regression testing gets postponed or left behind.  When these tests are postponed or skipped, it leaves businesses open to risk. In these key moments, system administrators and developers face pressure to complete functional and regression testing at speed.