[Ruby-IOS]How to click on element with same name/id

Hi All,

I have trouble clicking on element which has same :name.

I was able to get the count and i get the text of the element as well. But i need to check if the element is enabled and then click on it else scroll move to the next element

options_s = find_elements(:name, ‘pro_title’) // Gets the total element with pro_tile – returns 53 element
options_s.each do |element|
pro_title=element.text // prints the Name of the product
puts “*”*50
puts find_element(:link_text, pro_title).displayed? // Fails

How can i index the element like //*[@name=‘pro_title’][1] and so on…

Ask the developers to set an accessibilityIdentifier on the element.