# How to pass loop through multiple values and perform a "Click" action every time but on different web page in Web GUI?

**URL:** <https://community.automationedge.com/t/how-to-pass-loop-through-multiple-values-and-perform-a-click-action-every-time-but-on-different-web-page-in-web-gui/17741>\
**Category:** Process Studio\
**Tags:** rpa, process-studio, gui-automation\
**Created:** [March 25, 2026, 5:44pm UTC](https://community.automationedge.com/t/how-to-pass-loop-through-multiple-values-and-perform-a-click-action-every-time-but-on-different-web-page-in-web-gui/17741 "2026-03-25T17:44:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pushkraj](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@Pushkraj](https://community.automationedge.com/u/Pushkraj)\
**Post date:** [March 25, 2026, 5:44pm UTC](https://community.automationedge.com/t/how-to-pass-loop-through-multiple-values-and-perform-a-click-action-every-time-but-on-different-web-page-in-web-gui/17741/1 "2026-03-25T17:44:38Z")

</div>

I am working on a web automation scenario where I need to:

1. Pass three different values (set value to search field) into a specific web field one by one.

2. After each value is set, perform a mouse click action (specifically, an “Add to Cart” button each time for different product).

What is the best way to loop this sequence with 3 different value ?

---

<div class="post-metadata">

**Author:** ![AETrainings](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@AETrainings](https://community.automationedge.com/u/AETrainings)\
**Post date:** [March 27, 2026, 12:36pm UTC](https://community.automationedge.com/t/how-to-pass-loop-through-multiple-values-and-perform-a-click-action-every-time-but-on-different-web-page-in-web-gui/17741/2 "2026-03-27T12:36:54Z")

</div>

Hi Pushkraj,

You can handle this using a simple loop with a data-driven approach:

- Store the values in an Excel/CSV file.

- Use a For Each Row loop to iterate through them.

- Within the loop, set the search value and click “Add to Cart”.
