I am writing tests in Test Studio for a canvas app. My app contains a gallery with structure something like gallery -> container -> iconButton, as shown below:

When user clicks the icon, it deletes the selected row in the gallery. This works fine when I do it manually, but now I'm trying to write a test to do the same thing. The problem is how to select the icon. I have tried the following without success:
- Select(gal_Strathouses_HIS, 1, icn_StrathouseDelete_HIS) //Error: The function 'Select' has some invalid arguments.
- Select(con_StrathouseItem_HIS, 1, icn_StrathouseDelete_HIS) //Name isn't valid. '{0}' isn't recognized.
- Select(Select(gal_Strathouses_HIS, 1), icn_StrathouseDelete_HIS) //Invalid argument type (Boolean). Expecting a Control value instead.
- Select(gal_Strathouses_HIS, 1, Select(con_StrathouseItem_HIS, icn_StrathouseDelete_HIS)) //Invalid argument type (Boolean). Expecting a Control value instead.