# How to click on a specific record from search results

**URL:** <https://forums.eggplantsoftware.com/t/how-to-click-on-a-specific-record-from-search-results/3818>\
**Category:** Eggplant Functional\
**Tags:** data-driven, excel, sensetalk\
**Created:** [October 4, 2018, 11:11am UTC](https://forums.eggplantsoftware.com/t/how-to-click-on-a-specific-record-from-search-results/3818 "2018-10-04T11:11:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kvelicheti](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/k/43a26b/32.png) [@kvelicheti](https://forums.eggplantsoftware.com/u/kvelicheti)\
**Post date:** [October 4, 2018, 11:11am UTC](https://forums.eggplantsoftware.com/t/how-to-click-on-a-specific-record-from-search-results/3818/1 "2018-10-04T11:11:37Z")

</div>

Hi,  
  
I have a case in my application where there are search results in a tabular form. Among them one of the columns is the **ID** column which is unique for each record. And the other column will have a **Submit** button for each ID respectively. So from the search results, dynamically i will have to navigate to a specific search result using the ID and click the corresponding submit button. Please help me with your ideas.  
  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![EggplantMatt](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/eggplantmatt/32/3_2.png) [@EggplantMatt](https://forums.eggplantsoftware.com/u/EggplantMatt)\
**Post date:** [December 14, 2018, 12:31am UTC](https://forums.eggplantsoftware.com/t/how-to-click-on-a-specific-record-from-search-results/3818/2 "2018-12-14T00:31:44Z")

</div>

One easy way is to find all of the submit buttons, then find the ID number, then from the list of submit button locations, find the one with the y value closest to that of the ID number.

```
put everyImageLocation("SubmitButton") into submitsput imageLocation(text:IDNum) into myRowrepeat with each item of submits if it.y is between myRow.y - 2 and myRow.y + 2 then click it exit repeat end ifend repeat
```
