Need to iterate the ID with other ID values if it matches i have to click that corresponding search button

Hi,
Im iterating the values from the queue items if the queue item value matches the other datatable values i have to click the corresponding search button of the matched value

Thanks