Can TestComplete Name Mapping Identify Multiple Web Elements?
I'm working with TestComplete and trying to use Name Mapping to identify multiple web elements that match a given selector. However, when I paste a selector that finds multiple elements in the Name Mapping object, TestComplete only identifies the first match.
Is there a way to configure Name Mapping so that it can recognize and interact with all matching elements, rather than just the first one? Or do I need to use other functions like FindElements to find the elements I need?
You would probably be better off using a function like FindElements() to identify the matching objects. The result is an array of those objects so you can then get the length to know how many matches exist, or get the individual objects and iterate through them.
https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/page/findelements-method-page-object.html
Be sure to use the plural findelements() instead of the singular findelement() which will only return the first match.